- Convert to stagedir
This commit is contained in:
parent
090a44e94d
commit
c82a2185b9
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=349895
2 changed files with 25 additions and 45 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue