summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2021-12-06 11:21:19 +0000
committerwiz <wiz@pkgsrc.org>2021-12-06 11:21:19 +0000
commit7ddb3b0a760be1859be700ed03f714f1459f3f19 (patch)
tree21fe6af943da54adc52c486df2726937f7f469e4 /pkgtools
parentfad43108941f49faa348e2051db6dbd9c85b7b54 (diff)
downloadpkgsrc-7ddb3b0a760be1859be700ed03f714f1459f3f19.tar.gz
pbulk: make rsync dependency a default-on option
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pbulk/Makefile4
-rw-r--r--pkgtools/pbulk/options.mk11
2 files changed, 13 insertions, 2 deletions
diff --git a/pkgtools/pbulk/Makefile b/pkgtools/pbulk/Makefile
index 62582a3caca..11a4d9de8ff 100644
--- a/pkgtools/pbulk/Makefile
+++ b/pkgtools/pbulk/Makefile
@@ -1,13 +1,13 @@
-# $NetBSD: Makefile,v 1.88 2020/08/09 23:18:30 joerg Exp $
+# $NetBSD: Makefile,v 1.89 2021/12/06 11:21:19 wiz Exp $
PKGNAME= pbulk-0.70
COMMENT= Modular bulk build framework
.include "../../pkgtools/pbulk/Makefile.common"
+.include "../../pkgtools/pbulk/options.mk"
USE_TOOLS+= awk:run bzip2:run digest:run gzip:run make:run \
mail:run sed:run tar:run
-DEPENDS+= rsync-[0-9]*:../../net/rsync
DEPENDS+= pbulk-base>=0.38:../../pkgtools/pbulk-base
.include "../../mk/bsd.prefs.mk"
diff --git a/pkgtools/pbulk/options.mk b/pkgtools/pbulk/options.mk
new file mode 100644
index 00000000000..27379144afb
--- /dev/null
+++ b/pkgtools/pbulk/options.mk
@@ -0,0 +1,11 @@
+# $NetBSD: options.mk,v 1.1 2021/12/06 11:21:19 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.pbulk
+PKG_SUPPORTED_OPTIONS+= pbulk-rsync
+PKG_SUGGESTED_OPTIONS+= pbulk-rsync
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpbulk-rsync)
+DEPENDS+= rsync-[0-9]*:../../net/rsync
+.endif