diff options
author | mandree <mandree@FreeBSD.org> | 2013-10-31 08:38:31 +0800 |
---|---|---|
committer | mandree <mandree@FreeBSD.org> | 2013-10-31 08:38:31 +0800 |
commit | efa28276c4d5a6de15c04be061484d3d57e0a9fc (patch) | |
tree | f17b8937273fd15e8252a6a121b785e25eff4c82 /news/newsstar | |
parent | 04a3f7db82f8e7f67aabd7880e413b9eb805c365 (diff) | |
download | freebsd-ports-gnome-efa28276c4d5a6de15c04be061484d3d57e0a9fc.tar.gz freebsd-ports-gnome-efa28276c4d5a6de15c04be061484d3d57e0a9fc.tar.zst freebsd-ports-gnome-efa28276c4d5a6de15c04be061484d3d57e0a9fc.zip |
Attempt to fix build issues.
Add SHEBANG_FILES=newsstar.in, bumping PORTREVISION.
Diffstat (limited to 'news/newsstar')
-rw-r--r-- | news/newsstar/Makefile | 11 | ||||
-rw-r--r-- | news/newsstar/pkg-plist | 13 |
2 files changed, 13 insertions, 11 deletions
diff --git a/news/newsstar/Makefile b/news/newsstar/Makefile index 076cc750227b..db2fa37eb3c1 100644 --- a/news/newsstar/Makefile +++ b/news/newsstar/Makefile @@ -3,6 +3,7 @@ PORTNAME= newsstar PORTVERSION= 1.5.6 +PORTREVISION= 1 CATEGORIES= news MASTER_SITES= SF @@ -16,7 +17,8 @@ BUILD_DEPENDS= xmlto:${PORTSDIR}/textproc/xmlto \ ${LOCALBASE}/share/xml/docbook/4.5/docbookx.dtd:${PORTSDIR}/textproc/docbook-xml GNU_CONFIGURE= yes -USES= iconv perl5 +USES= iconv perl5 shebangfix +SHEBANG_FILES= newsstar.in OPTIONS_DEFINE= SSL OPTIONS_DEFAULT= SSL @@ -59,7 +61,6 @@ CONFIGURE_ARGS+=--with-sn-spool-dir=/var/spool/news \ CONFIGURE_ARGS+=--with-inn-path=${LOCALBASE}/news/bin .endif -MAN1= newsstar.1 DOCS= AUTHORS INSTALL NEWS README TODO docs/QuickStart docs/manual.txt \ docs/index.html docs/ar01s02.html docs/ar01s03.html docs/ar01s04.html \ docs/ar01s05.html docs/ar01s06.html docs/ar01s07.html docs/ar01s08.html \ @@ -70,9 +71,9 @@ EX_CONFIGS= cf.server.sample curses.cf.sample filter.pl.sample main.cf.sample \ master.ignore.sample master.score.sample newsrc.sample 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 + ${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} diff --git a/news/newsstar/pkg-plist b/news/newsstar/pkg-plist index e45c313d66bf..0600140c42bf 100644 --- a/news/newsstar/pkg-plist +++ b/news/newsstar/pkg-plist @@ -1,3 +1,6 @@ +@exec d=/var/spool/newsstar/incoming ; test -d "$d" || install -d -onews -gnews -m0750 "$d" +@exec d=/var/spool/newsstar/lib ; test -d "$d" || install -d -onews -gnews -m0750 "$d" +@exec d="%D/%%ETCDIR%%" ; test -d "$d" || install -d -o0 -g0 -m0755 "$d" bin/newsstar man/man1/newsstar.1.gz libexec/newsstar/newsstar.bin @@ -31,10 +34,8 @@ libexec/newsstar/newsstar.bin %%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%% %%PORTDOCS%%@dirrm %%DOCSDIR%% @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 +@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 || : |