1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-09 06:51:44 +00:00

Use the neat PORTDOCS variable instead of enumerating

all the doc-related files in the plist.
This commit is contained in:
Yaroslav Tykhiy 2004-11-22 14:51:16 +00:00
parent 80162fb2a8
commit e52b09e808
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122143
2 changed files with 4 additions and 16 deletions

View File

@ -99,6 +99,10 @@ CONFIGURE_ARGS+= --with-db --enable-cache=flatfile
USE_RC_SUBR= yes
RC_SCRIPTS_SUB= PREFIX=${PREFIX} RC_SUBR=${RC_SUBR} NAME=milter_sender
.if !defined(NOPORTDOCS)
PORTDOCS= *
.endif
post-extract:
${SED} ${RC_SCRIPTS_SUB:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
${FILESDIR}/milter-sender.sh > ${WRKSRC}/milter-sender.sh.freebsd

View File

@ -8,27 +8,11 @@ etc/rc.d/milter-sender.sh.sample
sbin/milter-sender
@exec install -d -o smmsp -g smmsp -m 755 /var/spool/milter-sender
@unexec rm -rf /var/spool/milter-sender 2>&1 >/dev/null || true
%%PORTDOCS%%%%DOCSDIR%%/CHANGES.TXT
%%PORTDOCS%%%%DOCSDIR%%/Img/bg.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/dilbert2003071742312.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/dilbert2003228690821.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/dilbert20040429.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/mrpixel.gif
%%PORTDOCS%%%%DOCSDIR%%/Img/overview.png
%%PORTDOCS%%%%DOCSDIR%%/Img/sendmail-bat-left-142x38.png
%%PORTDOCS%%%%DOCSDIR%%/Img/sendmail-bat-right-142x38.png
%%PORTDOCS%%%%DOCSDIR%%/Img/sun.gif
%%PORTDOCS%%%%DOCSDIR%%/LICENSE.TXT
%%PORTDOCS%%%%DOCSDIR%%/index.shtml
%%PORTDOCS%%%%DOCSDIR%%/mailto.js
%%PORTDOCS%%%%DOCSDIR%%/style.css
@unexec echo
@unexec echo "If permanently deleting this package, don't forget to delete"
@unexec echo "the inclusion of milter-sender.mc from /etc/mail/YOUR-CONF.mc"
@unexec echo "and then to rebuild and reinstall the sendmail configuration file!"
@unexec echo
%%PORTDOCS%%@dirrm %%DOCSDIR%%/Img
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@cwd /
@unexec if [ -f %D/etc/mail/milter-sender.mc ] && cmp -s %D/etc/mail/milter-sender.mc %D/etc/mail/milter-sender.mc.sample; then rm -f %D/etc/mail/milter-sender.mc; fi
etc/mail/milter-sender.mc.sample