1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- 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
This commit is contained in:
Alexey Dokuchaev 2013-07-27 11:12:27 +00:00
parent 47fe60af4d
commit d451e40da1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323779
4 changed files with 25 additions and 22 deletions

View File

@ -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)

View File

@ -1,10 +1,5 @@
# ex:ts=8
# Ports collection makefile for: newspost
# Date created: Tue Jul 23, 2002
# Whom: Michael L. Hostbaek (mich@freebsdcluster.org)
#
# Created by: Michael L. Hostbaek <mich@freebsdcluster.org>
# $FreeBSD$
#
PORTNAME= newspost
PORTVERSION= 2.1.1
@ -13,20 +8,32 @@ CATEGORIES= news
MASTER_SITES= http://newspost.unixcab.org/download/
MAINTAINER= mich@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}
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}/README
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
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>

View File

@ -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@unixcab.org>
WWW: http://newspost.unixcab.org/

View File

@ -1,3 +0,0 @@
bin/newspost
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%@dirrm %%DOCSDIR%%