summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-09-07 22:07:31 +0000
committerjlam <jlam@pkgsrc.org>2007-09-07 22:07:31 +0000
commitcdb276bfa1d6c9954bf0587b81f6152203d30047 (patch)
treeb5be3bbed67e74f65d84287aaeef09f4ed76ae39 /mail
parent5073c3d95dd37e5945c2a97df6abeb0ab1387f94 (diff)
downloadpkgsrc-cdb276bfa1d6c9954bf0587b81f6152203d30047.tar.gz
Convert to use the options framework.
Diffstat (limited to 'mail')
-rw-r--r--mail/solid-pop3d/Makefile35
-rw-r--r--mail/solid-pop3d/options.mk44
2 files changed, 51 insertions, 28 deletions
diff --git a/mail/solid-pop3d/Makefile b/mail/solid-pop3d/Makefile
index f241d043369..23bdcd26e74 100644
--- a/mail/solid-pop3d/Makefile
+++ b/mail/solid-pop3d/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2006/03/04 21:30:02 jlam Exp $
+# $NetBSD: Makefile,v 1.5 2007/09/07 22:07:31 jlam Exp $
DISTNAME= solid-pop3d-0.15
CATEGORIES= mail
@@ -11,39 +11,18 @@ COMMENT= Flexible POP3 server
EGDIR= ${PREFIX}/share/examples/spop3d
MESSAGE_SUBST+= EGDIR=${EGDIR}
-PLIST_SRC=
-EXAMPLES=
+PLIST_SRC= # empty
+EXAMPLES= # empty
GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --enable-logextend
+CONFIGURE_ARGS+= --enable-statistics
-CONFIGURE_ARGS+= --enable-logextend \
- --enable-statistics
-
-BUILD_DEFS+= USE_INET6
-
-.if defined(SPOP3D_ENABLE_APOP)
-CONFIGURE_ARGS+= --enable-apop
-PLIST_SRC+= ${.CURDIR}/PLIST.apop
-.endif
-
-.if defined(SPOP3D_ENABLE_STANDALONE)
-CONFIGURE_ARGS+= --enable-standalone
-CONFIGURE_ARGS+= --enable-connect
-.endif
-
-.if defined(SPOP3D_ENABLE_ALIASES)
-CONFIGURE_ARGS+= --enable-mapping
-CONFIGURE_ARGS+= --enable-nonip
-.endif
-
-.if defined(USE_INET6)
-CONFIGURE_ARGS+= --enable-ipv6
-.endif
+.include "options.mk"
+PLIST_SRC+= ${PKGDIR}/PLIST
EXAMPLES+= config.example
-PLIST_SRC+= ${.CURDIR}/PLIST
-
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
cd ${WRKSRC}/doc; for i in ${EXAMPLES}; do \
diff --git a/mail/solid-pop3d/options.mk b/mail/solid-pop3d/options.mk
new file mode 100644
index 00000000000..6903a013f36
--- /dev/null
+++ b/mail/solid-pop3d/options.mk
@@ -0,0 +1,44 @@
+# $NetBSD: options.mk,v 1.1 2007/09/07 22:07:31 jlam Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.solid-pop3d
+PKG_SUPPORTED_OPTIONS= inet6
+PKG_SUPPORTED_OPTIONS+= solid-pop3d-aliases
+PKG_SUPPORTED_OPTIONS+= solid-pop3d-apop
+PKG_SUPPORTED_OPTIONS+= solid-pop3d-standalone
+
+PKG_OPTIONS_LEGACY_VARS+= SPOP3D_ENABLE_ALIASES:solid-pop3d-aliases
+PKG_OPTIONS_LEGACY_VARS+= SPOP3D_ENABLE_APOP:solid-pop3d-apop
+PKG_OPTIONS_LEGACY_VARS+= SPOP3D_ENABLE_STANDALONE:solid-pop3d-standalone
+
+.include "../../mk/bsd.options.mk"
+
+###
+### IPv6 support
+###
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.endif
+
+###
+### Support user names mapping and non-IP-based virtuals
+###
+.if !empty(PKG_OPTIONS:Msolid-pop3d-aliases)
+CONFIGURE_ARGS+= --enable-mapping
+CONFIGURE_ARGS+= --enable-nonip
+.endif
+
+###
+### APOP support
+###
+.if !empty(PKG_OPTIONS:Msolid-pop3d-apop)
+CONFIGURE_ARGS+= --enable-apop
+PLIST_SRC+= ${PKGDIR}/PLIST.apop
+.endif
+
+###
+### Run as standalone daemon instead of via inetd
+###
+.if !empty(PKG_OPTIONS:Msolid-pop3d-standalone)
+CONFIGURE_ARGS+= --enable-standalone
+CONFIGURE_ARGS+= --enable-connect
+.endif