summaryrefslogtreecommitdiff
path: root/mail/solid-pop3d
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
commitbff458328b6e6f475335adef9ba607a77d0b2c9e (patch)
treeb5be3bbed67e74f65d84287aaeef09f4ed76ae39 /mail/solid-pop3d
parent91edea8bcb6e2cb8667d61a57983bf3ee6d8ff53 (diff)
downloadpkgsrc-bff458328b6e6f475335adef9ba607a77d0b2c9e.tar.gz
Convert to use the options framework.
Diffstat (limited to 'mail/solid-pop3d')
-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