Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jun 2013 16:18:30 +0000 (UTC)
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r321397 - head/news/s-news
Message-ID:  <201306201618.r5KGIUqX084236@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@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
 
 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
+@exec install -d -o news -g news -m 755 /var/spool/s-news
+@unexec rmdir /var/spool/s-news 2>/dev/null || true



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201306201618.r5KGIUqX084236>