View | Details | Raw Unified | Return to bug 280279 | Differences between
and this patch

Collapse All | Expand All

(-)b/news/tin/Makefile (-70 / +68 lines)
Lines 1-21 Link Here
1
PORTNAME=	tin
1
PORTNAME=	tin
2
PORTVERSION=	2.6.3
2
DISTVERSION=	2.6.3
3
PORTREVISION=	1
3
PORTREVISION=	1
4
CATEGORIES+=	news
4
CATEGORIES=	news
5
MASTER_SITES=	ftp://ftp.tin.org/pub/news/clients/tin/v${PORTVERSION:R}/ \
5
MASTER_SITES=	https://ftp.icm.edu.pl/pub/unix/news/tin/v${DISTVERSION:R}/ \
6
		ftp://ftp.sunet.se/pub/news/readers/tin/v${PORTVERSION:R}/ \
6
		ftp://ftp.tin.org/pub/news/clients/tin/v${DISTVERSION:R}/
7
		ftp://sunsite.icm.edu.pl/pub/unix/news/tin/v${PORTVERSION:R}/ \
7
8
		ftp://ftp.ka.nu/pub/news/clients/tin/v${PORTVERSION:R}/ \
8
MAINTAINER=	kbowling@FreeBSD.org
9
		ftp://ftp.tau.ac.il/pub/unix/news/tin/v${PORTVERSION:R}/ \
10
		ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/v${PORTVERSION:R}/ \
11
		ftp://ftp.funet.fi/pub/unix/news/tin-unoff/ \
12
		ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/ \
13
		ftp://ftp.karlsruhe.org/pub/news/clients/tin/v${PORTVERSION:R}/ \
14
		ftp://ftp.akk.uni-karlsruhe.de/pub/news/clients/tin/v${PORTVERSION:R}/ \
15
		ftp://ftp.cs.tu-berlin.de/pub/net/news/tin/v${PORTVERSION:R}/ \
16
		ftp://ftp.informatik.uni-hamburg.de/pub/soft/news/tin/v${PORTVERSION:R}/
17
18
MAINTAINER?=	kbowling@FreeBSD.org
19
COMMENT=	Easy-to-use threaded newsreader with NOV/NNTP support
9
COMMENT=	Easy-to-use threaded newsreader with NOV/NNTP support
20
WWW=		http://www.tin.org/
10
WWW=		http://www.tin.org/
21
11
Lines 26-108 LIB_DEPENDS= libicuuc.so:devel/icu \ Link Here
26
		libuu.so:converters/uulib
16
		libuu.so:converters/uulib
27
RUN_DEPENDS=	${LOCALBASE}/etc/mime.types:misc/mime-support
17
RUN_DEPENDS=	${LOCALBASE}/etc/mime.types:misc/mime-support
28
18
29
USES=		gmake iconv ncurses pkgconfig shebangfix tar:bzip2
19
USES=		gmake iconv localbase:ldflags ncurses pkgconfig shebangfix \
20
		tar:xz
