[arch-commits] Commit in ckermit/repos (6 files)
Evangelos Foutras
foutrelis at archlinux.org
Sun Sep 6 19:10:23 UTC 2015
Date: Sunday, September 6, 2015 @ 21:10:23
Author: foutrelis
Revision: 139326
archrelease: copy trunk to community-staging-i686, community-staging-x86_64
Added:
ckermit/repos/community-staging-i686/
ckermit/repos/community-staging-i686/PKGBUILD
(from rev 139325, ckermit/trunk/PKGBUILD)
ckermit/repos/community-staging-i686/lockdir.patch
(from rev 139325, ckermit/trunk/lockdir.patch)
ckermit/repos/community-staging-x86_64/
ckermit/repos/community-staging-x86_64/PKGBUILD
(from rev 139325, ckermit/trunk/PKGBUILD)
ckermit/repos/community-staging-x86_64/lockdir.patch
(from rev 139325, ckermit/trunk/lockdir.patch)
----------------------------------------+
community-staging-i686/PKGBUILD | 41 ++++++++++++++++++++++++++
community-staging-i686/lockdir.patch | 48 +++++++++++++++++++++++++++++++
community-staging-x86_64/PKGBUILD | 41 ++++++++++++++++++++++++++
community-staging-x86_64/lockdir.patch | 48 +++++++++++++++++++++++++++++++
4 files changed, 178 insertions(+)
Copied: ckermit/repos/community-staging-i686/PKGBUILD (from rev 139325, ckermit/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD (rev 0)
+++ community-staging-i686/PKGBUILD 2015-09-06 19:10:23 UTC (rev 139326)
@@ -0,0 +1,41 @@
+# $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=6
+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')
+
+prepare() {
+ cd $srcdir
+ chmod -R og-rwx ./
+ patch -p1 < lockdir.patch
+}
+
+build() {
+ cd $srcdir
+ make linux
+ echo "#!/usr/bin/ckermit" > _tmp.ini
+ cat ckermit.ini >> _tmp.ini
+}
+
+package() {
+ cd $srcdir
+ install -Dm0755 wermit $pkgdir/usr/bin/ckermit
+ ln -s /usr/bin/ckermit $pkgdir/usr/bin/ckermit-sshsub
+ install -Dm0644 ckuker.nr $pkgdir/usr//share/man/man1/ckermit.1
+ install -Dm0644 COPYING.TXT $pkgdir/usr/share/licenses/$pkgname/License.txt
+ install -Dm0755 _tmp.ini $pkgdir/usr/bin/ckermit.ini
+}
Copied: ckermit/repos/community-staging-i686/lockdir.patch (from rev 139325, ckermit/trunk/lockdir.patch)
===================================================================
--- community-staging-i686/lockdir.patch (rev 0)
+++ community-staging-i686/lockdir.patch 2015-09-06 19:10:23 UTC (rev 139326)
@@ -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] != '/') {
Copied: ckermit/repos/community-staging-x86_64/PKGBUILD (from rev 139325, ckermit/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2015-09-06 19:10:23 UTC (rev 139326)
@@ -0,0 +1,41 @@
+# $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=6
+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')
+
+prepare() {
+ cd $srcdir
+ chmod -R og-rwx ./
+ patch -p1 < lockdir.patch
+}
+
+build() {
+ cd $srcdir
+ make linux
+ echo "#!/usr/bin/ckermit" > _tmp.ini
+ cat ckermit.ini >> _tmp.ini
+}
+
+package() {
+ cd $srcdir
+ install -Dm0755 wermit $pkgdir/usr/bin/ckermit
+ ln -s /usr/bin/ckermit $pkgdir/usr/bin/ckermit-sshsub
+ install -Dm0644 ckuker.nr $pkgdir/usr//share/man/man1/ckermit.1
+ install -Dm0644 COPYING.TXT $pkgdir/usr/share/licenses/$pkgname/License.txt
+ install -Dm0755 _tmp.ini $pkgdir/usr/bin/ckermit.ini
+}
Copied: ckermit/repos/community-staging-x86_64/lockdir.patch (from rev 139325, ckermit/trunk/lockdir.patch)
===================================================================
--- community-staging-x86_64/lockdir.patch (rev 0)
+++ community-staging-x86_64/lockdir.patch 2015-09-06 19:10:23 UTC (rev 139326)
@@ -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