pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

tin: Updated to current stable version. Added options: canlock, nls



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Mon Jul 30 15:01:48 2018 +0200
Changeset:	88f235d03369969e4dd12794673d20ea2de52d1e

Added Files:
	tin/DESCR
	tin/Makefile
	tin/PLIST
	tin/README
	tin/TODO
	tin/distinfo
	tin/options.mk
	tin/patches/patch-Makefile
	tin/patches/patch-configure
	tin/patches/patch-include_tin.h
	tin/patches/patch-src_Makefile.in

Log Message:
tin: Updated to current stable version.
Added options: canlock, nls

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=88f235d03369969e4dd12794673d20ea2de52d1e

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 tin/DESCR                         |  1 +
 tin/Makefile                      | 64 +++++++++++++++++++++++++++++++++++++++
 tin/PLIST                         | 28 +++++++++++++++++
 tin/README                        | 39 ++++++++++++++++++++++++
 tin/TODO                          |  1 +
 tin/distinfo                      | 10 ++++++
 tin/options.mk                    | 57 ++++++++++++++++++++++++++++++++++
 tin/patches/patch-Makefile        | 15 +++++++++
 tin/patches/patch-configure       | 16 ++++++++++
 tin/patches/patch-include_tin.h   | 15 +++++++++
 tin/patches/patch-src_Makefile.in | 23 ++++++++++++++
 11 files changed, 269 insertions(+)

