Date: Sun, 12 Nov 2006 08:16:52 +0800 (CST) From: Rong-En Fan <rafan@FreeBSD.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: ache@FreeBSD.org Subject: ports/105421: [PATCH] news/tin: Use misc/mime-support Message-ID: <200611120016.kAC0GqJY004577@svm.csie.ntu.edu.tw> Resent-Message-ID: <200611120020.kAC0KW1A083825@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 105421 >Category: ports >Synopsis: [PATCH] news/tin: Use misc/mime-support >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Nov 12 00:20:31 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 6.2-PRERELEASE amd64 >Organization: NTU CSIE >Environment: >Description: This port installs etc/mime.support if it does not exist. However, we have misc/mime-support which contains more mime types than the one in tin package. If one installs tin first, then installs a port that depends on mime-support. It results stale dependency of misc/mime-support. The patch makes tin to use misc/mime-support instead of installing its own version. Port maintainer (ache@FreeBSD.org) is cc'd. Generated with FreeBSD Port Tools 0.77 >How-To-Repeat: >Fix: --- tin-1.8.2_1.patch begins here --- Index: Makefile =================================================================== RCS file: /big/freebsd-cvsup/ncvs/ports/news/tin/Makefile,v retrieving revision 1.136 diff -u -u -r1.136 Makefile --- Makefile 27 May 2006 01:23:27 -0000 1.136 +++ Makefile 12 Nov 2006 00:14:41 -0000 @@ -7,6 +7,7 @@ PORTNAME= tin PORTVERSION= 1.8.2 +PORTREVISION= 1 CATEGORIES+= news ipv6 MASTER_SITES= http://mirrors.rcn.net/pub/news/tin/stable/ \ ftp://ftp.stikman.com/pub/tin/stable/ \ @@ -18,6 +19,7 @@ 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 @@ -115,9 +117,5 @@ 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> Index: pkg-plist =================================================================== RCS file: /big/freebsd-cvsup/ncvs/ports/news/tin/pkg-plist,v retrieving revision 1.18 diff -u -u -r1.18 pkg-plist --- pkg-plist 16 Mar 2006 11:37:30 -0000 1.18 +++ pkg-plist 12 Nov 2006 00:14:41 -0000 @@ -7,11 +7,8 @@ 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 --- tin-1.8.2_1.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611120016.kAC0GqJY004577>