svn commit: r321397 - head/news/s-news
Antoine Brodin
antoine at FreeBSD.org
Thu Jun 20 16:18:30 UTC 2013
Author: antoine
Date: Thu Jun 20 16:18:29 2013
New Revision: 321397
URL: http://svnweb.freebsd.org/changeset/ports/321397
Log:
- Trim Makefile header
- Convert to PORT_OPTIONS
- Add a missing directory to pkg-plist
Modified:
head/news/s-news/Makefile
head/news/s-news/pkg-plist
Modified: head/news/s-news/Makefile
==============================================================================
--- head/news/s-news/Makefile Thu Jun 20 15:57:33 2013 (r321396)
+++ head/news/s-news/Makefile Thu Jun 20 16:18:29 2013 (r321397)
@@ -1,13 +1,9 @@
-# New ports collection makefile for: s-news
-# Date created: Jul 13 13:29:47 EEST 2004
-# Whom: Andrey Slusar <anray at FreeBSD.org>
-#
+# Created by: Andrey Slusar <anray at FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= s-news
PORTVERSION= 0.1.11
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= news
MASTER_SITES= http://www.lost.org.uk/
@@ -33,12 +29,14 @@ MAN8= expire.8 listactive.8 makehistory
PORTDOCS= README README.conf README.suck TODO
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
post-install:
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
-.for i in ${PORTDOCS}
- ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}
-.endfor
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
.include <bsd.port.mk>
Modified: head/news/s-news/pkg-plist
==============================================================================
--- head/news/s-news/pkg-plist Thu Jun 20 15:57:33 2013 (r321396)
+++ head/news/s-news/pkg-plist Thu Jun 20 16:18:29 2013 (r321397)
@@ -19,3 +19,5 @@ sbin/rmfeed
sbin/rmgroup
sbin/rnews
@dirrm etc/s-news
+ at exec install -d -o news -g news -m 755 /var/spool/s-news
+ at unexec rmdir /var/spool/s-news 2>/dev/null || true
More information about the svn-ports-all
mailing list