diffs:
diff --git a/tin/DESCR b/tin/DESCR
new file mode 100644
index 0000000000..a99b0fa123
--- /dev/null
+++ b/tin/DESCR
@@ -0,0 +1 @@
+TIN:  Easy to use threaded newsreader with NOV/NNTP support.
diff --git a/tin/Makefile b/tin/Makefile
new file mode 100644
index 0000000000..8fea406fdd
--- /dev/null
+++ b/tin/Makefile
@@ -0,0 +1,64 @@
+# $NetBSD$
+
+DISTNAME=	tin-2.4.2
+CATEGORIES=	news
+MASTER_SITES=	ftp://ftp.tin.org/pub/news/clients/tin/stable/
+MASTER_SITES+=	ftp://ftp.funet.fi/pub/unix/news/tin-unoff/
+MASTER_SITES+=	ftp://ftp.lip6.fr/pub/unix/news/readers/tin-unoff/
+MASTER_SITES+=	ftp://ftp.cuhk.edu.hk/pub/packages/news/tin/stable/
+MASTER_SITES+=	ftp://sunsite.icm.edu.pl/pub/unix/news/tin/stable/
+EXTRACT_SUFX=	.tar.xz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	http://www.tin.org/
+COMMENT=	USENET newsreader (termcap based)
+# See src/nntplib.c, vms/vms.c
+LICENSE=	tin-license
+
+RESTRICTED=		Profit from use, sale, trade, or reproduction disallowed
+NO_BIN_ON_CDROM=	${RESTRICTED}
+NO_SRC_ON_CDROM=	${RESTRICTED}
+
+GNU_CONFIGURE=	yes
+USE_PKGLOCALEDIR=yes
+
+INSTALLATION_DIRS=	share/doc/tin
+
+# for tinews.pl
+USE_TOOLS+=	msgfmt perl:run yacc
+REPLACE_PERL=	tools/*.pl
+BUILD_TARGET=	build
+
+.include "options.mk"
+
+CONFIGURE_ARGS+=	--with-nntp-default-server=news
+CONFIGURE_ARGS+=	--with-mime-default-charset=ISO-8859-1
+CONFIGURE_ARGS+=	--enable-break-long-lines
+CONFIGURE_ARGS+=	--with-gpg=${PREFIX}/bin/gpg
+CONFIGURE_ARGS+=	--with-ispell=${PREFIX}/bin/ispell
+CONFIGURE_ARGS+=	--with-metamail=${PREFIX}/bin/metamail
+CONFIGURE_ARGS+=	--with-pcre=${BUILDLINK_PREFIX.pcre}
+CONFIGURE_ARGS+=	--disable-mime-strict-charset
+CONFIGURE_ARGS+=	--with-defaults-dir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+=	--enable-mh-mail-handling
+CONFIGURE_ARGS+=	--with-coffee
+
+SUBST_CLASSES+=		tin
+SUBST_STAGE.tin=	pre-configure
+SUBST_MESSAGE.tin=	Adjusting path to the configuration directory.
+SUBST_FILES.tin=	doc/tin.1
+SUBST_SED.tin=		-e 's:/etc/nntpserver:${PKG_SYSCONFDIR}/nntp/server:'
+
+post-configure:
+	${ECHO} '#define NNTP_SERVER_FILE "${PKG_SYSCONFDIR}/nntp/server"' >>${WRKSRC}/include/autoconf.h
+	${ECHO} '#define SMTP_SERVER_FILE "${PKG_SYSCONFDIR}/smtpserver"' >>${WRKSRC}/include/autoconf.h
+
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/doc/WHATSNEW ${DESTDIR}${PREFIX}/share/doc/tin
+	${MV} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/mmdf.5 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man5/tin-mmdf.5
+
+.include "../../converters/libiconv/buildlink3.mk"
+.include "../../converters/uulib/buildlink3.mk"
+.include "../../devel/libidn/buildlink3.mk"
+.include "../../devel/pcre/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/tin/PLIST b/tin/PLIST
new file mode 100644
index 0000000000..1010faf7af
--- /dev/null
+++ b/tin/PLIST
@@ -0,0 +1,28 @@
+@comment $NetBSD$
+bin/metamutt
+bin/opt-case.pl
+bin/rtin
+bin/tin
+bin/tinews.pl
+bin/url_handler.pl
+bin/w2r.pl
+man/man1/opt-case.pl.1
+man/man1/rtin.1
+man/man1/tin.1
+man/man1/tinews.pl.1
+man/man1/url_handler.pl.1
+man/man1/w2r.pl.1
+man/man5/rtin.5
+man/man5/tin-mmdf.5
+man/man5/tin.5
+share/doc/tin/WHATSNEW
+${PLIST.nls}share/locale/da/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/de/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/en_GB/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/et/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/fr/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/ru/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/sv/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/tr/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/zh_CN/LC_MESSAGES/tin.mo
+${PLIST.nls}share/locale/zh_TW/LC_MESSAGES/tin.mo
diff --git a/tin/README b/tin/README
new file mode 100644
index 0000000000..14000b3aea
--- /dev/null
+++ b/tin/README
@@ -0,0 +1,39 @@
+New features and changes since tin-2.2.0
+
+New features
+------------
+- simplified Chinese translation
+- handle RFC 2231 parameter value continuation
+- skip over RFC 2231 language parameters
+- RFC 2231 decoding of non us-ascii MIME-parameter values
+- options to color external quotes (extquote_handling, extquote_regex,
+  col_extquote)
+- LookupMessage ('L') in select level if reading via NNTP
+
+
+Changes
+-------
+The gTLD list is no longer actively maintained (too many new gTLD recently),
+disable_gnksa_domain_check=OFF might result in false positives.
+
+--enable-heapsort is now default during configure (sort_function in tinrc
+still needs to be set accordingly if you like to use heapsort instead of
+qsort)
+
+--enable-ipv6 is now default during configure
+
+--enable-break-long-lines is now default during configure
+
+sigfile=!/path/to/command no longer passes the name of the current
+newsgroup to command. One can specify %G which will be replaced by
+the name of the current newsgroup.
+To match the old behaviour: 'sigfile=!/path/to/command %G'.
+
+--enable-cancel-locks requires libcanlock-3 (which is included, but
+some distros (e.g. debian) are linking against a shared lib which may
+be too old).
+
+Retired Features
+----------------
+. groupname_max_length, can now be set via user defined screen layout at
+  select level
diff --git a/tin/TODO b/tin/TODO
new file mode 100644
index 0000000000..f7138acaa7
--- /dev/null
+++ b/tin/TODO
@@ -0,0 +1 @@
+Needs testing.
diff --git a/tin/distinfo b/tin/distinfo
new file mode 100644
index 0000000000..b0e97868aa
--- /dev/null
+++ b/tin/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+SHA1 (tin-2.4.2.tar.xz) = 675004c453548e926a261a071e0715e23a05c609
+RMD160 (tin-2.4.2.tar.xz) = e691275597cb1886ae9e66343493cf96acbd2bfe
+SHA512 (tin-2.4.2.tar.xz) = 70a9957d5bf5af1bb182a3f4e62795cd5862b7282b7fc0c231c3bd02d83950cdbdd502d8a2cc5eae20b29af584e4f794f03378742b47ed93fc5c61ac5bbb01b6
+Size (tin-2.4.2.tar.xz) = 1491388 bytes
+SHA1 (patch-Makefile) = 640f9adf99d9867259876c8ca0584f3fcc8ec971
+SHA1 (patch-configure) = dd738e58ffe3b39396928ebb881b7b269bf21315
+SHA1 (patch-include_tin.h) = 557a75eeff1114018dca247e15eceddf70af8b91
+SHA1 (patch-src_Makefile.in) = 41f97bb05e12fe4b897d6e515be745f611c44f20
diff --git a/tin/options.mk b/tin/options.mk
new file mode 100644
index 0000000000..df0c76606e
--- /dev/null
+++ b/tin/options.mk
@@ -0,0 +1,57 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR=		PKG_OPTIONS.tin
+PKG_OPTIONS_REQUIRED_GROUPS=	display
+PKG_OPTIONS_GROUP.display=	curses wide-curses termcap
+PKG_SUPPORTED_OPTIONS=		canlock icu inet6 nls tin-use-inn-spool
+PKG_SUGGESTED_OPTIONS=		canlock inet6 nls termcap # see PR #51819
+# untested
+#PKG_SUPPORTED_OPTIONS+=	socks
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcanlock)
+.include "../../wip/libcanlock/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-cancel-locks
+.endif
+
+.if !empty(PKG_OPTIONS:Mcurses) || !empty(PKG_OPTIONS:Mwide-curses)
+.include "../../mk/curses.buildlink3.mk"
+CONFIGURE_ARGS+=	--with-screen=${CURSES_TYPE}
+CONFIGURE_ARGS+=	--with-curses-dir=${BUILDLINK_PREFIX.curses}
+.else
+.include "../../mk/termcap.buildlink3.mk"
+.endif
+
+.if !empty(PKG_OPTIONS:Micu)
+.include "../../textproc/icu/buildlink3.mk"
+.endif
+
+.if empty(PKG_OPTIONS:Minet6)
+CONFIGURE_ARGS+=	--disable-ipv6
+.endif
+
+PLIST_VARS+=	nls
+.if !empty(PKG_OPTIONS:Mnls)
+PLIST.nls=	yes
+.include "../../devel/gettext-lib/buildlink3.mk"
+CONFIGURE_ARGS+=	--enable-nls
+.else
+CONFIGURE_ARGS+=	--disable-nls
+.endif
+
+.if !empty(PKG_OPTIONS:Mtin-use-inn-spool)
+BUILD_DEFS+=		INN_DATA_DIR VARBASE
+INN_DATA_DIR?=		${VARBASE}/news
+CONFIGURE_ARGS+=	--with-inews-dir=${PREFIX}/inn/bin \
+			--with-libdir=${INN_DATA_DIR}/db \
+			--with-spooldir=${INN_DATA_DIR}/spool/articles \
+			--with-nov-dir=${INN_DATA_DIR}/spool/overview
+.else
+CONFIGURE_ARGS+=	--enable-nntp-only
+.endif
+
+.if !empty(PKG_OPTIONS:Msocks)
+.include "../../net/dante/buildlink3.mk"
+CONFIGURE_ARGS+=	--with-socks=${BUILDLINK_PREFIX.dante}
+.endif
diff --git a/tin/patches/patch-Makefile b/tin/patches/patch-Makefile
new file mode 100644
index 0000000000..bebf09d988
--- /dev/null
+++ b/tin/patches/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Do not ignore error for missing src/Makefile.
+
+--- Makefile.orig	2007-02-01 13:11:14.000000000 +0000
++++ Makefile
+@@ -407,7 +407,7 @@ all:
+ 	@$(ECHO) " "
+ 
+ build:
+-	@-if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) ; else $(ECHO) "You need to run configure first - didn't you read README?" ; fi
++	@if $(TEST) -r $(SRCDIR)/Makefile ; then $(CD) $(SRCDIR) && $(MAKE) ; else $(ECHO) "You need to run configure first - didn't you read README?" ; fi
+ 
+ install:
+ 	@$(CD) $(SRCDIR) && $(MAKE) install
diff --git a/tin/patches/patch-configure b/tin/patches/patch-configure
new file mode 100644
index 0000000000..7a088ef166
--- /dev/null
+++ b/tin/patches/patch-configure
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Skip missing include directories.
+
+--- configure.orig	2017-12-24 11:52:06.000000000 +0000
++++ configure
+@@ -9202,6 +9202,9 @@ echo "$ac_t""$cf_cv_ncurses_h2" 1>&6
+ if test -n "$cf_1st_incdir" ; then
+   for cf_add_incdir in $cf_1st_incdir
+   do
++    if ! [ -d $cf_add_incdir ]; then
++      continue;
++    fi
+ 	while test $cf_add_incdir != /usr/include
+ 	do
+ 	  if test -d $cf_add_incdir
diff --git a/tin/patches/patch-include_tin.h b/tin/patches/patch-include_tin.h
new file mode 100644
index 0000000000..5401ac01a1
--- /dev/null
+++ b/tin/patches/patch-include_tin.h
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Use system libcanlock.
+
+--- include/tin.h.orig	2017-12-08 07:52:23.000000000 +0000
++++ include/tin.h
+@@ -2366,7 +2366,7 @@ extern struct tm *localtime(time_t *);
+ 
+ /* libcanlock */
+ #ifdef USE_CANLOCK
+-#	include "../libcanlock/include/canlock.h"
++#	include <libcanlock-3/canlock.h>
+ #endif /* USE_CANLOCK */
+ 
+ /* gsasl */
diff --git a/tin/patches/patch-src_Makefile.in b/tin/patches/patch-src_Makefile.in
new file mode 100644
index 0000000000..50a88c052c
--- /dev/null
+++ b/tin/patches/patch-src_Makefile.in
@@ -0,0 +1,23 @@
+$NetBSD$
+
+Do not install mbox manpage.
+
+--- src/Makefile.in.orig	2017-12-08 07:55:34.000000000 +0000
++++ src/Makefile.in
+@@ -209,7 +209,7 @@ EXTRAOBJS = @EXTRAOBJS@
+ EXTRA_INTLLIBS = @INTLDIR_MAKE@ @INTLLIBS@
+ EXTRA_PCREHDRS = @PCREDIR_MAKE@ ../pcre/pcre.h
+ EXTRA_PCRELIBS = @PCREDIR_MAKE@ ../pcre/$(PRELIB)pcre.a
+-EXTRA_CANLIBS = @CANDIR_MAKE@ ../libcanlock/$(PRELIB)canlock.a
++#EXTRA_CANLIBS = @CANDIR_MAKE@ ../libcanlock/$(PRELIB)canlock.a
+ EXTRALIBS = $(EXTRA_INTLLIBS) $(EXTRA_PCRELIBS) $(EXTRA_CANLIBS)
+ 
+ OFILES	= @ALLOCA@ $(EXTRAOBJS) \
+@@ -341,7 +341,6 @@ install_manpage : $(DESTDIR)$(INS_MANUAL
+ 	@-$(RM) -f $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
+ 	@$(ECHO) ".so $(INS_MANUAL_DIR)5/$(PROJECT).5" > $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
+ 	@$(CHMOD) 444 $(DESTDIR)$(INS_MANUAL_DIR)5/r$(PROJECT).5
+-	@-if test ! -f $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 ; then $(INSTALL) -m 444 $(DOCDIR)/mbox.5 $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 ; else $(ECHO) "  ... skipping $(DESTDIR)$(INS_MANUAL_DIR)5/mbox.5 - file already exists" ; fi
+ 	@-if test ! -f $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 ; then $(INSTALL) -m 444 $(DOCDIR)/mmdf.5 $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 ; else $(ECHO) "  ... skipping $(DESTDIR)$(INS_MANUAL_DIR)5/mmdf.5 - file already exists" ; fi
+ 
+ uninstall_manpage :


Home | Main Index | Thread Index | Old Index