pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/ucspi-tcp6 Update to 1.10. From the changelog:



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9f9eb3644782
branches:  trunk
changeset: 313713:9f9eb3644782
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sun Oct 07 12:55:16 2018 +0000

description:
Update to 1.10. From the changelog:

- complete new build upon fehQlibs.
- tcprules delimiter can be customized via #define DELIMITER in tcprules.c.
- Removed options '-4' and '-6' for shell scripts and fixed bugs.
- Native handling of IPv4 and IPv6 addresses for tcpclient.

diffstat:

 net/ucspi-tcp6/Makefile                     |   9 ++-
 net/ucspi-tcp6/distinfo                     |  14 ++--
 net/ucspi-tcp6/patches/patch-package_man    |  70 ++++++++++++++--------------
 net/ucspi-tcp6/patches/patch-src_Makefile   |  69 ----------------------------
 net/ucspi-tcp6/patches/patch-src_rblsmtpd.c |  26 ++++++++++
 5 files changed, 75 insertions(+), 113 deletions(-)

diffs (242 lines):

diff -r 2e6c5469b1e5 -r 9f9eb3644782 net/ucspi-tcp6/Makefile
--- a/net/ucspi-tcp6/Makefile   Sun Oct 07 12:54:39 2018 +0000
+++ b/net/ucspi-tcp6/Makefile   Sun Oct 07 12:55:16 2018 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.4 2018/08/15 17:49:22 schmonz Exp $
+# $NetBSD: Makefile,v 1.5 2018/10/07 12:55:16 schmonz Exp $
 
-DISTNAME=              ucspi-tcp6-1.06
-PKGREVISION=           1
+DISTNAME=              ucspi-tcp6-1.10
 CATEGORIES=            net
 MASTER_SITES=          https://www.fehcom.de/ipnet/ucspi-tcp6/
 EXTRACT_SUFX=          .tgz
@@ -18,6 +17,9 @@
 DJB_RESTRICTED=                no
 DJB_CONFIG_DIR=                ${WRKSRC}
 
+CFLAGS+=               -I${PREFIX}/include/qlibs
+LDFLAGS+=              -L${PREFIX}/lib/qlibs
+
 INSTALLATION_DIRS=     bin
 
 .include "../../mk/bsd.prefs.mk"
@@ -47,5 +49,6 @@
        done;                                                           \
        ./package/man
 
+.include "../../net/fehqlibs/buildlink3.mk"
 .include "../../mk/djbware.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r 2e6c5469b1e5 -r 9f9eb3644782 net/ucspi-tcp6/distinfo
--- a/net/ucspi-tcp6/distinfo   Sun Oct 07 12:54:39 2018 +0000
+++ b/net/ucspi-tcp6/distinfo   Sun Oct 07 12:55:16 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.3 2018/08/15 17:49:22 schmonz Exp $
+$NetBSD: distinfo,v 1.4 2018/10/07 12:55:16 schmonz Exp $
 
-SHA1 (ucspi-tcp6-1.06.tgz) = bc304397b213e4bf793c28b1a79f5d14c61ca833
-RMD160 (ucspi-tcp6-1.06.tgz) = a954234a9ff35c98d6895da09bcfb1d7bb03477b
-SHA512 (ucspi-tcp6-1.06.tgz) = f27c363cce93e9e0ddc06cb84330e7535d883366e211375ba945f870599833d60cefc979f862b594626cb0a3e34ff5c256e26e337588506df599b795dc924e44
-Size (ucspi-tcp6-1.06.tgz) = 81920 bytes
-SHA1 (patch-package_man) = 3fe66e854b7d469aa04cf0ed48625be03eb56647
-SHA1 (patch-src_Makefile) = f8b190130e8c629116e02f551afdcec4a24389ff
+SHA1 (ucspi-tcp6-1.10.tgz) = 21afc2866554a4cdaba2e84200daa7e2bcd81765
+RMD160 (ucspi-tcp6-1.10.tgz) = 454aa3774e20de4ff2477905484749e227f22d14
+SHA512 (ucspi-tcp6-1.10.tgz) = b879ad014ff97de9726a8f07fdd6c5f1da86aff410d91c86db75de283c1f8d748ac3b83b285ea55138e80830eee167c0ad75fba11a3c64457adedac33be071ad
+Size (ucspi-tcp6-1.10.tgz) = 51200 bytes
+SHA1 (patch-package_man) = 2064e165fd736518cfabc0894d81a6d9043f9610
+SHA1 (patch-src_rblsmtpd.c) = 05a7e6e0560458f833e4f8cf3201c0ccc1d598b8
diff -r 2e6c5469b1e5 -r 9f9eb3644782 net/ucspi-tcp6/patches/patch-package_man
--- a/net/ucspi-tcp6/patches/patch-package_man  Sun Oct 07 12:54:39 2018 +0000
+++ b/net/ucspi-tcp6/patches/patch-package_man  Sun Oct 07 12:55:16 2018 +0000
@@ -1,50 +1,52 @@
-$NetBSD: patch-package_man,v 1.2 2018/07/28 07:48:02 schmonz Exp $
+$NetBSD: patch-package_man,v 1.3 2018/10/07 12:55:16 schmonz Exp $
 
 Support DESTDIR.
 
