summaryrefslogtreecommitdiff
path: root/mail/vpopmail
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2005-09-05 21:27:03 +0000
committerPeter Pentchev <roam@FreeBSD.org>2005-09-05 21:27:03 +0000
commitf83c5272a25ade67f155c12dbb403c9b1041ae0f (patch)
treec5233df98987937fe96edb52e9698d55ba4e6506 /mail/vpopmail
parentUpdate to 2.8.8 (diff)
Complement pav's handling of tcp.smtp and tcp.smtp-dist: actually install
the sample tcp.smtp file as tcp.smtp-dist. Add the WITH_SUID_VCHKPW knob for setting the setuid bit on bin/vchkpw. [1] Bump PORTREVISION. PR: 85124 [1] Submitted by: garga [1]
Notes
Notes: svn path=/head/; revision=142032
Diffstat (limited to 'mail/vpopmail')
-rw-r--r--mail/vpopmail/Makefile19
1 files changed, 10 insertions, 9 deletions
diff --git a/mail/vpopmail/Makefile b/mail/vpopmail/Makefile
index 31c49568263b..7db8118bea04 100644
--- a/mail/vpopmail/Makefile
+++ b/mail/vpopmail/Makefile
@@ -7,7 +7,7 @@
PORTNAME= vpopmail
PORTVERSION= 5.4.10
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= mail
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
@@ -62,6 +62,7 @@ CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
# WITHOUT_SEEKABLE - disables vdelivermail's attempt to make its input seekable
# WITH_DOMAIN_QUOTAS - enable domain quotas
# WITH_SPAMASSASSIN - enable SpamAssassin checks before Maildir delivery
+# WITH_SUID_VCHKPW - set the setuid bit on the vchkpw program
#
# Set these to the values you'd prefer
#
@@ -346,14 +347,11 @@ pre-configure:
post-install:
${MKDIR} ${PREFIX}/vpopmail/etc
- if [ ! -e "${PREFIX}/vpopmail/etc/tcp.smtp" ]; then \
- if [ -e "${VCFGDIR}/tcp.smtp" ]; then \
- ${INSTALL_DATA} ${VCFGDIR}/tcp.smtp ${PREFIX}/vpopmail/etc/tcp.smtp-dist; \
- else \
- ${TOUCH} ${PREFIX}/vpopmail/etc/tcp.smtp-dist; \
- fi; \
- ${CP} -p ${PREFIX}/vpopmail/etc/tcp.smtp-dist ${PREFIX}/vpopmail/etc/tcp.smtp; \
- fi
+ if [ -e "${VCFGDIR}/tcp.smtp" ]; then \
+ ${INSTALL_DATA} ${VCFGDIR}/tcp.smtp ${PREFIX}/vpopmail/etc/tcp.smtp-dist; \
+ else \
+ ${TOUCH} ${PREFIX}/vpopmail/etc/tcp.smtp-dist; \
+ fi;
.if defined(DEFAULT_DOMAIN)
${ECHO_CMD} ${DEFAULT_DOMAIN} > ${PREFIX}/vpopmail/etc/defaultdomain
.endif
@@ -374,5 +372,8 @@ post-install:
${MKDIR} ${PREFIX}/vpopmail/ldap
${INSTALL_DATA} ${LDAP_FILES} ${PREFIX}/vpopmail/ldap
.endif
+.if defined(WITH_SUID_VCHKPW)
+ ${CHMOD} u+s ${PREFIX}/vpopmail/bin/vchkpw
+.endif
.include <bsd.port.post.mk>