summaryrefslogtreecommitdiff
path: root/news
diff options
context:
space:
mode:
authorwiz <wiz>2005-12-02 17:03:54 +0000
committerwiz <wiz>2005-12-02 17:03:54 +0000
commit0cbc74effcdc14a05562a0854790679de94ca3f9 (patch)
treeea3f6c2e5b7528b1a49353858fc316db8756ab5f /news
parent5169384c6b8f7f63b3ab1dbbe343b5ba07986216 (diff)
downloadpkgsrc-0cbc74effcdc14a05562a0854790679de94ca3f9.tar.gz
Convert to options framework.
Diffstat (limited to 'news')
-rw-r--r--news/suck/Makefile14
-rw-r--r--news/suck/options.mk13
2 files changed, 15 insertions, 12 deletions
diff --git a/news/suck/Makefile b/news/suck/Makefile
index 4b93d83d662..c55e4fb67fc 100644
--- a/news/suck/Makefile
+++ b/news/suck/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.21 2005/10/15 21:23:00 tonio Exp $
+# $NetBSD: Makefile,v 1.22 2005/12/02 17:04:35 wiz Exp $
#
DISTNAME= suck-4.3.2
@@ -14,16 +14,7 @@ COMMENT= Feed a local news server without a dedicated newsfeed
GNU_CONFIGURE= yes
-.include "../../mk/bsd.prefs.mk"
-
-# Include SOCKS firewall support
-.if defined(USE_SOCKS) && (${USE_SOCKS} == 4 || ${USE_SOCKS} == 5)
-.if ${USE_SOCKS} == 4
-.include "../../net/socks4/buildlink3.mk"
-.else
-.include "../../net/socks5/buildlink3.mk"
-.endif
-.endif
+.include "options.mk"
post-patch:
${SED} -e 's|%%%HISTORY%%%|${PREFIX}/etc/news/history|g' \
@@ -35,6 +26,5 @@ post-install:
${CP} ${WRKSRC}/sample/* ${PREFIX}/share/examples/suck
${CHMOD} 644 ${PREFIX}/share/examples/suck/*
-#.include "../../databases/gdbm/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/news/suck/options.mk b/news/suck/options.mk
new file mode 100644
index 00000000000..ffd6c7087ba
--- /dev/null
+++ b/news/suck/options.mk
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2005/12/02 17:04:35 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.suck
+PKG_OPTIONS_OPTIONAL_GROUPS+= socks
+PKG_OPTIONS_GROUP.socks= socks4 socks5
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Msocks4)
+.include "../../net/socks4/buildlink3.mk"
+.elif !empty(PKG_OPTIONS:Msocks5)
+.include "../../net/socks5/buildlink3.mk"
+.endif