---- package/man.orig   2016-08-02 15:14:30.000000000 +0000
+--- package/man.orig   2018-08-27 21:16:33.000000000 +0000
 +++ package/man
-@@ -6,33 +6,35 @@ safe() { "$@" || barf "cannot $@"; }
+@@ -9,20 +9,11 @@ mandir=""
+ usemanpath=0
+ usemandoc=0
+ 
+-if [ `which manpath` 2>/dev/null ]
+-then
+-      usemanpath=1
+-fi
+-
+-if [ `which mandoc`  2>/dev/null ]
+-then 
+-  usemandoc=1
+-  shout "Using mandoc facility for man files."
+-fi
+-
  safe umask 022
  [ -d man ] || barf "no man directory"
  
 +destdir=`head -1 conf-destdir`
 +
- mandir=""
  if [ -f conf-man ]
  then
-   mandir=`head -1 conf-man`
- fi
- 
--if [ ! -d "$mandir" ]
--then
--  mandir=`manpath | awk -F: '{print $1}'`
--fi
--shout "Setting man-dir: $mandir."
-+#if [ ! -d "$mandir" ]
-+#then
-+#  mandir=`manpath | awk -F: '{print $1}'`
-+#fi
-+#shout "Setting man-dir: $mandir."
+    mandir=`head -1 conf-man`
+@@ -57,7 +48,7 @@ fi
  
- for i in `find man -name "*[1-8]"`
+ if [ $usemandoc -eq 0 ]
+ then
+-  shout "Installing ${me} compressed man-files in ${mandir}."
++  shout "Installing ${me} man-files in ${mandir}."
+ else
+   shout "Installing ${me} un-compressed man-files in ${mandir}."
+ fi
+@@ -70,11 +61,11 @@ done
+ for manfile in $all
  do
