pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/publicfile Add 'inet6' option to control dependenc...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5b38ac333218
branches:  trunk
changeset: 311011:5b38ac333218
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Sun Jul 29 23:46:21 2018 +0000

description:
Add 'inet6' option to control dependency on ucspi-tcp{6,}. Bump PKGREVISION.

diffstat:

 net/publicfile/Makefile   |   5 ++---
 net/publicfile/options.mk |  12 ++++++++++++
 2 files changed, 14 insertions(+), 3 deletions(-)

diffs (38 lines):

diff -r a5d3f16f4c75 -r 5b38ac333218 net/publicfile/Makefile
--- a/net/publicfile/Makefile   Sun Jul 29 23:29:34 2018 +0000
+++ b/net/publicfile/Makefile   Sun Jul 29 23:46:21 2018 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2018/07/25 16:32:34 schmonz Exp $
+# $NetBSD: Makefile,v 1.15 2018/07/29 23:46:21 schmonz Exp $
 #
 
 DISTNAME=              publicfile-0.52
-PKGREVISION=           1
+PKGREVISION=           2
 CATEGORIES=            net
 MASTER_SITES=          http://cr.yp.to/publicfile/
 
@@ -11,7 +11,6 @@
 COMMENT=               Secure read-only HTTP and FTP servers
 
 DEPENDS+=              daemontools-[0-9]*:../../sysutils/daemontools
-DEPENDS+=              ucspi-tcp6-[0-9]*:../../net/ucspi-tcp6
 
 DJB_RESTRICTED=                YES
 DJB_CONFIG_PREFIX=     ${PREFIX}/publicfile
diff -r a5d3f16f4c75 -r 5b38ac333218 net/publicfile/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/publicfile/options.mk Sun Jul 29 23:46:21 2018 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: options.mk,v 1.1 2018/07/29 23:46:21 schmonz Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.publicfile
+PKG_SUPPORTED_OPTIONS+=        inet6
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Minet6)
+DEPENDS+=              ucspi-tcp6-[0-9]*:../../net/ucspi-tcp6
+.else
+DEPENDS+=              ucspi-tcp-[0-9]*:../../net/ucspi-tcp
+.endif



Home | Main Index | Thread Index | Old Index