aboutsummaryrefslogtreecommitdiffstats
path: root/news/s-news
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2013-06-21 00:18:29 +0800
committerantoine <antoine@FreeBSD.org>2013-06-21 00:18:29 +0800
commitc2ef77c7dc48310a275c16a7982f2e75a43a8012 (patch)
tree088b1501035085de576c28ccf5cd839ed017a58c /news/s-news
parenteae7a1d8e9dafb17e7444b0e37f763c07c51524c (diff)
downloadfreebsd-ports-gnome-c2ef77c7dc48310a275c16a7982f2e75a43a8012.tar.gz
freebsd-ports-gnome-c2ef77c7dc48310a275c16a7982f2e75a43a8012.tar.zst
freebsd-ports-gnome-c2ef77c7dc48310a275c16a7982f2e75a43a8012.zip
- Trim Makefile header
- Convert to PORT_OPTIONS - Add a missing directory to pkg-plist
Diffstat (limited to 'news/s-news')
-rw-r--r--news/s-news/Makefile20
-rw-r--r--news/s-news/pkg-plist2
2 files changed, 11 insertions, 11 deletions
diff --git a/news/s-news/Makefile b/news/s-news/Makefile
index 99fff7f4b164..6331e8f7a719 100644
--- a/news/s-news/Makefile
+++ b/news/s-news/Makefile
@@ -1,13 +1,9 @@
-# New ports collection makefile for: s-news
-# Date created: Jul 13 13:29:47 EEST 2004
-# Whom: Andrey Slusar <anray@FreeBSD.org>
-#
+# Created by: Andrey Slusar <anray@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.8 newgroup.8 nntpd.8 overview.8 \
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>
diff --git a/news/s-news/pkg-plist b/news/s-news/pkg-plist
index e5ad17f955f5..f25b3a2a7633 100644
--- a/news/s-news/pkg-plist
+++ b/news/s-news/pkg-plist
@@ -19,3 +19,5 @@ sbin/rmfeed
sbin/rmgroup
sbin/rnews
@dirrm etc/s-news
+@exec install -d -o news -g news -m 755 /var/spool/s-news
+@unexec rmdir /var/spool/s-news 2>/dev/null || true