summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2019-03-10 19:16:46 +0000
committerwiz <wiz@pkgsrc.org>2019-03-10 19:16:46 +0000
commit90f6bc7bd2e77eed5962c596214a3ddfe6eb59c8 (patch)
treed3b48d9210af68898f21dfcea23740f5f7e3c49d /net
parent3e4944aa1ddb754b5e98f38e0678ae6b99761230 (diff)
downloadpkgsrc-90f6bc7bd2e77eed5962c596214a3ddfe6eb59c8.tar.gz
chrony: update to 3.4nb1.
Add default-on nettle option. Requested by Fabien in PR 54042, ok hannken@
Diffstat (limited to 'net')
-rw-r--r--net/chrony/Makefile9
-rw-r--r--net/chrony/options.mk14
2 files changed, 20 insertions, 3 deletions
diff --git a/net/chrony/Makefile b/net/chrony/Makefile
index 6b78d932175..f24e485ca74 100644
--- a/net/chrony/Makefile
+++ b/net/chrony/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2018/10/01 15:53:58 nia Exp $
+# $NetBSD: Makefile,v 1.37 2019/03/10 19:16:46 wiz Exp $
DISTNAME= chrony-3.4
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= http://download.tuxfamily.org/chrony/
@@ -27,8 +28,8 @@ RCD_SCRIPTS= chronyd
SUBST_CLASSES+= paths
SUBST_FILES.paths= ${EGFILES:S/^/examples\//} conf.c
-SUBST_SED.paths+= -e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},g'
-SUBST_SED.paths+= -e 's,@VARBASE@,${VARBASE},g'
+SUBST_VARS.paths+= PKG_SYSCONFDIR
+SUBST_VARS.paths+= VARBASE
SUBST_STAGE.paths= pre-configure
post-install:
@@ -37,5 +38,7 @@ post-install:
${INSTALL_DATA} "${WRKSRC}/examples/chrony.keys.example" \
"${DESTDIR}${EGDIR}/chrony.keys.example";
+.include "options.mk"
+
.include "../../mk/readline.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/net/chrony/options.mk b/net/chrony/options.mk
new file mode 100644
index 00000000000..e595c08146a
--- /dev/null
+++ b/net/chrony/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1 2019/03/10 19:16:46 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.chrony
+PKG_SUPPORTED_OPTIONS= nettle
+PKG_SUGGESTED_OPTIONS= nettle
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mnettle)
+USE_TOOLS+= pkg-config
+.include "../../security/nettle/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --without-nettle
+.endif