21
SHEBANG_FILES=	tools/*.pl
22
30
GNU_CONFIGURE=	yes
23
GNU_CONFIGURE=	yes
31
GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
24
32
SHEBANG_FILES=	tools/opt-case.pl tools/tinews.pl tools/url_handler.pl \
33
		tools/w2r.pl
34
TIN_EDITOR?=	/usr/bin/ee
25
TIN_EDITOR?=	/usr/bin/ee
35
TIN_SCREEN?=	ncursesw
26
TIN_SCREEN?=	ncursesw
36
27
37
OPTIONS_DEFINE=			CANLOCK GNUPG ISPELL METAMAIL NLS NNTP_ONLY \
28
ALL_TARGET=	build
38
				NNTPS SLRNFACE
29
39
OPTIONS_DEFAULT=		GNUPG ISPELL METAMAIL NNTPS
30
CFLAGS+=	-DNNTP_SERVER_FILE=\\\"${PREFIX}/etc/nntpserver\\\"
40
OPTIONS_SUB=			yes
31
MAKE_ARGS+=	MAKE=${MAKE_CMD}
41
NNTP_ONLY_DESC=			Only read news via NNTP (no spool dir support)
32
42
NNTP_ONLY_CONFIGURE_ENABLE=	nntp-only
33
CONFIGURE_ARGS=		--with-editor=${TIN_EDITOR} \
43
NNTPS_DESC=			Enable NNTPS
34
			--with-libdir=${PREFIX}/news/lib \
44
NNTPS_USES=			ssl
35
			--with-spooldir=/var/news \
45
NNTPS_CONFIGURE_ON=		--with-nntps
36
			--with-screen=${TIN_SCREEN} \
37
			--with-pcre2-config=${PREFIX}/bin/pcre2-config \
38
			--with-nntp-default-server=news \
39
			--enable-break-long-lines \
40
			--with-mime-default-charset=US-ASCII \
41
			--with-defaults-dir=${PREFIX}/etc \
42
			--enable-ipv6 \
43
			${ICONV_CONFIGURE_ARG}
44
45
OPTIONS_DEFINE=		CANLOCK GNUPG ISPELL METAMAIL NLS NNTP_ONLY \
46
			NNTPS SLRNFACE
47
OPTIONS_DEFAULT=	GNUPG ISPELL METAMAIL NNTPS
48
OPTIONS_SUB=		yes
49
50
CANLOCK_DESC=		Enable Cancel-Lock key support via libcanlock
51
METAMAIL_DESC=		Use metamail to handle MIME attachments
52
NNTP_ONLY_DESC=		Only read news via NNTP (no spool dir support)
53
NNTPS_DESC=		Enable NNTPS
54
SLRNFACE_DESC=		Use slrnface to displace sender images
55
56
CANLOCK_CONFIGURE_ENABLE=	cancel-locks
57
58
ISPELL_RUN_DEPENDS=		ispell:textproc/aspell-ispell
59
ISPELL_CONFIGURE_ON=		--with-ispell=${LOCALBASE}/bin/ispell
60
46
GNUPG_RUN_DEPENDS=		gpg:security/gnupg
61
GNUPG_RUN_DEPENDS=		gpg:security/gnupg
47
GNUPG_CONFIGURE_ON=		--with-gpg=${LOCALBASE}/bin/gpg \
62
GNUPG_CONFIGURE_ON=		--with-gpg=${LOCALBASE}/bin/gpg \
48
				--without-pgp \
63
				--without-pgp \
49
				--without-pgpk
64
				--without-pgpk
50
GNUPG_CONFIGURE_OFF=		--disable-pgp-gpg
65
GNUPG_CONFIGURE_OFF=		--disable-pgp-gpg
51
ISPELL_RUN_DEPENDS=		ispell:textproc/aspell-ispell
66
52
ISPELL_CONFIGURE_ON=		--with-ispell=${LOCALBASE}/bin/ispell
53
METAMAIL_DESC?=			Use metamail to handle MIME attachments
54
METAMAIL_RUN_DEPENDS=		metamail:mail/metamail
67
METAMAIL_RUN_DEPENDS=		metamail:mail/metamail
55
METAMAIL_CONFIGURE_ON=		--with-metamail=${LOCALBASE}/bin/metamail
68
METAMAIL_CONFIGURE_ON=		--with-metamail=${LOCALBASE}/bin/metamail
56
CANLOCK_DESC=			Enable Cancel-Lock key support via libcanlock
69
57
CANLOCK_CONFIGURE_ENABLE=	cancel-locks
58
NLS_CONFIGURE_ENABLE=		nls
59
NLS_USES=			gettext
70
NLS_USES=			gettext
60
SLRNFACE_DESC?=			Use slrnface to displace sender images
71
NLS_CONFIGURE_ENABLE=		nls
61
SLRNFACE_CONFIGURE_WITH=	slrnface=slrnface
72
73
NNTP_ONLY_CONFIGURE_ENABLE=	nntp-only
74
75
NNTPS_USES=			ssl
76
NNTPS_CONFIGURE_ON=		--with-nntps
77
62
SLRNFACE_BUILD_DEPENDS=		slrnface:news/slrnface
78
SLRNFACE_BUILD_DEPENDS=		slrnface:news/slrnface
63
SLRNFACE_RUN_DEPENDS=		slrnface:news/slrnface
79
SLRNFACE_RUN_DEPENDS=		slrnface:news/slrnface
64
80
SLRNFACE_CONFIGURE_WITH=	slrnface=slrnface
65
# --with-mime-default-charset=US-ASCII needed to build tin in the non-ascii
66
# national environment.
67
CONFIGURE_ARGS+=	${ICONV_CONFIGURE_ARG} \
68
			--enable-break-long-lines \
69
			--enable-ipv6 \
70
			--with-defaults-dir=${PREFIX}/etc \
71
			--with-editor=${TIN_EDITOR} \
72
			--with-libdir=${PREFIX}/news/lib \
73
			--with-mime-default-charset=US-ASCII \
74
			--with-nntp-default-server=news \
75
			--with-pcre2-config=${PREFIX}/bin/pcre2-config \
76
			--with-screen=${TIN_SCREEN} \
77
			--with-spooldir=/var/news
78
MAKE_ARGS+=		MAKE=${MAKE_CMD}
79
CFLAGS+=		-DNNTP_SERVER_FILE=\\\"${PREFIX}/etc/nntpserver\\\"
80
CPPFLAGS+=		-I${LOCALBASE}/include
81
LDFLAGS+=		-L${LOCALBASE}/lib
82
ALL_TARGET=		build
83
81
84
post-patch:
82
post-patch:
85
	${REINPLACE_CMD} -Ee 's:5/(mmdf|mbox):5/tin_\1:g' \
83
	${REINPLACE_CMD} -Ee 's:5/(mmdf|mbox):5/tin_\1:g' \
86
		${WRKSRC}/src/Makefile.in
84
	    ${WRKSRC}/src/Makefile.in
87
	${REINPLACE_CMD} -e 's:/var/spool/news:/var/news:g' \
85
	${REINPLACE_CMD} -e 's:/var/spool/news:/var/news:g' \
88
		-e 's:/etc/nntpserver:${PREFIX}/etc/nntpserver:g' \
86
	    -e 's:/etc/nntpserver:${PREFIX}/etc/nntpserver:g' \
89
		-e 's:/usr/lib/news:${PREFIX}/news/lib:g' \
87
	    -e 's:/usr/lib/news:${PREFIX}/news/lib:g' \
90
		-e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:g' \
88
	    -e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:g' \
91
		-e 's:url_handler\.pl:tinurl_handler.pl:g' \
89
	    -e 's:url_handler\.pl:tinurl_handler.pl:g' \
92
		${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.5
90
	    ${WRKSRC}/doc/tin.1 ${WRKSRC}/doc/tin.5
93
	${REINPLACE_CMD} \
91
	${REINPLACE_CMD} \
94
		-e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:g' \
92
	    -e 's:/etc/mime\.types:${PREFIX}/etc/mime.types:g' \
95
		${WRKSRC}/src/mimetypes.c
93
	    ${WRKSRC}/src/mimetypes.c
96
	${REINPLACE_CMD} \
94
	${REINPLACE_CMD} \
97
		-e 's:url_handler\.pl:tinurl_handler.pl:g' \
95
	    -e 's:url_handler\.pl:tinurl_handler.pl:g' \
98
		${WRKSRC}/src/Makefile.in ${WRKSRC}/include/tin.h
96
	    ${WRKSRC}/src/Makefile.in ${WRKSRC}/include/tin.h
99
	${MV}   ${WRKSRC}/tools/url_handler.pl \
97
	${MV} ${WRKSRC}/tools/url_handler.pl \
100
		${WRKSRC}/tools/tinurl_handler.pl
98
	    ${WRKSRC}/tools/tinurl_handler.pl
101
99
102
post-install:
100
post-install:
103
	${INSTALL_DATA} ${WRKSRC}/doc/tin.defaults \
101
	${INSTALL_DATA} ${WRKSRC}/doc/tin.defaults \
104
		${STAGEDIR}${PREFIX}/etc/tin.defaults.sample
102
	    ${STAGEDIR}${PREFIX}/etc/tin.defaults.sample
105
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tin
103
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/tin
106
	${LN} -sf tin ${STAGEDIR}${PREFIX}/bin/rtin
104
	${RLN} tin ${STAGEDIR}${PREFIX}/bin/rtin
107
105
108
.include <bsd.port.mk>
106
.include <bsd.port.mk>
(-)b/news/tin/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1705619907
1
TIMESTAMP = 1720961875
2
SHA256 (tin-2.6.3.tar.bz2) = 2dc3fcd9779f6deae455d830ed965da492f4c5f3f4176358c59625a46934cca9
2
SHA256 (tin-2.6.3.tar.xz) = bf7ae8cfdc6ab6bc5aced4f08cf13687d8d6f9fa4be1690dfda5d123188d2217
3
SIZE (tin-2.6.3.tar.bz2) = 2359812
3
SIZE (tin-2.6.3.tar.xz) = 1639192

Return to bug 280279