. NOPORTDOCS -> PORT_OPTIONS:MDOCS;

. mute mkdir commands;
. use one line install command;
. introduce PORTDOCS at Makefile (trim pkg-plist);
. trim Makefile headers.
This commit is contained in:
Boris Samorodov 2013-06-20 16:55:56 +00:00
parent edf72b86d2
commit ed3643eda7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321404
2 changed files with 12 additions and 18 deletions

View file

@ -1,9 +1,5 @@
# New ports collection makefile for: bforce-kst
# Date created: 1 May 2002
# Whom: Andrew Dolgov <fox@furry.spb.ru>
#
# Created by: Andrew Dolgov <fox@furry.spb.ru>
# $FreeBSD$
#
PORTNAME= bforce
PORTVERSION= 0.22.8.7
@ -42,8 +38,12 @@ FIXME= include/bforce.h include/util.h include/logger.h \
WRKSRC= ${WRKDIR}/${DISTNAME}/source
PORTDOCS= CHANGES CHANGES.kst COPYING README README.kst
OPTIONS_DEFINE= DOCS
pre-configure:
${MKDIR} ${WRKSRC}/bin
@${MKDIR} ${WRKSRC}/bin
post-patch:
@${REINPLACE_CMD} -e 's,/etc/bforce,/etc/fido/bforce,g' ${WRKSRC}/Makefile.in
@ -51,8 +51,10 @@ post-patch:
@${REINPLACE_CMD} -e 's,log(,bf_log(,g' ${WRKSRC}/${i}
.endfor
.include <bsd.port.options.mk>
do-install:
${MKDIR} ${PREFIX}/etc/fido/bforce
@${MKDIR} ${PREFIX}/etc/fido/bforce
${INSTALL_DATA} ${WRKSRC}/../examples/bforce.conf ${PREFIX}/etc/fido/bforce/bforce.conf.sample
${INSTALL_DATA} ${WRKSRC}/../examples/bforce.passwd ${PREFIX}/etc/fido/bforce/bforce.passwd.sample
${INSTALL_DATA} ${WRKSRC}/../examples/bforce.subst ${PREFIX}/etc/fido/bforce/bforce.subst.sample
@ -63,11 +65,9 @@ do-install:
.for i in ${CONTRIBS}
${INSTALL_DATA} ${WRKSRC}/../contrib/${i} ${DATADIR}/${i}
.endfor
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for i in CHANGES CHANGES.kst COPYING README README.kst
${INSTALL_DATA} ${WRKSRC}/../${i} ${DOCSDIR}
.endfor
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/../,} ${DOCSDIR}
.endif
${INSTALL_PROGRAM} ${WRKSRC}/bin/bforce ${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin/bfindex ${PREFIX}/bin

View file

@ -27,12 +27,6 @@ etc/fido/bforce/freq.dirs.sample
%%DATADIR%%/u-srif/u-srif-index.py
%%DATADIR%%/u-srif/u-srif-lookup.py
%%DATADIR%%/u-srif/u-srif.py
%%PORTDOCS%%%%DOCSDIR%%/CHANGES
%%PORTDOCS%%%%DOCSDIR%%/CHANGES.kst
%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/README.kst
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm etc/fido/bforce
@dirrm etc/fido
@dirrm %%DATADIR%%/u-srif/lib