svn commit: r325335 - head/mail/procmail
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Sun Aug 25 09:27:59 UTC 2013
Author: sunpoet
Date: Sun Aug 25 09:27:58 2013
New Revision: 325335
URL: http://svnweb.freebsd.org/changeset/ports/325335
Log:
- Convert to new options framework
- Use PLIST_FILES, PORTDOCS and PORTEXAMPLES instead of PLIST
- Cleanup Makefile header
Deleted:
head/mail/procmail/pkg-plist
Modified:
head/mail/procmail/Makefile
Modified: head/mail/procmail/Makefile
==============================================================================
--- head/mail/procmail/Makefile Sun Aug 25 09:14:39 2013 (r325334)
+++ head/mail/procmail/Makefile Sun Aug 25 09:27:58 2013 (r325335)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: procmail
-# Date created: 24 September 1994
-# Whom: adam
-#
+# Created by: adam
# $FreeBSD$
-#
PORTNAME= procmail
PORTVERSION= 3.22
@@ -21,26 +17,31 @@ MASTER_SITES= ftp://ftp.ucsb.edu/pub/mir
MAINTAINER= sunpoet at FreeBSD.org
COMMENT= Local mail delivery agent
+OPTIONS_SET= DOCS EXAMPLES
+
INSTALL_TARGET= install-suid install.man
MAKE_JOBS_UNSAFE= yes
-DOCS= FAQ FEATURES HISTORY KNOWN_BUGS README
-EXAMPLES= 1procmailrc 1rmail 2procmailrc 2rmail 3procmailrc 3rmail \
- advanced dirname forward local_procmail_lmtp.m4 mailstat
MAN1= formail.1 lockfile.1 procmail.1
MAN5= procmailex.5 procmailrc.5 procmailsc.5
+PLIST_FILES= bin/formail bin/lockfile bin/mailstat bin/procmail
+PORTDOCS= FAQ FEATURES HISTORY KNOWN_BUGS README
+PORTEXAMPLES= 1procmailrc 1rmail 2procmailrc 2rmail 3procmailrc 3rmail \
+ advanced dirname forward local_procmail_lmtp.m4 mailstat
+
+.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/config.h
post-install:
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}/
- cd ${WRKSRC}/ && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}/
+ cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif
-.if !defined(NOPORTEXAMPLES)
+.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}/
- cd ${WRKSRC}/examples/ && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}/
+ cd ${WRKSRC}/examples/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list