summaryrefslogtreecommitdiff
path: root/mail/fetchmail/Makefile
diff options
context:
space:
mode:
authorSimon Barner <barner@FreeBSD.org>2006-05-12 16:58:48 +0000
committerSimon Barner <barner@FreeBSD.org>2006-05-12 16:58:48 +0000
commitf9884d1c0e012e8d6dc9f5995419b98ca251a2f2 (patch)
tree4159cbefde4c6febb55cf771b0a7b881928aaf2f /mail/fetchmail/Makefile
parentUpdate to DAT 4761 (diff)
- Update to 6.3.4 [1]
- Add rcNG script. See $PREFIX/etc/rc.d/fetchmail for instructions. Inspired by [2] and ports/www/apache22. PR: ports/96987 [1], ports/96079 Submitted by: Rob MacGregor <freebsd.macgregor@blueyonder.co.uk> [1], Martin Jackson <mhjacks@swbell.net>
Notes
Notes: svn path=/head/; revision=162186
Diffstat (limited to 'mail/fetchmail/Makefile')
-rw-r--r--mail/fetchmail/Makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile
index 98f5b12f292c..6336cf297a76 100644
--- a/mail/fetchmail/Makefile
+++ b/mail/fetchmail/Makefile
@@ -10,8 +10,7 @@
# want fetchmailconf to work, define WITH_X11
PORTNAME= fetchmail
-PORTVERSION= 6.3.2
-PORTREVISION= 1
+PORTVERSION= 6.3.4
CATEGORIES= mail ipv6
MASTER_SITES= http://download.berlios.de/%SUBDIR%/ \
http://home.pages.de/~mandree/%SUBDIR%/ \
@@ -23,6 +22,9 @@ COMMENT= Batch mail retrieval utility for IMAP/POP2/POP3/ETRN/ODMR
RUN_DEPENDS= ${LOCALBASE}/share/certs/ca-root.crt:${PORTSDIR}/security/ca-roots
+USE_RC_SUBR= fetchmail
+FETCHMAILRC= ${PREFIX}/etc//fetchmailrc
+
USE_BZIP2= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
@@ -98,6 +100,9 @@ pre-configure:
@${ECHO_CMD} "You can use -DWITHOUT_NLS to suppress national language support (NLS)."
.endif
+pre-install:
+ @${SETENV} ${SCRIPTS_ENV} PKG_PREFIX="${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+
post-install:
.if !defined(NOPORTDOCS)
${INSTALL} -d -m 555 -o ${DOCOWN} -g ${DOCGRP} ${DOCSDIR}
@@ -106,5 +111,10 @@ post-install:
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${PREFIX}/libexec
+ ${INSTALL} -d -m 755 -o fetchmail -g fetchmail /var/run/fetchmail
+ ${INSTALL} -m 644 -o fetchmail -g fetchmail ${FILESDIR}/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc.sample
+ if [ ! -f ${PREFIX}/etc/fetchmailrc ]; then \
+ ${CP} -p ${PREFIX}/etc/fetchmailrc.sample ${PREFIX}/etc/fetchmailrc ; \
+ fi
.include <bsd.port.post.mk>