[arch-commits] Commit in (6 files)

Sergej Pupykin spupykin at archlinux.org
Wed Nov 12 14:46:33 UTC 2014


    Date: Wednesday, November 12, 2014 @ 15:46:33
  Author: spupykin
Revision: 122438

Added:
  ckermit/
  ckermit/.AURINFO
  ckermit/repos/
  ckermit/trunk/
  ckermit/trunk/PKGBUILD
  ckermit/trunk/lockdir.patch

---------------------+
 .AURINFO            |   14 ++++++++++++++
 trunk/PKGBUILD      |   45 +++++++++++++++++++++++++++++++++++++++++++++
 trunk/lockdir.patch |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 107 insertions(+)

Added: ckermit/.AURINFO
===================================================================
--- ckermit/.AURINFO	                        (rev 0)
+++ ckermit/.AURINFO	2014-11-12 14:46:33 UTC (rev 122438)
@@ -0,0 +1,14 @@
+pkgbase = ckermit
+	pkgdesc = Portable scriptable network and serial communication software
+	pkgver = 9.0.302
+	pkgrel = 5
+	url = http://www.columbia.edu/kermit/ck90.html
+	arch = i686
+	arch = x86_64
+	license = custom
+	depends = ncurses
+	source = ftp://ftp.kermitproject.org/kermit/archives/cku302.tar.gz
+	source = lockdir.patch
+
+pkgname = ckermit
+

Added: ckermit/trunk/PKGBUILD
===================================================================
--- ckermit/trunk/PKGBUILD	                        (rev 0)
+++ ckermit/trunk/PKGBUILD	2014-11-12 14:46:33 UTC (rev 122438)
@@ -0,0 +1,45 @@
+# $Id$
+# Maintainer: Sergej Pupykin <arch+pub at sergej.pp.ru>
+# Maintainer: Brian Bidulock <bidulock at openss7.org>
+# Contributor: Ryan Corder <ryanc at greengrey.org>
+# Contributor: Samuel Tardieu <sam at rfc1149.net>
+
+pkgname=ckermit
+pkgver=9.0.302
+pkgrel=5
+pkgdesc="Portable scriptable network and serial communication software"
+arch=('i686' 'x86_64')
+license=('custom')
+depends=('ncurses')
+url="http://www.columbia.edu/kermit/ck90.html"
+#source=('ftp://kermit.columbia.edu/kermit/archives/cku302.tar.gz' 'lockdir.patch')
+source=('ftp://ftp.kermitproject.org/kermit/archives/cku302.tar.gz'
+	'lockdir.patch')
+md5sums=('eac4dbf18b45775e4cdee5a7c74762b0'
+         '5968e55dd472b2efb0e31cb3a6fb1655')
+
+build() {
+  cd $srcdir
+  chmod -R og-rwx ./
+  patch -p1 < lockdir.patch
+
+  make linux
+
+  echo "#!/usr/bin/ckermit" > _tmp.ini
+  cat ckermit.ini >> _tmp.ini
+}
+
+package() {
+  cd $srcdir
+
+  mkdir -m 0755 -p $pkgdir/usr/bin
+  mkdir -m 0755 -p $pkgdir/usr/share/man/man1
+  mkdir -m 0755 -p $pkgdir/usr/share/licenses/$pkgname
+
+  install -m 755 wermit $pkgdir/usr/bin/ckermit
+  ln -s /usr/bin/ckermit $pkgdir/usr/bin/ckermit-sshsub
+  install -m 644 ckuker.nr $pkgdir/usr//share/man/man1/ckermit.1
+  install -m 644 COPYING.TXT $pkgdir/usr/share/licenses/$pkgname/License.txt
+
+  install -m 755 _tmp.ini $pkgdir/usr/bin/ckermit.ini
+}


Property changes on: ckermit/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
## -0,0 +1 ##
+Id
\ No newline at end of property
Added: ckermit/trunk/lockdir.patch
===================================================================
--- ckermit/trunk/lockdir.patch	                        (rev 0)
+++ ckermit/trunk/lockdir.patch	2014-11-12 14:46:33 UTC (rev 122438)
@@ -0,0 +1,48 @@
+commit f956d739e9b1451eff1592fa640358877dcf958c
+Author: Samuel Tardieu <sam at rfc1149.net>
+Date:   Thu Jul 19 20:53:24 2012 +0200
+
+    Use LOCK_DIR environment variable if defined instead of /var/lock
+
+diff --git a/ckutio.c b/ckutio.c
+index 05564de..14b11cd 100644
+--- a/ckutio.c
++++ b/ckutio.c
+@@ -4971,6 +4971,11 @@ ttglckdir() {				/* Get Lockfile directory name */
+ #endif /* __OpenBSD__ */
+ }
+ 
++char *get_lockdir() {
++  char *lockdir = getenv("LOCK_DIR");
++  return lockdir ? lockdir : LOCK_DIR;
++}
++
+ static int
+ ttlock(ttdev) char *ttdev; {
+ 
+@@ -5077,8 +5082,7 @@ ttlock(ttdev) char *ttdev; {
+     char symlock[LFNAML];		/* Name for symlink lockfile name */
+ #endif /* CKSYMLINK */
+     char tmpnam[LFNAML+30];		/* Temporary lockfile name. */
+-    char *lockdir = LOCK_DIR;		/* Defined near top of this file, */
+-					/* or on cc command line. */
++    char *lockdir = get_lockdir();
+     haslock = 0;                        /* Not locked yet. */
+     *flfnam = '\0';			/* Lockfile name is empty. */
+     lock2[0] = '\0';			/* Clear secondary lockfile name. */
+diff --git a/ckuus4.c b/ckuus4.c
+index 946603a..ba9afaf 100644
+--- a/ckuus4.c
++++ b/ckuus4.c
+@@ -13882,8 +13882,9 @@ nvlook(s) char *s; {
+ #ifdef UNIX
+       case VN_LCKDIR: {
+ #ifndef NOUUCP
+-          extern char * uucplockdir;
+-          ckstrncpy(vvbuf,uucplockdir,VVBUFL);
++	  extern char *get_lockdir();
++	  char * lockdir = get_lockdir();
++          ckstrncpy(vvbuf,lockdir,VVBUFL);
+           x = strlen(vvbuf);
+           if (x > 0) {
+               if (vvbuf[x-1] != '/') {


More information about the arch-commits mailing list