pkgsrc-WIP-changes archive

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

bystand: Import version 0.7.2 as wip/bystand



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <michael.baeuerle%stz-e.de@localhost>
Pushed By:	micha
Date:		Mon Nov 25 13:39:23 2019 +0100
Changeset:	2068e976c366640864acfed38d4e0edbf1e0cbf5

Modified Files:
	Makefile
Added Files:
	bystand/DESCR
	bystand/Makefile
	bystand/PLIST
	bystand/distinfo
	bystand/patches/patch-bystand.c

Log Message:
bystand: Import version 0.7.2 as wip/bystand

The bystand program is a NNTP client program (a newsreader).

It is built on top of a SQLite database.
There is no MIME support yet.

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

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

diffstat:
 Makefile                        |  1 +
 bystand/DESCR                   |  4 ++++
 bystand/Makefile                | 38 ++++++++++++++++++++++++++++++++++++++
 bystand/PLIST                   |  5 +++++
 bystand/distinfo                |  7 +++++++
 bystand/patches/patch-bystand.c | 16 ++++++++++++++++
 6 files changed, 71 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 27e04fc668..0aac4376b9 100644
--- a/Makefile
+++ b/Makefile
@@ -316,6 +316,7 @@ SUBDIR+=	bugzilla
 SUBDIR+=	bup-git
 SUBDIR+=	busybox
 SUBDIR+=	bwa
+SUBDIR+=	bystand
 SUBDIR+=	byzanz
 SUBDIR+=	c-graph
 SUBDIR+=	c-news
diff --git a/bystand/DESCR b/bystand/DESCR
new file mode 100644
index 0000000000..fd8d17790b
--- /dev/null
+++ b/bystand/DESCR
@@ -0,0 +1,4 @@
+The bystand program is a NNTP client program (a newsreader).
+
+It is built on top of a SQLite database.
+There is no MIME support yet.
diff --git a/bystand/Makefile b/bystand/Makefile
new file mode 100644
index 0000000000..303a680ad8
--- /dev/null
+++ b/bystand/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD$
+
+DISTNAME=	bystand-0.7.2
+CATEGORIES=	news
+MASTER_SITES=	http://zzo38computer.org/prog/bystand/
+EXTRACT_SUFX=	.zip
+
+MAINTAINER=	micha%NetBSD.org@localhost
+HOMEPAGE=	http://zzo38computer.org/fossil/bystand.ui/
+COMMENT=	NNTP client software with command-line interface
+LICENSE=	public-domain
+
+USE_LANGUAGES+=	c99
+
+.include "../../mk/bsd.prefs.mk"
+
+INSTALLATION_DIRS=	bin share/doc/bystand/setup
+
+do-build:
+		cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
+			${MAKE} ${MAKE_FLAGS} -f Makefile.BSD
+
+do-install:
+		cd ${WRKSRC} && ${INSTALL_PROGRAM} ${WRKSRC}/bystand \
+			${DESTDIR}${PREFIX}/bin/bystand
+		cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/setup/README \
+			${DESTDIR}${PREFIX}/share/doc/bystand/setup/README
+		cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/setup/schema \
+			${DESTDIR}${PREFIX}/share/doc/bystand/setup/schema
+		cd ${WRKSRC} && ${INSTALL_DATA} ${WRKSRC}/setup/template \
+			${DESTDIR}${PREFIX}/share/doc/bystand/setup/template
+
+# Builtin version of NetBSD 7 is not sufficient
+# Minimum required API version is undocumented (use tested one)
+BUILDLINK_API_DEPENDS.sqlite3+=	sqlite3>=3.29.0
+.include "../../databases/sqlite3/buildlink3.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/bystand/PLIST b/bystand/PLIST
new file mode 100644
index 0000000000..748d7918dc
--- /dev/null
+++ b/bystand/PLIST
@@ -0,0 +1,5 @@
+@comment $NetBSD$
+bin/bystand
+share/doc/bystand/setup/README
+share/doc/bystand/setup/schema
+share/doc/bystand/setup/template
diff --git a/bystand/distinfo b/bystand/distinfo
new file mode 100644
index 0000000000..8f66b169be
--- /dev/null
+++ b/bystand/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+SHA1 (bystand-0.7.2.zip) = 66973264a670ab63341514defae328475627664c
+RMD160 (bystand-0.7.2.zip) = fbbdfe26c249ebdfa001cf286169dd7b331847ce
+SHA512 (bystand-0.7.2.zip) = a6d1515de40fb944db515be06d4557a0dd0ade2e7553f577519f54c365b4c8fe046eb2c482ebd0c912e2b2abbb6cd52ce1fc024ce27c574ebc6cccb70646b563
+Size (bystand-0.7.2.zip) = 31014 bytes
+SHA1 (patch-bystand.c) = 8ff57b127feb681761629c7f9ef7879359a4bc20
diff --git a/bystand/patches/patch-bystand.c b/bystand/patches/patch-bystand.c
new file mode 100644
index 0000000000..950b972f2d
--- /dev/null
+++ b/bystand/patches/patch-bystand.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Function new_from_template() is defined with return value of type int.
+This patch returns -1 to indicate an error.
+
+--- bystand.c.orig	2019-11-25 12:10:21.000000000 +0000
++++ bystand.c
+@@ -483,7 +483,7 @@ static int new_from_template(const char*
+     printf("%m\n");
+   }
+   sqlite3_free(filename);
+-  if(!fp) return;
++  if(!fp) return -1;
+   filename=sqlite3_mprintf("%s/article",home);
+   if(!filename) errx(1,"Allocation failed");
+   outfp=fopen(filename,"w");


Home | Main Index | Thread Index | Old Index