-   all="$all $i"
- done
- 
--shout "Installing ucspi-tcp6 compressed man-files in ${mandir}."
-+shout "Installing ucspi-tcp6 man-files in ${destdir}/${mandir}."
- 
- if [ $# -eq 0 ]
- then
-   for manfile in $all
-   do
-     dir="man`echo $manfile | awk -F. '{print $NF}'`"
--    safe mkdir -p $mandir/$dir
-+    safe mkdir -p $destdir/$mandir/$dir
+   dir="man`echo $manfile | awk -F. '{print $NF}'`"
+-  [ -d $mandir/$dir ] || safe mkdir $mandir/$dir
++  [ -d $destdir/$mandir/$dir ] || safe mkdir $destdir/$mandir/$dir
+   if [ $usemandoc -eq 0 ]
+   then
      safe gzip $manfile && \
 -         install -m 644 "$manfile.gz" $mandir/$dir/"${manfile#*/}.gz"
 +         install -m 644 "$manfile.gz" $destdir/$mandir/$dir/"${manfile#*/}.gz"
-   done
- fi
- 
+   else
+     safe install -m 644 $manfile $mandir/$dir/${manfile#*./}
+   fi
diff -r 2e6c5469b1e5 -r 9f9eb3644782 net/ucspi-tcp6/patches/patch-src_Makefile
--- a/net/ucspi-tcp6/patches/patch-src_Makefile Sun Oct 07 12:54:39 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,69 +0,0 @@
-$NetBSD: patch-src_Makefile,v 1.1 2018/08/15 17:49:22 schmonz Exp $
-
-Fix paths to installed binaries in shell scripts.
-
---- src/Makefile.orig  2018-06-08 16:28:32.000000000 +0000
-+++ src/Makefile
-@@ -139,7 +139,7 @@ choose: \
- home warn-auto.sh choose.sh 
-       rm -f choose
-       cat warn-auto.sh choose.sh \
--      | sed s}HOME}"`head -1 home`"}g \
-+      | sed s}HOME/command}"`head -1 home`"}g \
-       > choose
-       chmod 755 choose
- 
-@@ -159,7 +159,7 @@ date@: \
- home warn-auto.sh date@.sh 
-       rm -f date@
-       cat warn-auto.sh date@.sh \
--      | sed s}HOME}"`head -1 home`"}g \
-+      | sed s}HOME/command}"`head -1 home`"}g \
-       > date@
-       chmod 755 date@
- 
-@@ -298,7 +298,7 @@ finger@: \
- home warn-auto.sh finger@.sh 
-       rm -f finger@
-       cat warn-auto.sh finger@.sh \
--      | sed s}HOME}"`head -1 home`"}g \
-+      | sed s}HOME/command}"`head -1 home`"}g \
-       > finger@
-       chmod 755 finger@
- 
-@@ -361,7 +361,7 @@ http@: \
- home warn-auto.sh http@.sh 
-       rm -f http@
-       cat warn-auto.sh http@.sh \
--      | sed s}HOME}"`head -1 home`"}g \
-+      | sed s}HOME/command}"`head -1 home`"}g \
-       > http@
-       chmod 755 http@
- 
-@@ -440,7 +440,7 @@ mconnect: \
- home warn-auto.sh mconnect.sh
-       rm -f mconnect
-       cat warn-auto.sh mconnect.sh \
--      | sed s}HOME}"`head -1 home`"}g \
-+      | sed s}HOME/command}"`head -1 home`"}g \
-       > mconnect
-       chmod 755 mconnect
- 
-@@ -802,7 +802,7 @@ tcpcat: \
- home warn-auto.sh tcpcat.sh home
-       rm -f tcpcat
-       cat warn-auto.sh tcpcat.sh \
--      | sed s}HOME}"`head -1 home`"}g \
-+      | sed s}HOME/command}"`head -1 home`"}g \
-       > tcpcat
-       chmod 755 tcpcat
- 
-@@ -931,7 +931,7 @@ who@: \
- home warn-auto.sh who@.sh 
-       rm -f who@
-       cat warn-auto.sh who@.sh \
--      | sed s}HOME}"`head -1 home`"}g \
-+      | sed s}HOME/command}"`head -1 home`"}g \
-       > who@
-       chmod 755 who@
-       
diff -r 2e6c5469b1e5 -r 9f9eb3644782 net/ucspi-tcp6/patches/patch-src_rblsmtpd.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ucspi-tcp6/patches/patch-src_rblsmtpd.c       Sun Oct 07 12:55:16 2018 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-src_rblsmtpd.c,v 1.1 2018/10/07 12:55:16 schmonz Exp $
+
+Avoid conflicting with wait(2).
+
+--- src/rblsmtpd.c.orig        2018-08-16 13:47:56.000000000 +0000
++++ src/rblsmtpd.c
+@@ -152,7 +152,7 @@ static stralloc info;
+ char inspace[64]; buffer in = BUFFER_INIT(read,0,inspace,sizeof(inspace));
+ char outspace[1]; buffer out = BUFFER_INIT(write,1,outspace,sizeof(outspace));
+ 
+-void wait(unsigned long delay)
++void dowait(unsigned long delay)
+ {
+   unsigned long u;
+   char *x;
+@@ -297,8 +297,8 @@ int main(int argc,char **argv,char **env
+       case 't': scan_ulong(optarg,&timeout); break;
+       case 'r': rbl(optarg); break;
+       case 'a': antirbl(optarg); break;
+-      case 'W': if (!decision) { wait(greetdelay); } break;
+-      case 'w': if (!decision) { scan_ulong(optarg,&greetdelay); wait(greetdelay); } break;
++      case 'W': if (!decision) { dowait(greetdelay); } break;
++      case 'w': if (!decision) { scan_ulong(optarg,&greetdelay); dowait(greetdelay); } break;
+       default: usage();
+     }
+ 



Home | Main Index | Thread Index | Old Index