1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-29 01:13:08 +00:00

Create an empty default limits file if none exists, bump PORTREVISION.

Change a -f check to an -e one to also catch symlinks and such.
This commit is contained in:
Peter Pentchev 2003-11-10 09:26:39 +00:00
parent 6c8026f9a4
commit 9edb1b2b50
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93635
2 changed files with 12 additions and 4 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= vpopmail
PORTVERSION= 5.3.29
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -301,13 +302,16 @@ pre-configure:
post-install:
${MKDIR} ${PREFIX}/vpopmail/etc
if [ ! -f "${PREFIX}/vpopmail/etc/tcp.smtp" ]; then \
if [ -f "${VCFGDIR}/tcp.smtp" ]; then \
if [ ! -e "${PREFIX}/vpopmail/etc/tcp.smtp" ]; then \
if [ -e "${VCFGDIR}/tcp.smtp" ]; then \
${INSTALL_DATA} ${VCFGDIR}/tcp.smtp ${PREFIX}/vpopmail/etc/; \
else \
${TOUCH} ${PREFIX}/vpopmail/etc/tcp.smtp; \
fi; \
fi
if [ ! -e "${PREFIX}/vpopmail/etc/vlimits.default" ]; then \
${TOUCH} ${PREFIX}/vpopmail/etc/vlimits.default; \
fi
.if defined(DEFAULT_DOMAIN)
${ECHO_CMD} ${DEFAULT_DOMAIN} > ${PREFIX}/vpopmail/etc/defaultdomain
.endif

View File

@ -7,6 +7,7 @@
PORTNAME= vpopmail
PORTVERSION= 5.3.29
PORTREVISION= 1
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -301,13 +302,16 @@ pre-configure:
post-install:
${MKDIR} ${PREFIX}/vpopmail/etc
if [ ! -f "${PREFIX}/vpopmail/etc/tcp.smtp" ]; then \
if [ -f "${VCFGDIR}/tcp.smtp" ]; then \
if [ ! -e "${PREFIX}/vpopmail/etc/tcp.smtp" ]; then \
if [ -e "${VCFGDIR}/tcp.smtp" ]; then \
${INSTALL_DATA} ${VCFGDIR}/tcp.smtp ${PREFIX}/vpopmail/etc/; \
else \
${TOUCH} ${PREFIX}/vpopmail/etc/tcp.smtp; \
fi; \
fi
if [ ! -e "${PREFIX}/vpopmail/etc/vlimits.default" ]; then \
${TOUCH} ${PREFIX}/vpopmail/etc/vlimits.default; \
fi
.if defined(DEFAULT_DOMAIN)
${ECHO_CMD} ${DEFAULT_DOMAIN} > ${PREFIX}/vpopmail/etc/defaultdomain
.endif