aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-09-05 05:33:19 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-09-05 05:33:19 +0800
commit8de856f60f57e84d3685793589c63930acc69757 (patch)
tree5c9cee798cecb8e3f7e0150de45d9da943ae418a /mail
parent0a9ffec167135b80a1aef5a0ae197d0c95de907e (diff)
downloadfreebsd-ports-gnome-8de856f60f57e84d3685793589c63930acc69757.tar.gz
freebsd-ports-gnome-8de856f60f57e84d3685793589c63930acc69757.tar.zst
freebsd-ports-gnome-8de856f60f57e84d3685793589c63930acc69757.zip
- Switch to options helpers
- Switch to @sample Approved by: portmgr blanket
Diffstat (limited to 'mail')
-rw-r--r--mail/fetchmail/Makefile15
-rw-r--r--mail/fetchmail/pkg-plist4
2 files changed, 8 insertions, 11 deletions
diff --git a/mail/fetchmail/Makefile b/mail/fetchmail/Makefile
index f9e7106d5f3f..fa2b0259e498 100644
--- a/mail/fetchmail/Makefile
+++ b/mail/fetchmail/Makefile
@@ -97,19 +97,18 @@ post-patch:
.endif
post-build:
- @${MAKE} -C ${WRKSRC} check
+ @${MAKE_CMD} -C ${WRKSRC} check
post-install:
-.if ${PORT_OPTIONS:MDOCS}
+ ${INSTALL_DATA} ${FILESDIR}/fetchmailrc.sample \
+ ${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
+
+post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- @cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.endif
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
-.if empty(PORT_OPTIONS:MX11)
+post-install-X11-off:
${INSTALL_SCRIPT} ${WRKDIR}/fetchmailconf ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/fetchmailconf.py ${STAGEDIR}${PREFIX}/libexec
-.endif
- ${INSTALL} ${FILESDIR}/fetchmailrc.sample \
- ${STAGEDIR}${PREFIX}/etc/fetchmailrc.sample
.include <bsd.port.mk>
diff --git a/mail/fetchmail/pkg-plist b/mail/fetchmail/pkg-plist
index f87495155a84..92ee28a7619b 100644
--- a/mail/fetchmail/pkg-plist
+++ b/mail/fetchmail/pkg-plist
@@ -30,6 +30,4 @@ man/man1/fetchmailconf.1.gz
%%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.py
%%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.pyc
%%X11%%%%PYTHON_SITELIBDIR%%/fetchmailconf.pyo
-@unexec if cmp -s %D/etc/fetchmailrc.sample %D/etc/fetchmailrc; then rm -f %D/etc/fetchmailrc; fi
-etc/fetchmailrc.sample
-@exec if [ ! -f %D/etc/fetchmailrc ] ; then cp -p %D/%F %B/fetchmailrc; fi
+@sample etc/fetchmailrc.sample