svn commit: r321886 - head/sysutils/ataidle
William Grzybowski
wg at FreeBSD.org
Thu Jun 27 12:38:12 UTC 2013
Author: wg
Date: Thu Jun 27 12:38:11 2013
New Revision: 321886
URL: http://svnweb.freebsd.org/changeset/ports/321886
Log:
sysutils/ataidle: minor fixes
- Trim Makefile header
- Add DOCS option
- NOPORTDOCS -> PORTOPTIONS:MDOCS
Modified:
head/sysutils/ataidle/Makefile
Modified: head/sysutils/ataidle/Makefile
==============================================================================
--- head/sysutils/ataidle/Makefile Thu Jun 27 12:36:31 2013 (r321885)
+++ head/sysutils/ataidle/Makefile Thu Jun 27 12:38:11 2013 (r321886)
@@ -1,9 +1,5 @@
-# New ports collection makefile for: ataidle
-# Date created: 2004-01-11
-# Whom: Bruce Cran <bruce at cran.org.uk>
-#
+# Created by: Bruce Cran <bruce at cran.org.uk>
# $FreeBSD$
-#
PORTNAME= ataidle
PORTVERSION= 2.7.2
@@ -18,12 +14,16 @@ MAN8= ataidle.8
PORTDOCS= COPYING Changelog README
PLIST_FILES= sbin/ataidle
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/ataidle ${PREFIX}/sbin
${INSTALL_MAN} ${WRKSRC}/ataidle.8 ${MAN8PREFIX}/man/man8
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
- cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>
More information about the svn-ports-head
mailing list