1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

. introduce port options (DOCS);

. use standard DOCSDIR instead of DOCDIR;
. make use PORTDOCS at Makefile (trim pkg-plist);
. mute mkdir command;
. use one line install command;
. add padding for PKGMESSAGE;
. use @dirrmtry instead @exexec /bin/rmdir at pkg-plist.
This commit is contained in:
Boris Samorodov 2013-06-20 16:43:43 +00:00
parent 772ea7c291
commit 7196ff106f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=321402
2 changed files with 16 additions and 15 deletions

View File

@ -16,25 +16,32 @@ USE_GMAKE= YES
MAN1= fax.1 \
efax.1 \
efix.1
DOCDIR= ${PREFIX}/share/doc/efax
DOCSDIR= ${PREFIX}/share/doc/efax
PORTDOCS= COPYING README printcap.sample efax.html fax.html
MAKE_ENV= INSTALL_PROGRAM="${INSTALL_PROGRAM}" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
INSTALL_DATA="${INSTALL_DATA}"
CONFLICTS= efax-gtk-*
OPTIONS_DEFINE= DOCS
post-build:
${MV} ${WRKSRC}/fax ${WRKSRC}/fax.orig
${CAT} ${WRKSRC}/fax.orig | ${SED} -e s!%%PREFIX%%!${PREFIX}!g > \
${WRKSRC}/fax
.include <bsd.port.options.mk>
post-install:
${INSTALL_DATA} ${WRKSRC}/efax.rc.sample ${PREFIX}/etc
${INSTALL_DATA} ${WRKSRC}/efax.rc.sample.ja ${PREFIX}/etc
${MKDIR} ${DOCDIR}
.for i in COPYING README printcap.sample efax.html fax.html
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCDIR}
.endfor
${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif
@${ECHO_CMD}
@${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${ECHO_CMD}
.include <bsd.port.mk>

View File

@ -3,13 +3,7 @@ bin/efax
bin/efix
etc/efax.rc.sample
etc/efax.rc.sample.ja
share/doc/efax/COPYING
share/doc/efax/README
share/doc/efax/efax.html
share/doc/efax/fax.html
share/doc/efax/printcap.sample
@dirrm share/doc/efax
@unexec /bin/rm /var/spool/fax/outgoing/lock
@unexec /bin/rmdir /var/spool/fax/incoming
@unexec /bin/rmdir /var/spool/fax/outgoing
@unexec /bin/rmdir /var/spool/fax
@dirrmtry /var/spool/fax/incoming
@dirrmtry /var/spool/fax/outgoing
@dirrmtry /var/spool/fax