diff options
author | mandree <mandree@FreeBSD.org> | 2013-10-24 06:17:50 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2013-10-24 06:17:50 +0800 |
commit | fe7a68f5a1f34a7291f03aba88987dad756bb156 (patch) | |
tree | 54b4f36b034128ea3cf9d8d5f7b4b43f48175f4b /news | |
parent | 89840bfabb28efe5d3fea7ae16573ca071677cac (diff) | |
download | freebsd-ports-gnome-fe7a68f5a1f34a7291f03aba88987dad756bb156.tar.gz freebsd-ports-gnome-fe7a68f5a1f34a7291f03aba88987dad756bb156.tar.zst freebsd-ports-gnome-fe7a68f5a1f34a7291f03aba88987dad756bb156.zip |
Support staging.
Reorder Makefile targets (post-install after post-patch).
Update to new LIB_DEPENDS format.
Disable chown, and leave that to the package.
Note that this apparently exposes issues with
poudriere testport/make check-orphans due to absolute /var paths.
Diffstat (limited to 'news')
-rw-r--r-- | news/newsstar/Makefile | 27 | ||||
-rw-r--r-- | news/newsstar/pkg-plist | 10 |
2 files changed, 20 insertions, 17 deletions
diff --git a/news/newsstar/Makefile b/news/newsstar/Makefile index 822958028154..076cc750227b 100644 --- a/news/newsstar/Makefile +++ b/news/newsstar/Makefile @@ -11,7 +11,7 @@ COMMENT= Transfer news between a local NNTP server (INN, sn, s-news) LICENSE= GPLv3 -LIB_DEPENDS= gdbm:${PORTSDIR}/databases/gdbm +LIB_DEPENDS= libgdbm.so:${PORTSDIR}/databases/gdbm BUILD_DEPENDS= xmlto:${PORTSDIR}/textproc/xmlto \ ${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml @@ -22,6 +22,7 @@ OPTIONS_DEFINE= SSL OPTIONS_DEFAULT= SSL CONFIGURE_ARGS+=--prefix=${PREFIX} \ + --disable-chown \ --with-conf-dir=${PREFIX}/etc/newsstar \ --with-rc-dir=/var/spool/newsstar/lib \ --with-incoming-dir=/var/spool/newsstar/incoming @@ -29,7 +30,6 @@ CONFIGURE_ARGS+=--prefix=${PREFIX} \ CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${ICONV_LIB}" CPPFLAGS+= -I${LOCALBASE}/include -NO_STAGE= yes .include <bsd.port.options.mk> .if ! ${PORT_OPTIONS:MDOCS} @@ -69,29 +69,26 @@ DOCS= AUTHORS INSTALL NEWS README TODO docs/QuickStart docs/manual.txt \ EX_CONFIGS= cf.server.sample curses.cf.sample filter.pl.sample main.cf.sample \ master.ignore.sample master.score.sample newsrc.sample -pre-install: - ${MKDIR} ${PREFIX}/lib/${PORTNAME} +post-patch: + @${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/manual.xml + @${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/news.xml + @${REINPLACE_CMD} -e 's|install-data-local: install-docs|install-data-local:|' ${WRKSRC}/Makefile.in post-install: .if ${PORT_OPTIONS:MEXAMPLES} - ${MKDIR} ${EXAMPLESDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} .for i in ${EX_CONFIGS} - ${INSTALL_DATA} ${WRKSRC}/sample_config/${i} ${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/sample_config/${i} ${STAGEDIR}${EXAMPLESDIR} .endfor .endif .if ${PORT_OPTIONS:MDOCS} - ${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for i in ${DOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR} .endfor .else - ${MAKE} -C ${WRKSRC}/src install - ${MAKE} -C ${WRKSRC}/docs install-man + ${MAKE} -C ${WRKSRC}/src install DESTDIR=${STAGEDIR} + ${MAKE} -C ${WRKSRC}/docs install-man DESTDIR=${STAGEDIR} .endif -post-patch: - @${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/manual.xml - @${REINPLACE_CMD} -e 's|/usr/share/sgml/docbook/dtd/xml|${LOCALBASE}/share/xml/docbook|' ${WRKSRC}/docs/news.xml - @${REINPLACE_CMD} -e 's|install-data-local: install-docs|install-data-local:|' ${WRKSRC}/Makefile.in - .include <bsd.port.post.mk> diff --git a/news/newsstar/pkg-plist b/news/newsstar/pkg-plist index d37e806d0307..e45c313d66bf 100644 --- a/news/newsstar/pkg-plist +++ b/news/newsstar/pkg-plist @@ -1,4 +1,5 @@ bin/newsstar +man/man1/newsstar.1.gz libexec/newsstar/newsstar.bin %%PORTDOCS%%%%DOCSDIR%%/AUTHORS %%PORTDOCS%%%%DOCSDIR%%/INSTALL @@ -29,6 +30,11 @@ libexec/newsstar/newsstar.bin %%PORTEXAMPLES%%%%EXAMPLESDIR%%/newsrc.sample %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% -@dirrm lib/newsstar -@dirrm etc/newsstar @dirrm libexec/newsstar +@dirrmtry lib/newsstar +@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 +@dirrmtry %%ETCDIR%% +@cwd / +@dirrmtry /var/spool/newsstar/lib +@dirrmtry /var/spool/newsstar/incoming +@dirrmtry /var/spool/newsstar |