aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-04-02 07:43:07 +0800
committerbdrewery <bdrewery@FreeBSD.org>2014-04-02 07:43:07 +0800
commit55a8395b0928ef0ca61cee4513f86368f7c07931 (patch)
treef107bb0d64f327a39f89170c637aa0b852a91370 /mail
parent43caf913364786f3e93772355d78dc641cf3346a (diff)
downloadfreebsd-ports-gnome-55a8395b0928ef0ca61cee4513f86368f7c07931.tar.gz
freebsd-ports-gnome-55a8395b0928ef0ca61cee4513f86368f7c07931.tar.zst
freebsd-ports-gnome-55a8395b0928ef0ca61cee4513f86368f7c07931.zip
- Convert to stagedir
Diffstat (limited to 'mail')
-rw-r--r--mail/vpopmail/Makefile60
-rw-r--r--mail/vpopmail/pkg-plist10
2 files changed, 25 insertions, 45 deletions
diff --git a/mail/vpopmail/Makefile b/mail/vpopmail/Makefile
index faa78d8368e0..82302ce8bef4 100644
--- a/mail/vpopmail/Makefile
+++ b/mail/vpopmail/Makefile
@@ -3,7 +3,7 @@
PORTNAME= vpopmail
PORTVERSION= 5.4.32
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTVERSION} \
SF/${PORTNAME}/${PORTNAME}-devel/${PORTVERSION}
@@ -19,7 +19,6 @@ RUN_DEPENDS= ${LOCALBASE}/bin/tcprules:${PORTSDIR}/sysutils/ucspi-tcp
PATCH_STRIP= -p1
-NO_STAGE= yes
USES= qmail gmake
CONFLICTS= vpopmail-devel-5.*
@@ -40,8 +39,8 @@ CONFIGURE_ARGS= --enable-qmaildir=${QMAIL_PREFIX} \
--enable-tcpserver-file=${VPOPMAIL_DIR}/etc/tcp.smtp \
--enable-non-root-build \
--enable-logging=${LOGLEVEL} \
- --enable-vpopuser=${USERS} \
- --enable-vpopgroup=${GROUPS}
+ --enable-vpopuser=nobody \
+ --enable-vpopgroup=nobody
OPTIONS_DEFINE= DOCS \
PASSWD \
@@ -393,57 +392,28 @@ pre-configure:
${MKDIR} ${VCFGDIR}
post-install:
- ${MKDIR} ${VPOPMAIL_DIR}/etc
+ ${MKDIR} ${STAGEDIR}${VPOPMAIL_DIR}/etc
if [ -e "${VCFGDIR}/tcp.smtp" ]; then \
- ${INSTALL_DATA} ${VCFGDIR}/tcp.smtp ${VPOPMAIL_DIR}/etc/tcp.smtp-dist; \
+ ${INSTALL_DATA} ${VCFGDIR}/tcp.smtp ${STAGEDIR}${VPOPMAIL_DIR}/etc/tcp.smtp-dist; \
else \
- ${TOUCH} ${VPOPMAIL_DIR}/etc/tcp.smtp-dist; \
+ ${TOUCH} ${STAGEDIR}${VPOPMAIL_DIR}/etc/tcp.smtp-dist; \
fi;
- if [ ! -f ${VPOPMAIL_DIR}/etc/tcp.smtp ]; then \
- ${INSTALL_DATA} ${VPOPMAIL_DIR}/etc/tcp.smtp-dist ${VPOPMAIL_DIR}/etc/tcp.smtp; \
- fi
- if [ ! -f ${VPOPMAIL_DIR}/etc/vlimits.default ]; then \
- ${INSTALL_DATA} ${VPOPMAIL_DIR}/etc/vlimits.default-dist ${VPOPMAIL_DIR}/etc/vlimits.default; \
- fi
- if [ ! -f ${VPOPMAIL_DIR}/etc/vusagec.conf ]; then \
- ${INSTALL_DATA} ${VPOPMAIL_DIR}/etc/vusagec.conf-dist ${VPOPMAIL_DIR}/etc/vusagec.conf; \
- fi
-.if ${PORT_OPTIONS:MMYSQL}
- if [ ! -f ${VPOPMAIL_DIR}/etc/vpopmail.mysql ]; then \
- ${CP} ${VPOPMAIL_DIR}/etc/vpopmail.mysql-dist ${VPOPMAIL_DIR}/etc/vpopmail.mysql; \
- fi
-.endif
- ${TOUCH} ${VPOPMAIL_DIR}/etc/defaultdomain
.if ${PORT_OPTIONS:MLDAP}
- @${ECHO_CMD} "# LDAP CONNECTION SETTINGS FOR VPOPMAIL" > ${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist
- @${ECHO_CMD} "# Line format:" >> ${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist
- @${ECHO_CMD} "# host|port|user|password|basedn" >> ${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist
- @${ECHO_CMD} "localhost|389|cn=vpopmailuser, o=vpopmail|vpoppasswd|o=vpopmail" >> ${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist
- if [ ! -f ${VPOPMAIL_DIR}/etc/vpopmail.ldap ]; then \
- ${CP} ${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist ${VPOPMAIL_DIR}/etc/vpopmail.ldap; \
- fi
- @${ECHO_CMD} "You need to specify the LDAP connection settings in the ${VPOPMAIL_DIR}/etc/vpopmail.ldap file"
-.endif
- ${CHOWN} -R vpopmail:vchkpw ${VPOPMAIL_DIR}/bin/ ${VPOPMAIL_DIR}/etc/
-.if ${PORT_OPTIONS:MSPAMASSASSIN}
- ${ECHO_CMD} "***********************************************************************"
- ${ECHO_CMD} "Now you should add the following options to your spamd.sh startup file:"
- ${ECHO_CMD} "-v -u vpopmail"
- ${ECHO_CMD} "***********************************************************************"
+ @${ECHO_CMD} "# LDAP CONNECTION SETTINGS FOR VPOPMAIL" > ${STAGEDIR}${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist
+ @${ECHO_CMD} "# Line format:" >> ${STAGEDIR}${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist
+ @${ECHO_CMD} "# host|port|user|password|basedn" >> ${STAGEDIR}${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist
+ @${ECHO_CMD} "localhost|389|cn=vpopmailuser, o=vpopmail|vpoppasswd|o=vpopmail" >> ${STAGEDIR}${VPOPMAIL_DIR}/etc/vpopmail.ldap-dist
.endif
.if ${PORT_OPTIONS:MLDAP}
- ${MKDIR} ${VPOPMAIL_DIR}/ldap
- ${INSTALL_DATA} ${LDAP_FILES} ${VPOPMAIL_DIR}/ldap
+ ${MKDIR} ${STAGEDIR}${VPOPMAIL_DIR}/ldap
+ ${INSTALL_DATA} ${LDAP_FILES} ${STAGEDIR}${VPOPMAIL_DIR}/ldap
.endif
.if ${PORT_OPTIONS:MMAILDROP}
- ${MKDIR} ${VPOPMAIL_DIR}/maildrop
- ${INSTALL_DATA} ${MAILDROP_FILES} ${VPOPMAIL_DIR}/maildrop
-.endif
-.if ${PORT_OPTIONS:MSUID_VCHKPW}
- ${CHMOD} ug+s ${VPOPMAIL_DIR}/bin/vchkpw
+ ${MKDIR} ${STAGEDIR}${VPOPMAIL_DIR}/maildrop
+ ${INSTALL_DATA} ${MAILDROP_FILES} ${STAGEDIR}${VPOPMAIL_DIR}/maildrop
.endif
.if ${PORT_OPTIONS:MDOCS}
- ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/doc/,} ${VPOPMAIL_DIR}/doc/
+ ${INSTALL_DATA} ${DOCS:S,^,${WRKSRC}/doc/,} ${STAGEDIR}${VPOPMAIL_DIR}/doc/
.endif
.include <bsd.port.mk>
diff --git a/mail/vpopmail/pkg-plist b/mail/vpopmail/pkg-plist
index 2370f9f73fbc..a2697f3d8a21 100644
--- a/mail/vpopmail/pkg-plist
+++ b/mail/vpopmail/pkg-plist
@@ -74,12 +74,22 @@ vpopmail/etc/vlimits.default-dist
%%LDAP%%@unexec if cmp -s %D/vpopmail/etc/vpopmail.ldap %D/vpopmail/etc/vpopmail.ldap-dist; then rm -f %D/vpopmail/etc/vpopmail.ldap; fi
%%LDAP%%vpopmail/etc/vpopmail.ldap-dist
%%LDAP%%@exec if [ ! -f %D/vpopmail/etc/vpopmail.ldap ] ; then cp -p %D/%F %B/vpopmail.ldap; fi
+%%LDAP%%@exec echo "You need to specify the LDAP connection settings in the %D/vpopmail/etc/vpopmail.ldap file" | /usr/bin/fmt
%%MYSQL%%@unexec if cmp -s %D/vpopmail/etc/vpopmail.mysql %D/vpopmail/etc/vpopmail.mysql-dist; then rm -f %D/vpopmail/etc/vpopmail.mysql; fi
%%MYSQL%%vpopmail/etc/vpopmail.mysql-dist
%%MYSQL%%@exec if [ ! -f %D/vpopmail/etc/vpopmail.mysql ] ; then cp -p %D/%F %B/vpopmail.mysql; fi
@unexec if cmp -s %D/vpopmail/etc/vusagec.conf %D/vpopmail/etc/vusagec.conf-dist; then rm -f %D/vpopmail/etc/vusagec.conf; fi
vpopmail/etc/vusagec.conf-dist
@exec if [ ! -f %D/vpopmail/etc/vusagec.conf ] ; then cp -p %D/%F %B/vusagec.conf; fi
+%%SPAMASSASSIN%%@exec echo "***********************************************************************"
+%%SPAMASSASSIN%%@exec echo "Now you should add the following options to your spamd.sh startup file:"
+%%SPAMASSASSIN%%@exec echo "-v -u vpopmail"
+%%SPAMASSASSIN%%@exec echo "***********************************************************************"
+@exec /usr/sbin/chown -R vpopmail:vchkpw %D/vpopmail/bin %D/vpopmail/etc
+%%SUID_VCHKPW%%@exec /bin/chmod ug+s %D/vpopmail/bin/vchkpw
+@exec install -d -o vpopmail -g vchkpw %D/vpopmail/domains
+@exec install -d -o vpopmail -g vchkpw %D/vpopmail/lib
+@exec install -d -o vpopmail -g vchkpw %D/vpopmail/include
vpopmail/include/client.h
vpopmail/include/conf.h
vpopmail/include/config.h