pkgsrc-WIP-changes archive

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

flnews: Import development snapshot 0.16pre13



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Fri Sep 21 16:27:11 2018 +0200
Changeset:	3f371ae38a007bfdb04b98daefd9722bc3c47e23

Added Files:
	flnews-devel/DESCR
	flnews-devel/Makefile
	flnews-devel/PLIST
	flnews-devel/README
	flnews-devel/TODO
	flnews-devel/distinfo
	flnews-devel/files/CONFIG
	flnews-devel/options.mk

Log Message:
flnews: Import development snapshot 0.16pre13

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

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

diffstat:
 flnews-devel/DESCR        |  17 +++++
 flnews-devel/Makefile     |  82 +++++++++++++++++++++++
 flnews-devel/PLIST        |   5 ++
 flnews-devel/README       |  46 +++++++++++++
 flnews-devel/TODO         |   8 +++
 flnews-devel/distinfo     |   6 ++
 flnews-devel/files/CONFIG | 165 ++++++++++++++++++++++++++++++++++++++++++++++
 flnews-devel/options.mk   |  44 +++++++++++++
 8 files changed, 373 insertions(+)

diffs:
diff --git a/flnews-devel/DESCR b/flnews-devel/DESCR
new file mode 100644
index 0000000000..a1ab58b53f
--- /dev/null
+++ b/flnews-devel/DESCR
@@ -0,0 +1,17 @@
+flnews is a client with graphical user interface to read USENET newsgroups.
+It is intended for POSIX compliant operating systems running the X window
+system.
+
+The main development goals are (in order of importance):
+- No bloat
+- Support for old workstations
+- Standard compliance
+- Be conservative in what you do, be liberal in what you accept from others
+- Compatibility with other newsreaders
+- Usable X display redirection via network (or ssh tunnel)
+- Warn users about things that are not forbidden but considered "bad practice"
+
+Features that are currently not implemented (or not usable yet):
+- UUCP
+- Multiple servers
+- Offline mode (for network connection via dialup line)
diff --git a/flnews-devel/Makefile b/flnews-devel/Makefile
new file mode 100644
index 0000000000..3c7b1b95eb
--- /dev/null
+++ b/flnews-devel/Makefile
@@ -0,0 +1,82 @@
+# $NetBSD$
+
+FLNEWS_VERSION=	0.16pre13
+
+DISTNAME=	flnews-${FLNEWS_VERSION}
+CATEGORIES=	news
+MASTER_SITES=	http://micha.freeshell.org/flnews/src/
+MASTER_SITES+=	http://www.ybtra.de/flnews-mirror/src/
+MASTER_SITES+=	http://www.southcity.de/flnews/src/
+EXTRACT_SUFX=	.tar.bz2
+
+MAINTAINER=	michael.baeuerle%gmx.net@localhost
+HOMEPAGE=	http://micha.freeshell.org/flnews/
+COMMENT=	Fast and lightweight USENET newsreader with GUI
+LICENSE=	modified-bsd AND 2-clause-bsd AND unicode
+
+USE_LANGUAGES=	c c++
+
+TEST_TARGET=	test
+
+# Bug report contact address used for GUI
+FLNEWS_MAINTAINER=	${MAINTAINER}
+
+.include "options.mk"
+
+post-patch:
+	${CP} ${FILESDIR}/CONFIG ${WRKSRC}
+
+# Prepare CONFIG file
+SUBST_CLASSES+=			edit-config
+SUBST_STAGE.edit-config=	pre-configure
+SUBST_MESSAGE.edit-config=	Preparing CONFIG file ...
+SUBST_FILES.edit-config=	CONFIG
+SUBST_SED.edit-config=		-e 's,@VERSION@,${FLNEWS_VERSION},g'
+SUBST_SED.edit-config+=		-e 's,@PREFIX@,${PREFIX},g'
+SUBST_SED.edit-config+=		-e 's,@MAINT@,${FLNEWS_MAINTAINER},g'
+SUBST_SED.edit-config+=		-e 's,@IP6@,${FLNEWS_OPT_DISABLE_IP6},g'
+SUBST_SED.edit-config+=		-e 's,@NLS@,${FLNEWS_OPT_DISABLE_NLS},g'
+SUBST_SED.edit-config+=		-e 's,@XDBE@,${FLNEWS_OPT_DISABLE_XDBE},g'
+SUBST_SED.edit-config+=		-e 's,@MAN_PATH@,${PREFIX}/${PKGMANDIR},g'
+# NetBSD reports X/Open XSI extension as not available using the POSIX
+# sysconf(_SC_XOPEN_VERSION) call, but has a sufficient implementation
+# => Force using it
+.if ${OPSYS} == "NetBSD"
+SUBST_SED.edit-config+=		-e 's,@FORCE_XSI@,1,g'
+.else
+SUBST_SED.edit-config+=		-e 's,@FORCE_XSI@,0,g'
+.endif
+# NetBSD reports IPv6 as not available using the POSIX sysconf(_SC_IPV6)
+# call, but has a sufficient implementation
+# => Force using it if inet6 option of pkgsrc package is selected
+.if ${OPSYS} == "NetBSD" && ${FLNEWS_OPT_DISABLE_IP6} == 0
+SUBST_SED.edit-config+=		-e 's,@FORCE_IP6@,1,g'
+.else
+SUBST_SED.edit-config+=		-e 's,@FORCE_IP6@,0,g'
+.endif
+# Old SunPro compilers cannot create dependencies with the "-M" option
+# => Use makedepend instead for all SunPro compilers
+.if ${OPSYS} == "SunOS" && ${PKGSRC_COMPILER:Msunpro}
+BUILD_DEPENDS+=	makedepend-[0-9]*:../../devel/makedepend
+SUBST_SED.edit-config+=		-e 's,@DEP_MD@,,g'
+SUBST_SED.edit-config+=		-e 's,@DEP_COMP@,\#,g'
+.else
+SUBST_SED.edit-config+=		-e 's,@DEP_MD@,\#,g'
+SUBST_SED.edit-config+=		-e 's,@DEP_COMP@,,g'
+.endif
+
+do-configure:
+	cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${MAKE_PROGRAM} ${MAKE_FLAGS} config
+
+BUILDLINK_API_DEPENDS.zlib+=	zlib>=1.2.3
+.include "../../devel/zlib/buildlink3.mk"
+# OpenSSL 1.1 API is required for signature algorithm negotiation
+# OpenSSL 1.1 API is required for TLSv1.2 FFDHE group check
+# At least OpenSSL 1.1.1 is required for TLSv1.3
+BUILDLINK_API_DEPENDS.openssl+=	openssl>=1.0.0
+.include "../../security/openssl/buildlink3.mk"
+# FLTK must be compiled with multithreading support
+# FLTK version 1.4 is supported (should be compiled with pango support)
+.include "../../x11/fltk13/buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/flnews-devel/PLIST b/flnews-devel/PLIST
new file mode 100644
index 0000000000..d9ced656b5
--- /dev/null
+++ b/flnews-devel/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2018/08/20 12:57:34 wiz Exp $
+bin/flnews
+man/man1/flnews.1
+share/flnews/license.txt
+${PLIST.nls}lib/flnews/nls/de_DE.cat
diff --git a/flnews-devel/README b/flnews-devel/README
new file mode 100644
index 0000000000..1110bcecf1
--- /dev/null
+++ b/flnews-devel/README
@@ -0,0 +1,46 @@
+This package contain a development snapshot.
+
+Mandatory:
+- Operating system that provide the following interfaces:
+  - POSIX.1-1990
+  - POSIX.1b-1993 Realtime extention, Timers (TMR) option
+  - POSIX.1c-1996 Threads (THR) extension
+  - 4.3BSD socket API (with a 'select()' implementation that supports sockets)
+  - POSIX.2-1992 compliant shell and utilities
+  - POSIX.2a-1992 User Portability Utilities (UP) extension
+- getconf
+  Utility from X/Open Portability Guide Issue 4 (XPG4) to query system variables
+- C/C++ compiler
+  Should be a matching pair that is C90/C++98 compliant.
+- FLTK 1.3 (compiled with multithreading support enabled)
+
+Optional:
+- POSIX.2-1992 C language binding (CLB)
+  Required if the filter (scoring) subsystem should handle regular expressions
+  Required if the filter (scoring) subsystem should handle group wildmats
+- POSIX.1b-1993 realtime extention, File Synchronization (FSC) option
+  If available, 'fsync()' is executed on config, group and database files after
+  changes
+- POSIX.1-2001
+  If available, the timestamp in the "Date" headerfield is created in local time
+- Operating system with X/Open System Interface (XSI) extension
+  (with a 'poll()' implementation that supports sockets)
+  Required for National Language Support (NLS)
+  Required for automatic TLS certificate CRL maintenance (EXPERIMENTAL)
+- OpenSSL 1.x or LibreSSL 2.x
+  Required for Transport Layer Security (TLS) support
+  Required for generation of Cancel-Lock and Cancel-Key header fields
+- zlib
+  Sourcecode for zlib can be downloaded from <http://zlib.net/>
+  Required for NNTP compression extension (DEFLATE algorithm)
+- xdg-utils
+  Required for sending e-mail and clicking on hyperlinks that cannot be
+  handled internally
+- makedepend
+  Required if the compilers preprocessor can't create dependencies
+- troff2html (from the troffcvt package)
+  Required to build the HTML version of the man page
+- doxygen
+  Required to build the documentation (except the manual page)
+- LaTeX
+  Required to build the documentation (except the manual page)
diff --git a/flnews-devel/TODO b/flnews-devel/TODO
new file mode 100644
index 0000000000..8ecfbb36a0
--- /dev/null
+++ b/flnews-devel/TODO
@@ -0,0 +1,8 @@
+[X] Create reproducible build
+[X] Include mk/pthread.buildlink3.mk (similar to FLTK)
+[X] Force POSIX.1 IP6 option on NetBSD (if inet6 is selected)
+[X] Suggest option inet6
+[X] Add help message for NLS (supported locale codesets)
+[ ] Suggest option nls?
+[X] Execute "make config" part of build in the pkgsrc configure phase
+[ ] Import final flnews 0.16 release
diff --git a/flnews-devel/distinfo b/flnews-devel/distinfo
new file mode 100644
index 0000000000..231094c4f8
--- /dev/null
+++ b/flnews-devel/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (flnews-0.16pre13.tar.bz2) = ac4285c33cfb91900736f07da868c4c44aa4676e
+RMD160 (flnews-0.16pre13.tar.bz2) = 65701418f43a5a4622b08a742c1220bd8e2f5f64
+SHA512 (flnews-0.16pre13.tar.bz2) = 1408979f1e5d6bbd74bbd3744a129dcb303c3eb325b748f2eb4a8571a80233dfc976d60934337ecb857b4b703f66d651948ee125e6bd1dc08f972cebfbaa5186
+Size (flnews-0.16pre13.tar.bz2) = 1064937 bytes
diff --git a/flnews-devel/files/CONFIG b/flnews-devel/files/CONFIG
new file mode 100644
index 0000000000..1bf195f5fd
--- /dev/null
+++ b/flnews-devel/files/CONFIG
@@ -0,0 +1,165 @@
+#
+# Config file for pkgsrc
+# ======================
+#
+# This file is intended to customize the program. Any changes made to this file
+# don't create a modified version of the program in terms of the license.
+#
+# This file will be parsed by a POSIX shell. Therefore all lines starting with
+# the character '#' are comments and ignored.
+
+
+# User configuration
+# ==============================================================================
+# Installation prefix (must be an absolute path without trailing slash)
+# The environment variable 'PREFIX' will override this entry if present!
+# The environment variable 'DESTDIR' will be prepended to this entry if present!
+CFG_PREFIX="@PREFIX@"
+
+# Disable IPv6
+# Set this to 1 to disable the usage of IPv6 and POSIX.1g API even if system
+# report IPv6 option (IP6) as available
+CFG_IP6_DISABLE=@IP6@
+
+# Disable compression
+# Set this to 1 if NNTP COMPRESS extension should never be used, even if the
+# required libraries (currently libz) are installed and usable.
+# Otherwise the compression negotiation can be enabled and disabled in the GUI
+# (disabled by default)
+CFG_CMPR_DISABLE=0
+
+# Disable X11 double buffering
+# DB is slow. On fast machines this can be set to 0 to reduce flicker in the GUI
+CFG_DB_DISABLE=@XDBE@
+
+# Disable National Language Support (NLS)
+# Set this to 1 to disable NLS even if system report it as available.
+CFG_NLS_DISABLE=@NLS@
+
+# The TLS module can do some simple checks and generate warnings if it thinks
+# that underlaying libraries contain known security vulnerabilities
+# Set this to 1 if you don't want to get such warnings
+CFG_TLS_WARNING_DISABLE=1
+# ==============================================================================
+
+
+# Force usage of REQUIRED facilities that system reports as not available
+# ==============================================================================
+# Force usage of POSIX.1b realtime extension, timers (TMR) option even if system
+# reports TMR option as not available
+# Set this to 1 if your system report no sufficient TMR option, but you want to
+# try anyway
+CFG_FORCE_TMR=1
+
+# Force usage of POSIX.1c thread (THR) extension even if system reports THR
+# extension as not available
+# Set this to 1 if your system report no sufficient THR extension, but you want
+# to try anyway
+CFG_FORCE_THR=1
+
+# Force usage of POSIX.2a user portability (UP) utilities even if system reports
+# UP extension as not available
+# Set this to 1 if your system report no sufficient UP extension, but you want
+# to try anyway
+CFG_FORCE_UP=1
+# ==============================================================================
+
+
+# Force usage of OPTIONAL facilities that system reports as not available
+# ==============================================================================
+# Force usage of X/Open System Interface (XSI) even if system reports XSI
+# extension as not available or too old (at least SUSv2 is required)
+# Set this to 1 if your system report no sufficient XSI extension, but you want
+# to try anyway
+CFG_FORCE_XSI=@FORCE_XSI@
+
+# Force usage of IPv6 option (IP6) even if system reports it as not available
+# Set this to 1 if your system report no IP6 option, but you want to try anyway
+# (at least POSIX.1-2001 is required)
+CFG_FORCE_IP6=@FORCE_IP6@
+# ==============================================================================
+
+
+# Dependency creation (try the defaults if in doubt)
+# ==============================================================================
+# Commands to create dependencies
+# If the compilers preprocessor don't support '-M' use makedepend like this:
+@DEP_MD@CFG_CC_DEP_COMMAND='makedepend -f- -- $(CFLAGS) -- $$file'
+@DEP_MD@CFG_CXX_DEP_COMMAND='makedepend -f- -- $(CXXFLAGS) $(FLTK_CXXFLAGS) -- $$file'
+@DEP_COMP@CFG_CC_DEP_COMMAND='$(CC) $(CFLAGS) -M $$file'
+@DEP_COMP@CFG_CXX_DEP_COMMAND='$(CXX) $(CXXFLAGS) $(FLTK_CXXFLAGS) -M $$file'
+# ==============================================================================
+
+
+# Utilities (modify only if the versions of your system are too old or broken)
+# ==============================================================================
+# POSIX.2 compliant standard utilities
+UTIL_AWK="awk"
+UTIL_CAT="cat"
+UTIL_CHMOD="chmod"
+UTIL_DATE="date"
+UTIL_GREP="grep"
+UTIL_HEAD="head"
+UTIL_MKDIR="mkdir"
+UTIL_PWD="pwd"
+UTIL_RM="rm"
+UTIL_SED="sed"
+UTIL_SH="sh"
+UTIL_SLEEP="sleep"
+UTIL_TOUCH="touch"
+UTIL_STRIP="strip"
+UTIL_TR="tr"
+UTIL_UNAME="uname"
+# ==============================================================================
+# List of all tools in this section
+CFG_UTILS="$UTIL_AWK $UTIL_CAT $UTIL_CHMOD $UTIL_DATE $UTIL_GREP $UTIL_HEAD \
+           $UTIL_MKDIR $UTIL_PWD $UTIL_RM $UTIL_SED $UTIL_SH $UTIL_SLEEP \
+           $UTIL_TOUCH $UTIL_STRIP $UTIL_TR $UTIL_UNAME"
+
+
+# This is for the package maintainer (do not change as user)
+CFG_PREFIX=${PREFIX:-$CFG_PREFIX}
+# ==============================================================================
+# Program name (printable characters from POSIX portable character set only)
+CFG_NAME="flnews"
+
+# Version (printable characters from POSIX portable character set only)
+# Must start with major number followed by '.'
+CFG_VERSION="@VERSION@"
+
+# If a modified version should be redistributed, set this to '1' if you want to
+# keep the original program name. This will automatically insert the prominent
+# modification notice that is required by the license.
+# Alternatively you can set this to '0' and change the program name with the
+# variable "CFG_NAME" above.
+CFG_MODIFIED=0
+
+# Contact information of package maintainer
+# If a modified version should be redistributed, the following maintainer
+# contact information must be replaced. Read "src/LICENSE" file for details.
+CFG_MAINTAINER="mailto:@MAINT@";
+
+# Installation path for man page
+# (must be an absolute path without trailing slash)
+# The FHS defines "/usr[/local]/share/man". The location "/usr/local/man" is
+# explicitly marked deprecated.
+CFG_MAN_PATH="@MAN_PATH@/man1"
+
+# Installation path for license file
+# (must be an absolute path without trailing slash)
+CFG_LICENSE_PATH="$CFG_PREFIX/share/$CFG_NAME"
+
+# Installation path for National Language Support (NLS) catalogs
+# (must be an absolute path without trailing slash)
+# The FHS defines "/usr[/local]/share/nls" for NLS catalogs but the whole
+# hierarchy below "share" is dedicated to files that are portable between
+# architectures - what our catalogs are not!
+CFG_NLS_PATH="$CFG_PREFIX/lib/$CFG_NAME/nls"
+
+# If you require reproducible builds for a binary package of a distribution,
+# set this to '1'.
+CFG_REPRODUCIBLE=1
+# ==============================================================================
+
+
+# EOF
diff --git a/flnews-devel/options.mk b/flnews-devel/options.mk
new file mode 100644
index 0000000000..f58766f346
--- /dev/null
+++ b/flnews-devel/options.mk
@@ -0,0 +1,44 @@
+# $NetBSD: options.mk,v 1.1 2018/08/20 12:57:34 wiz Exp $
+
+PKG_OPTIONS_VAR=	PKG_OPTIONS.flnews
+PKG_SUPPORTED_OPTIONS=	inet6 nls xdbe xdg-utils
+PKG_SUGGESTED_OPTIONS=	inet6 xdbe xdg-utils
+
+.include "../../mk/bsd.prefs.mk"
+.include "../../mk/bsd.options.mk"
+
+# POSIX.1c-1996 Threads (THR) extension is required
+PTHREAD_OPTS+=	require
+
+# inet6: Optional support for Internet Protocol Version 6 (IPv6)
+# Requires an OS with POSIX.1-2001 API and IP6 option
+.if !empty(PKG_OPTIONS:Minet6)
+FLNEWS_OPT_DISABLE_IP6=		0
+.else
+FLNEWS_OPT_DISABLE_IP6=		1
+.endif
+
+# nls: Optional support for National Language Support (NLS)
+# Requires an OS with X/Open XSI extension API (SUSv2) and the gencat utility
+# Note: Only locales with UTF-8, ISO-8859-1 or US-ASCII codeset are supported!
+PLIST_VARS+=	nls
+.if !empty(PKG_OPTIONS:Mnls)
+PLIST.nls=	yes
+FLNEWS_OPT_DISABLE_NLS=		0
+.else
+FLNEWS_OPT_DISABLE_NLS=		1
+.endif
+
+# xdbe: Optional support for X11 Double Buffer Extension (XDBE)
+# This option should be disabled for slow machines
+.if !empty(PKG_OPTIONS:Mxdbe)
+FLNEWS_OPT_DISABLE_XDBE=	0
+.else
+FLNEWS_OPT_DISABLE_XDBE=	1
+.endif
+
+# xdg-utils: Create dependency for xdg-utils (Portland project)
+# xdg-utils are used for WWW-Browser and eMail redirection
+.if !empty(PKG_OPTIONS:Mxdg-utils)
+DEPENDS+=	xdg-utils>=1.1:../../misc/xdg-utils
+.endif


Home | Main Index | Thread Index | Old Index