diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2006-11-12 11:49:16 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2006-11-12 11:49:16 +0000 |
commit | e04985f269e565997fe1c999b60f9704058b6d31 (patch) | |
tree | 048333dded86fdf7cbd864e057fb21d12c28053e /news/tin | |
parent | ecdf45aa877396cbac6ad1d8872ee1af45e6f8da (diff) | |
download | ports-e04985f269e565997fe1c999b60f9704058b6d31.tar.gz ports-e04985f269e565997fe1c999b60f9704058b6d31.zip |
Notes
Diffstat (limited to 'news/tin')
-rw-r--r-- | news/tin/Makefile | 18 | ||||
-rw-r--r-- | news/tin/pkg-plist | 3 |
2 files changed, 9 insertions, 12 deletions
diff --git a/news/tin/Makefile b/news/tin/Makefile index 2c5ec7ab12cb..c193ae74f299 100644 --- a/news/tin/Makefile +++ b/news/tin/Makefile @@ -7,10 +7,10 @@ PORTNAME= tin PORTVERSION= 1.8.2 +PORTREVISION= 1 CATEGORIES+= news ipv6 -MASTER_SITES= http://mirrors.rcn.net/pub/news/tin/stable/ \ +MASTER_SITES= ftp://ftp.tin.org/pub/news/clients/tin/stable/ \ ftp://ftp.stikman.com/pub/tin/stable/ \ - ftp://ftp.tin.org/pub/news/clients/tin/stable/ \ ftp://ftp.sunet.se/pub/news/readers/tin/stable/ MAINTAINER?= ache@FreeBSD.org @@ -18,6 +18,7 @@ COMMENT= Easy-to-use threaded newsreader with NOV/NNTP support LIB_DEPENDS= uu.3:${PORTSDIR}/converters/uulib \ pcre.0:${PORTSDIR}/devel/pcre +RUN_DEPENDS= ${LOCALBASE}/etc/mime.types:${PORTSDIR}/misc/mime-support USE_BZIP2= yes USE_GETTEXT= yes @@ -91,11 +92,14 @@ CONFIGURE_ARGS+= --disable-ipv6 .endif post-patch: - @${MV} ${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.1.dist - @${SED} -e 's:/var/spool/news:/var/news:' \ + ${REINPLACE_CMD} -e 's:/var/spool/news:/var/news:' \ -e 's:/etc/nntpserver:${PREFIX}/etc/nntpserver:' \ -e 's:/usr/lib/news:${PREFIX}/news/lib:' \ - <${WRKSRC}/doc/tin.1.dist >${WRKSRC}/doc/tin.1 + -e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:' \ + ${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.5 + ${REINPLACE_CMD} \ + -e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:' \ + ${WRKSRC}/src/mimetypes.c .if defined(WITH_TIN_CANLOCK) MAKE_ARGS+= CANLIB='-L../libcanlock -lcanlock' \ @@ -115,9 +119,5 @@ post-install: if [ ! -f ${PREFIX}/etc/tin.defaults ] ; then \ ${CP} ${PREFIX}/etc/tin.defaults.dist ${PREFIX}/etc/tin.defaults; \ fi - cd ${WRKSRC}/doc; ${INSTALL_DATA} mime.types ${PREFIX}/etc/tin.mime.types.dist - if [ ! -f ${PREFIX}/etc/mime.types ] ; then \ - ${CP} ${PREFIX}/etc/tin.mime.types.dist ${PREFIX}/etc/mime.types; \ - fi .include <bsd.port.post.mk> diff --git a/news/tin/pkg-plist b/news/tin/pkg-plist index cd4e43c10981..bc4555acb010 100644 --- a/news/tin/pkg-plist +++ b/news/tin/pkg-plist @@ -7,11 +7,8 @@ bin/tinews.pl bin/url_handler.sh bin/w2r.pl @unexec if cmp -s %D/etc/tin.defaults %D/etc/tin.defaults.dist; then rm -f %D/etc/tin.defaults; fi -@unexec if cmp -s %D/etc/mime.types %D/etc/tin.mime.types.dist; then rm -f %D/etc/mime.types; fi etc/tin.defaults.dist @exec [ -f %B/tin.defaults ] || cp %B/%f %B/tin.defaults -etc/tin.mime.types.dist -@exec [ -f %B/mime.types ] || cp %B/%f %B/mime.types share/locale/de/LC_MESSAGES/tin.mo share/locale/en_GB/LC_MESSAGES/tin.mo share/locale/et/LC_MESSAGES/tin.mo |