svn commit: r323779 - in head: net-mgmt/netmagis-common news/newspost
Alexey Dokuchaev
danfe at FreeBSD.org
Sat Jul 27 11:12:28 UTC 2013
Author: danfe
Date: Sat Jul 27 11:12:27 2013
New Revision: 323779
URL: http://svnweb.freebsd.org/changeset/ports/323779
Log:
- Fix Makefile header, normalize COMMENT, add LICENSE
- Make the port parallel build (-jX) safe
- Install manual page relative to MANPREFIX
- Convert to OptionsNG (DOCS), sort the knobs, etc.
- Reformat pkg-message, convert three-line pkg-plist
While here, mute REINPLACE_CMD (debug leftover) from previous commit.
Reported by: pointyhat-west
Deleted:
head/news/newspost/pkg-plist
Modified:
head/net-mgmt/netmagis-common/Makefile
head/news/newspost/Makefile
head/news/newspost/pkg-descr
Modified: head/net-mgmt/netmagis-common/Makefile
==============================================================================
--- head/net-mgmt/netmagis-common/Makefile Sat Jul 27 10:49:39 2013 (r323778)
+++ head/net-mgmt/netmagis-common/Makefile Sat Jul 27 11:12:27 2013 (r323779)
@@ -69,7 +69,7 @@ INSTALL_TARGET= install${PKGNAMESUFFIX}
post-patch:
@${FIND} ${WRKSRC} -type f -name Makefile -print0 | ${XARGS} -0 \
${REINPLACE_CMD} -E 's,cd(.+) (;|&&) make,$$(MAKE) -C\1,'
- ${REINPLACE_CMD} -E 's,cd (.+) ; (ln -s en ),\2\1/,' \
+ @${REINPLACE_CMD} -E 's,cd (.+) ; (ln -s en ),\2\1/,' \
${WRKSRC}/www/Makefile
.if !target(post-install)
Modified: head/news/newspost/Makefile
==============================================================================
--- head/news/newspost/Makefile Sat Jul 27 10:49:39 2013 (r323778)
+++ head/news/newspost/Makefile Sat Jul 27 11:12:27 2013 (r323779)
@@ -1,10 +1,5 @@
-# ex:ts=8
-# Ports collection makefile for: newspost
-# Date created: Tue Jul 23, 2002
-# Whom: Michael L. Hostbaek (mich at freebsdcluster.org)
-#
+# Created by: Michael L. Hostbaek <mich at freebsdcluster.org>
# $FreeBSD$
-#
PORTNAME= newspost
PORTVERSION= 2.1.1
@@ -13,20 +8,32 @@ CATEGORIES= news
MASTER_SITES= http://newspost.unixcab.org/download/
MAINTAINER= mich at FreeBSD.org
-COMMENT= Newspost is a full-featured USEnet binary autoposter
+COMMENT= Full-featured Usenet binary autoposter
+
+LICENSE= GPLv2
ALL_TARGET= main
MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}"
-do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/${PORTNAME}
- ${INSTALL_MAN} ${WRKSRC}/man/man1/newspost.1 ${PREFIX}/man/man1
+MAN1= ${PORTNAME}.1
+PORTDOCS= README
+PLIST_FILES= bin/${PORTNAME}
+
+OPTIONS_DEFINE= DOCS
+
+.include <bsd.port.options.mk>
+
+# Change "cd foo; $(MAKE)" into "$(MAKE) -C foo" to unbreak parallel builds
+post-patch:
+ @${REINPLACE_CMD} -E 's|cd(.+) ; (\$$\(MAKE\))|\2 -C\1|' \
+ ${WRKSRC}/Makefile
-.if !defined(NOPORTDOCS)
- ${MKDIR} ${DOCSDIR}
- ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin
+ ${INSTALL_MAN} ${WRKSRC}/man/man1/${MAN1} ${MANPREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
-MAN1= newspost.1
-
.include <bsd.port.mk>
Modified: head/news/newspost/pkg-descr
==============================================================================
--- head/news/newspost/pkg-descr Sat Jul 27 10:49:39 2013 (r323778)
+++ head/news/newspost/pkg-descr Sat Jul 27 11:12:27 2013 (r323779)
@@ -1,6 +1,5 @@
-Newspost is a full-featured USEnet binary autoposter. It is meant as
-an all-in-one posting solution. In addition to posting files, it can
+Newspost is a full-featured Usenet binary autoposter. It is meant as
+an all-in-one posting solution. In addition to posting files, it can
post text prefixes, and generate and post .SFV files and .PAR volumes.
-Author: Jim Faulkner <newspost at unixcab.org>
WWW: http://newspost.unixcab.org/
More information about the svn-ports-all
mailing list