pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
geomyidae: Import geomyidae-0.32.2 as wip/geomyidae
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <iamleot%gmail.com@localhost>
Pushed By: leot
Date: Sun Jul 22 15:24:01 2018 +0200
Changeset: aff8c61e3bdfd45d533386dad4c7469ed0a42a3f
Modified Files:
Makefile
Added Files:
geomyidae/COMMIT_MSG
geomyidae/DESCR
geomyidae/Makefile
geomyidae/PLIST
geomyidae/TODO
geomyidae/distinfo
geomyidae/files/geomyidae.sh
Log Message:
geomyidae: Import geomyidae-0.32.2 as wip/geomyidae
Based on net/Geomyidae.
pkgsrc changes:
- Update DISTNAME, PKGNAME, MASTER_SITES and HOMEPAGE
- Avoid NO_CONFIGURE=yes, also if a package does not provide a configure script
it is not needed and can lead to confusion due the several configure targets
that are removed
- Add several variable to BUILD_DEFS
- Honor GEOMYIDAE_USER, GEOMYIDAE_GROUP and GEOMYIDAE_ROOTDIR variables that
will respectively set the user, group and rootdir of geomyidae
- Instead of copypasting several rc scripts write a new ones ad-hoc for pkgsrc
that will run geomyidae unprivileged honoring the several GEOMYIDAE_*
variables
- Do not install a LICENSE file (we have the LICENSE variable for it!)
Changes:
Geomyidae v0.32.2 fixes release
-------------------------------
Another fixes release for geomyidae is out. Now hopefully the OpenBSD people
fixed the whole pledge support in geomyidae.
Geomyidae v0.32.1 fixes release
-------------------------------
Soon after the v0.32 release I received patches, which I do not want to miss
in mainline.
* Fix and make OpenBSD pledge support better.
* Fix a typo in the slackware init script.
Thanks for all who sent in patches! All further patches are welcome!
Geomyidae v0.32 Release
-----------------------
I am glad to announce the release of geomyidae v0.32. Thanks to all the
contributors and people giving ideas!
Here is what changed:
* Minor fixed in the manpage, CGI handling and tools.
* Add example for tt escaping in the manpage.
* Add nocgi flag, which disables CGI execution.
* Add OpenBSD pledge support.
Geomyidae v0.31.1 release
-------------------------
There has been a geomyidae v0.31.1 release which fixes a major issue of the
pending bytes logic from v0.31.
Have fun!
Geomyidae v0.31 release
-----------------------
I am proud to announce the geomyidae v0.31 release. There were
some major issues fixed, so a new release is necessary:
* There is now gph vim syntax highlighting files in the archive.
* Gopher+ compatibility mode.
* No sockets are left behind anymore.
* New log format of geomyidae is now documented in the manpage.
* There was some ugly bug with curl connecting to a Linux system, where after
close() some bytes were lost. Now some check is added to be sure all data
has been sent to the client. If you want to have bad dreams, look at the
curl sourcecode.
Thanks for everyone contributing!
Geomyidae 0.29 release
----------------------
I am happy to announce the 0.29 release of geomyidae, a simple gopher server.
What has been changed:
* the OpenBSD rc.d files have been fixed due to arg.h fixes
* index.bin support added
* Create a file with the raw gopher menu content in a directory and is
served by geomyidae.
* This is useful for scripts generating static gopher content
* This is useful for serving a backup of a gopherhole.
* show errors on fork, in case there are constraints on process resources
* care for send errors
* huge speed up on different platforms when transferring huge binary files
* Linux is using sendfile(2) and TCP_CORK
* FreeBSD and DragonflyBSD are using sendfile(2)
* TCP_NOPUSH is used on all BSDs
* TCP_NODELAY is disabled on nearly all platforms
* other platforms (like OpenBSD) have a speed increase due to an
alignment of the send buffer to blocksize of the socket
I want to thank all contributors! All patches are welcome!
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=aff8c61e3bdfd45d533386dad4c7469ed0a42a3f
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
geomyidae/COMMIT_MSG | 96 ++++++++++++++++++++++++++++++++++++++++++++
geomyidae/DESCR | 4 ++
geomyidae/Makefile | 50 +++++++++++++++++++++++
geomyidae/PLIST | 6 +++
geomyidae/TODO | 3 ++
geomyidae/distinfo | 6 +++
geomyidae/files/geomyidae.sh | 37 +++++++++++++++++
8 files changed, 203 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 2eba881cc8..a37cbcde10 100644
--- a/Makefile
+++ b/Makefile
@@ -900,6 +900,7 @@ SUBDIR+= genus2reduction
SUBDIR+= geoclue
SUBDIR+= geocode-glib
SUBDIR+= geoloc
+SUBDIR+= geomyidae
SUBDIR+= gerris
SUBDIR+= gerris-snapshot
SUBDIR+= getdns
diff --git a/geomyidae/COMMIT_MSG b/geomyidae/COMMIT_MSG
new file mode 100644
index 0000000000..3bfc790502
--- /dev/null
+++ b/geomyidae/COMMIT_MSG
@@ -0,0 +1,96 @@
+geomyidae: Import geomyidae-0.32.2 as wip/geomyidae
+
+Based on net/Geomyidae.
+
+pkgsrc changes:
+ - Update DISTNAME, PKGNAME, MASTER_SITES and HOMEPAGE
+ - Avoid NO_CONFIGURE=yes, also if a package does not provide a configure script
+ it is not needed and can lead to confusion due the several configure targets
+ that are removed
+ - Add several variable to BUILD_DEFS
+ - Honor GEOMYIDAE_USER, GEOMYIDAE_GROUP and GEOMYIDAE_ROOTDIR variables that
+ will respectively set the user, group and rootdir of geomyidae
+ - Instead of copypasting several rc scripts write a new ones ad-hoc for pkgsrc
+ that will run geomyidae unprivileged honoring the several GEOMYIDAE_*
+ variables
+ - Do not install a LICENSE file (we have the LICENSE variable for it!)
+
+
+Changes:
+Geomyidae v0.32.2 fixes release
+-------------------------------
+Another fixes release for geomyidae is out. Now hopefully the OpenBSD people
+fixed the whole pledge support in geomyidae.
+
+
+Geomyidae v0.32.1 fixes release
+-------------------------------
+Soon after the v0.32 release I received patches, which I do not want to miss
+in mainline.
+
+* Fix and make OpenBSD pledge support better.
+* Fix a typo in the slackware init script.
+
+Thanks for all who sent in patches! All further patches are welcome!
+
+
+Geomyidae v0.32 Release
+-----------------------
+I am glad to announce the release of geomyidae v0.32. Thanks to all the
+contributors and people giving ideas!
+
+Here is what changed:
+ * Minor fixed in the manpage, CGI handling and tools.
+ * Add example for tt escaping in the manpage.
+ * Add nocgi flag, which disables CGI execution.
+ * Add OpenBSD pledge support.
+
+
+Geomyidae v0.31.1 release
+-------------------------
+
+There has been a geomyidae v0.31.1 release which fixes a major issue of the
+pending bytes logic from v0.31.
+
+Have fun!
+
+
+Geomyidae v0.31 release
+-----------------------
+I am proud to announce the geomyidae v0.31 release. There were
+some major issues fixed, so a new release is necessary:
+
+* There is now gph vim syntax highlighting files in the archive.
+* Gopher+ compatibility mode.
+* No sockets are left behind anymore.
+* New log format of geomyidae is now documented in the manpage.
+* There was some ugly bug with curl connecting to a Linux system, where after
+ close() some bytes were lost. Now some check is added to be sure all data
+ has been sent to the client. If you want to have bad dreams, look at the
+ curl sourcecode.
+
+Thanks for everyone contributing!
+
+
+Geomyidae 0.29 release
+----------------------
+I am happy to announce the 0.29 release of geomyidae, a simple gopher server.
+What has been changed:
+
+* the OpenBSD rc.d files have been fixed due to arg.h fixes
+* index.bin support added
+ * Create a file with the raw gopher menu content in a directory and is
+ served by geomyidae.
+ * This is useful for scripts generating static gopher content
+ * This is useful for serving a backup of a gopherhole.
+* show errors on fork, in case there are constraints on process resources
+* care for send errors
+* huge speed up on different platforms when transferring huge binary files
+ * Linux is using sendfile(2) and TCP_CORK
+ * FreeBSD and DragonflyBSD are using sendfile(2)
+ * TCP_NOPUSH is used on all BSDs
+ * TCP_NODELAY is disabled on nearly all platforms
+ * other platforms (like OpenBSD) have a speed increase due to an
+ alignment of the send buffer to blocksize of the socket
+
+I want to thank all contributors! All patches are welcome!
diff --git a/geomyidae/DESCR b/geomyidae/DESCR
new file mode 100644
index 0000000000..fc9f2b4468
--- /dev/null
+++ b/geomyidae/DESCR
@@ -0,0 +1,4 @@
+geomyidae is a daemon for serving the protocol specified in RFC
+1436 (Gopher). Under 1000 lines of C by design, it is lightweight
+yet supports dynamic content, automatic file/directory indexing,
+logging and privilege separation.
diff --git a/geomyidae/Makefile b/geomyidae/Makefile
new file mode 100644
index 0000000000..280559f967
--- /dev/null
+++ b/geomyidae/Makefile
@@ -0,0 +1,50 @@
+# $NetBSD: Makefile,v 1.8 2017/08/01 17:40:14 wiz Exp $
+
+DISTNAME= geomyidae-v0.32.2
+PKGNAME= ${DISTNAME:S/-v/-/}
+CATEGORIES= net
+MASTER_SITES= ftp://bitreich.org/releases/geomyidae/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= jgw%sdf.org@localhost
+HOMEPAGE= http://git.r-36.net/geomyidae/
+COMMENT= Gopher daemon for Linux/BSD
+LICENSE= mit AND x11
+
+BUILD_DEFS+= VARBASE GEOMYIDAE_USER GEOMYIDAE_GROUP GEOMYIDAE_ROOTDIR
+FILES_SUBST+= GEOMYIDAE_USER=${GEOMYIDAE_USER} GEOMYIDAE_GROUP=${GEOMYIDAE_GROUP}
+FILES_SUBST+= GEOMYIDAE_ROOTDIR=${GEOMYIDAE_ROOTDIR}
+
+EGDIR= ${PREFIX}/share/examples/geomyidae
+DOCDIR= ${PREFIX}/share/doc/geomyidae
+
+GEOMYIDAE_USER?= geomyidae
+GEOMYIDAE_GROUP?= nobody
+GEOMYIDAE_ROOTDIR?= ${VARBASE}/gopher
+
+PKG_GROUPS= ${GEOMYIDAE_GROUP}
+PKG_USERS= ${GEOMYIDAE_USER}:${GEOMYIDAE_GROUP}
+
+OWN_DIRS+= ${GEOMYIDAE_ROOTDIR}
+OWN_DIRS+= ${VARBASE}/run/geomyidae
+
+RCD_SCRIPTS= geomyidae
+
+SUBST_CLASSES+= rootdir
+SUBST_MESSAGE.rootdir= Adjust rootdir
+SUBST_STAGE.rootdir= pre-configure
+SUBST_FILES.rootdir= main.c
+SUBST_SED.rootdir= -e 's;/var/gopher;${GEOMYIDAE_ROOTDIR};'
+
+INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 ${EGDIR} ${DOCDIR}
+
+LDFLAGS.SunOS+= -lsocket -lnsl
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/geomyidae ${DESTDIR}${PREFIX}/sbin
+ ${INSTALL_MAN} ${WRKSRC}/geomyidae.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
+ ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/CGI ${DESTDIR}${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/index.gph ${DESTDIR}${EGDIR}
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/geomyidae/PLIST b/geomyidae/PLIST
new file mode 100644
index 0000000000..c21e52e1e2
--- /dev/null
+++ b/geomyidae/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.4 2015/04/19 19:21:15 wiz Exp $
+man/man8/geomyidae.8
+sbin/geomyidae
+share/doc/geomyidae/CGI
+share/doc/geomyidae/README
+share/examples/geomyidae/index.gph
diff --git a/geomyidae/TODO b/geomyidae/TODO
new file mode 100644
index 0000000000..1d3b95e749
--- /dev/null
+++ b/geomyidae/TODO
@@ -0,0 +1,3 @@
+- Contact the MAINTAINER in order to review/discuss these changes
+- In COMMIT_MSG some release changelog are missing, it is worth to investigate
+ and fill them accordingly before updating net/Geomyidae
diff --git a/geomyidae/distinfo b/geomyidae/distinfo
new file mode 100644
index 0000000000..a7cbf2ad75
--- /dev/null
+++ b/geomyidae/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.5 2015/11/04 00:34:51 agc Exp $
+
+SHA1 (geomyidae-v0.32.2.tgz) = cf7e947cdbcc3aa050e474595e728c773733e23e
+RMD160 (geomyidae-v0.32.2.tgz) = 48c80bf1f1b2c4126c461a84674d58030ca0aba7
+SHA512 (geomyidae-v0.32.2.tgz) = 3b0927a16082df862b9efacc2f29fd1b1ca76f7d465426e179d5995a416bc27b518daba422512091304ed5479ff133e3d40f7bf66aedfbd8d99d13710809d519
+Size (geomyidae-v0.32.2.tgz) = 20897 bytes
diff --git a/geomyidae/files/geomyidae.sh b/geomyidae/files/geomyidae.sh
new file mode 100755
index 0000000000..35291a7fc3
--- /dev/null
+++ b/geomyidae/files/geomyidae.sh
@@ -0,0 +1,37 @@
+#!@RCD_SCRIPTS_SHELL@
+
+# PROVIDE: geomyidae
+# REQUIRE: DAEMON
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="geomyidae"
+rcvar=$name
+command="@PREFIX@/sbin/geomyidae"
+pidfile="@VARBASE@/run/${name}/pid"
+start_precmd="geomyidae_precmd"
+
+_geomyidae_user="@GEOMYIDAE_USER@"
+_geomyidae_group="@GEOMYIDAE_GROUP@"
+_geomyidae_rootdir="@GEOMYIDAE_ROOTDIR@"
+
+command_args="-u \"${_geomyidae_user}\" -g \"${_geomyidae_group}\" -b \"${_geomyidae_rootdir}\""
+required_dirs="${_geomyidae_rootdir}"
+
+geomyidae_precmd()
+{
+ if [ ! -d "@VARBASE@/run/${name}" ]; then
+ @MKDIR@ "@VARBASE@/run/${name}"
+ @CHMOD@ 0700 "@VARBASE@/run/${name}"
+ fi
+}
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ run_rc_command "$1"
+else
+ echo -n "${name}"
+ ${command} ${command_args} ${geomyidae_flags}
+fi
Home |
Main Index |
Thread Index |
Old Index