1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

Cleanup and update.

PR:		205574
Submitted by:	Dmitry Marakasov (amdmi3@)
This commit is contained in:
Matthias Andree 2015-12-30 15:16:27 +00:00
parent 4d4e2f35e8
commit 9befeb075e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=404861
2 changed files with 14 additions and 17 deletions

View File

@ -75,20 +75,20 @@ post-patch:
${REINPLACE_CMD} -e 's|install-data-local: install-docs|install-data-local:|' ${WRKSRC}/Makefile.in
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${MAKE} -C ${WRKSRC}/src install DESTDIR=${STAGEDIR}
${MAKE} -C ${WRKSRC}/docs install-man DESTDIR=${STAGEDIR}
${MKDIR} ${STAGEDIR}/var/spool/newsstar
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
.for i in ${EX_CONFIGS}
${INSTALL_DATA} ${WRKSRC}/sample_config/${i} ${STAGEDIR}${EXAMPLESDIR}
.endfor
.endif
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${STAGEDIR}${DOCSDIR}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
.endfor
.else
${MAKE} -C ${WRKSRC}/src install DESTDIR=${STAGEDIR}
${MAKE} -C ${WRKSRC}/docs install-man DESTDIR=${STAGEDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -31,11 +31,8 @@ libexec/newsstar/newsstar.bin
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/master.ignore.sample
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/master.score.sample
%%PORTEXAMPLES%%%%EXAMPLESDIR%%/newsrc.sample
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrm libexec/newsstar
@dirrmtry %%ETCDIR%%
@unexec if [ -d /var/spool/newsstar ] ; then echo "==================================================" ; echo "If you are deinstalling newsstar for good" ; echo "remove the spool: type: rm -rf /var/spool/newsstar"; echo "==================================================" ; fi
@unexec rmdir /var/spool/newsstar/lib >/dev/null 2>&1 || :
@unexec rmdir /var/spool/newsstar/incoming >/dev/null 2>&1 || :
@unexec rmdir /var/spool/newsstar >/dev/null 2>&1 || :
@dir(news,news,750) /var/spool/newsstar/incoming
@dir(news,news,750) /var/spool/newsstar/lib
@dir /var/spool/newsstar
@dir %%ETCDIR%%
@postunexec if [ -d /var/spool/newsstar ] ; then echo "==================================================" ; echo "If you are deinstalling newsstar for good" ; echo "remove the spool: type: rm -rf /var/spool/newsstar"; echo "==================================================" ; fi