summaryrefslogtreecommitdiff
path: root/mail/teapop
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-11-25 20:49:30 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-11-25 20:49:30 +0000
commitec74d5433fd8effa18eb83413b40053cf1d77be5 (patch)
tree0c22c2e85723d63aca7c3dc36761849067d5d947 /mail/teapop
parente061e41423e19161deef822d75ce9ec05024285c (diff)
downloadpkgsrc-ec74d5433fd8effa18eb83413b40053cf1d77be5.tar.gz
Convert to use bsd.options.mk, the following options are available:
drac mysql pgsql ldap apop vpop tcpd inet6 # XXX Support for the following variables will be removed after the # XXX pkgsrc-2004Q4 branch is released: # XXX # XXX POP_WITH_DRAC # XXX TEAPOP_WITH_MYSQL # XXX TEAPOP_WITHOUT_APOP # XXX TEAPOP_WITHOUT_VPOP
Diffstat (limited to 'mail/teapop')
-rw-r--r--mail/teapop/Makefile25
-rw-r--r--mail/teapop/options.mk74
2 files changed, 77 insertions, 22 deletions
diff --git a/mail/teapop/Makefile b/mail/teapop/Makefile
index 56d945b6e16..668c3d8e141 100644
--- a/mail/teapop/Makefile
+++ b/mail/teapop/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.19 2004/10/29 05:59:24 jdolecek Exp $
+# $NetBSD: Makefile,v 1.20 2004/11/25 20:49:30 xtraeme Exp $
DISTNAME= teapop-0.3.8
PKGREVISION= 1
@@ -16,33 +16,14 @@ GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-flock
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --enable-piddir=${VARBASE}/run
EGDIR= ${PREFIX}/share/examples/teapop
CONF_FILES= ${EGDIR}/teapop.passwd ${PKG_SYSCONFDIR}/teapop.passwd
RCD_SCRIPTS= teapop
-.include "../../mk/bsd.prefs.mk"
-
-.if defined(POP_WITH_DRAC)
-.include "../../mail/drac/buildlink3.mk"
-CONFIGURE_ARGS+= --with-drac=${BUILDLINK_PREFIX.drac}/lib
-CONFIGURE_ARGS+= --with-dracinc=${BUILDLINK_PREFIX.drac}/include
-.endif
-
-.if defined(TEAPOP_WITHOUT_APOP)
-CONFIGURE_ARGS+=--disable-apop
-.endif
-
-.if defined(TEAPOP_WITHOUT_VPOP)
-CONFIGURE_ARGS+=--disable-vpop
-.endif
-
-.if defined(TEAPOP_WITH_MYSQL)
-.include "../../mk/mysql.buildlink3.mk"
-CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
-LDFLAGS+= ${BUILDLINK_LDFLAGS.mysql-client}
-.endif
+.include "options.mk"
post-install:
${INSTALL_DATA_DIR} ${EGDIR}
diff --git a/mail/teapop/options.mk b/mail/teapop/options.mk
new file mode 100644
index 00000000000..2855eb48445
--- /dev/null
+++ b/mail/teapop/options.mk
@@ -0,0 +1,74 @@
+# $NetBSD: options.mk,v 1.1 2004/11/25 20:49:30 xtraeme Exp $
+#
+# XXX Support for the following variables will be removed after the
+# XXX pkgsrc-2004Q4 branch is released:
+# XXX
+# XXX POP_WITH_DRAC
+# XXX TEAPOP_WITH_MYSQL
+# XXX TEAPOP_WITHOUT_APOP
+# XXX TEAPOP_WITHOUT_VPOP
+
+.if defined(POP_WITH_DRAC) && !empty(POP_WITH_DRAC:M[Yy][Ee][Ss])
+PKG_SUPPORTED_OPTIONS+= drac
+.endif
+
+.if defined(TEAPOP_WITH_MYSQL) && !empty(TEAPOP_WITH_MYSQL:M[Yy][Ee][Ss])
+PKG_SUPPORTED_OPTIONS+= mysql
+.endif
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.teapop
+PKG_SUPPORTED_OPTIONS= drac mysql apop vpop tcpd pgsql ldap inet6
+PKG_DEFAULT_OPTIONS+= apop vpop tcpd
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mdrac)
+. include "../../mail/drac/buildlink3.mk"
+CONFIGURE_ARGS+= --with-drac=${BUILDLINK_PREFIX.drac}/lib
+CONFIGURE_ARGS+= --with-dracinc=${BUILDLINK_PREFIX.drac}/include
+.endif
+
+.if !empty(PKG_OPTIONS:Mmysql)
+. include "../../mk/mysql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-mysql=${BUILDLINK_PREFIX.mysql-client}
+LDFLAGS+= ${BUILDLINK_LDFLAGS.mysql-client}
+.endif
+
+.if !empty(PKG_OPTIONS:Mapop)
+CONFIGURE_ARGS+= --enable-apop
+.else
+CONFIGURE_ARGS+= --disable-apop
+.endif
+
+.if !empty(PKG_OPTIONS:Mvpop)
+CONFIGURE_ARGS+= --enable-vpop
+.else
+CONFIGURE_ARGS+= --disable-vpop
+.endif
+
+.if !empty(PKG_OPTIONS:Mtcpd)
+. include "../../security/tcp_wrappers/buildlink3.mk"
+CONFIGURE_ARGS+= --with-tcpd
+.else
+CONFIGURE_ARGS+= --without-tcpd
+.endif
+
+.if !empty(PKG_OPTIONS:Mpgsql)
+. include "../../mk/pgsql.buildlink3.mk"
+CONFIGURE_ARGS+= --with-pgsql=${BUILDLINK_PREFIX.postgresql-lib}
+LDFLAGS+= ${BUILDLINK_LDFLAGS.postgresql-lib}
+.endif
+
+.if !empty(PKG_OPTIONS:Mldap)
+. include "../../databases/openldap/buildlink3.mk"
+CONFIGURE_ARGS+= --with-ldap=openldap
+CONFIGURE_ARGS+= --with-ldap=${BUILDLINK_PREFIX.openldap}
+LDFLAGS+= ${BUILDLINK_LDFLAGS.openldap}
+.endif
+
+.if !empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+= --enable-ipv6
+.else
+CONFIGURE_ARGS+= --disable-ipv6
+.endif
+