svn commit: r320948 - head/sysutils/freqsdwn
Boris Samorodov
bsam at FreeBSD.org
Fri Jun 14 16:02:00 UTC 2013
Author: bsam
Date: Fri Jun 14 16:01:59 2013
New Revision: 320948
URL: http://svnweb.freebsd.org/changeset/ports/320948
Log:
. NOPORTDOCS -> PORT_OPTIONS:MDOCS;
. do not use a for loop for one file (README);
. do not mute install;
. trim Makefile headers.
Modified:
head/sysutils/freqsdwn/Makefile
Modified: head/sysutils/freqsdwn/Makefile
==============================================================================
--- head/sysutils/freqsdwn/Makefile Fri Jun 14 16:00:57 2013 (r320947)
+++ head/sysutils/freqsdwn/Makefile Fri Jun 14 16:01:59 2013 (r320948)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: freqsdwn
-# Date created: 2005/11/20
-# Whom: n-shigemura at ensure.jp
-#
+# Created by: n-shigemura at ensure.jp
# $FreeBSD$
-#
PORTNAME= freqsdwn
PORTVERSION= 2.00
@@ -24,9 +20,9 @@ IGNORE= ${RESTRICTED}
USE_RC_SUBR= freqshpd 000.freqshpk
PLIST_SUB= PORTNAME=${PORTNAME} CONFDIR=${CONFDIR}
SUB_LIST= PORTNAME=${PORTNAME} CONFDIR=${CONFDIR}
+OPTIONS_DEFINE= DOCS
WRKSRC= ${WRKDIR}/freqship
-PORTDOCS= README
CONFDIR?= ${PREFIX}/etc/freqship
@@ -44,6 +40,8 @@ post-extract:
@${CP} ${FILESDIR}/Makefile.${dir} ${WRKSRC}/${dir:subdir=}/Makefile
.endfor
+.include <bsd.port.options.mk>
+
post-install:
@${MKDIR} ${CONFDIR}
.for FILE in UPSFILE UPSSTAT PMSGERR PMSGOK DELAY
@@ -51,11 +49,9 @@ post-install:
@[ -f ${PREFIX}/etc/freqship/${FILE} ] || \
${CP} ${WRKSRC}/initdata/${FILE} ${PREFIX}/etc/freqship/${FILE}
.endfor
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
-.for FILE in ${PORTDOCS}
- @${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
-.endfor
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
@${CAT} ${PKGMESSAGE}
More information about the svn-ports-all
mailing list