1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Remove stale mirror

Actually use ${PREFIX}/etc/mime.types
Use misc/mime-support package
Fix manpages

PR:             105421
Submitted by:   rafan (partially)
This commit is contained in:
Andrey A. Chernov 2006-11-12 11:49:16 +00:00
parent ecdf45aa87
commit e04985f269
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=177090
2 changed files with 9 additions and 12 deletions

View File

@ -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>

View File

@ -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