pkgsrc-WIP-changes archive

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

Geomyidae-git: Import geomyidae-0.33 as wip/Geomyidae-git



Module Name:	pkgsrc-wip
Committed By:	Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By:	leot
Date:		Mon Nov 12 23:15:52 2018 +0100
Changeset:	9dc489e29fea416842f3525019c496e6022964f9

Modified Files:
	Makefile
Added Files:
	Geomyidae-git/DESCR
	Geomyidae-git/Makefile
	Geomyidae-git/PLIST
	Geomyidae-git/files/geomyidae.sh

Log Message:
Geomyidae-git: Import geomyidae-0.33 as wip/Geomyidae-git

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.

Based on net/Geomyidae.

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

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

diffstat:
 Geomyidae-git/DESCR              |  4 +++
 Geomyidae-git/Makefile           | 55 ++++++++++++++++++++++++++++++++++++++++
 Geomyidae-git/PLIST              |  6 +++++
 Geomyidae-git/files/geomyidae.sh | 22 ++++++++++++++++
 Makefile                         |  1 +
 5 files changed, 88 insertions(+)

diffs:
diff --git a/Geomyidae-git/DESCR b/Geomyidae-git/DESCR
new file mode 100644
index 0000000000..fc9f2b4468
--- /dev/null
+++ b/Geomyidae-git/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-git/Makefile b/Geomyidae-git/Makefile
new file mode 100644
index 0000000000..e7da2726c1
--- /dev/null
+++ b/Geomyidae-git/Makefile
@@ -0,0 +1,55 @@
+# $NetBSD: Makefile,v 1.11 2018/09/21 17:10:57 leot Exp $
+
+DISTNAME=	geomyidae-v0.33
+PKGNAME=	${DISTNAME:S/-v/-/}
+CATEGORIES=	net
+MASTER_SITES=	ftp://bitreich.org/releases/geomyidae/
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	leot%NetBSD.org@localhost
+HOMEPAGE=	gopher://bitreich.org/1/scm/geomyidae
+COMMENT=	Gopher daemon for Linux/BSD
+LICENSE=	mit
+
+GIT_REPOSITORIES=	geomyidae
+GIT_REPO.geomyidae=	git://bitreich.org/geomyidae
+WRKSRC=			${WRKDIR}/geomyidae
+
+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 "../../wip/mk/git-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/Geomyidae-git/PLIST b/Geomyidae-git/PLIST
new file mode 100644
index 0000000000..25f3a7dc6b
--- /dev/null
+++ b/Geomyidae-git/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.5 2018/08/10 10:41:20 leot Exp $
+man/man8/geomyidae.8
+sbin/geomyidae
+share/doc/geomyidae/CGI
+share/doc/geomyidae/README
+share/examples/geomyidae/index.gph
diff --git a/Geomyidae-git/files/geomyidae.sh b/Geomyidae-git/files/geomyidae.sh
new file mode 100755
index 0000000000..44439beb8b
--- /dev/null
+++ b/Geomyidae-git/files/geomyidae.sh
@@ -0,0 +1,22 @@
+#!@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"
+
+geomyidae_flags=${geomyidae_flags-"-u @GEOMYIDAE_USER@ -g @GEOMYIDAE_GROUP@ -b @GEOMYIDAE_ROOTDIR@"}
+
+if [ -f /etc/rc.subr ]; then
+	load_rc_config $name
+	run_rc_command "$1"
+else
+	echo -n "${name}"
+	${command} ${geomyidae_flags} ${command_args} 
+fi
diff --git a/Makefile b/Makefile
index b34af42dc8..d3633ffa2f 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,7 @@ SUBDIR+=	FLIF
 SUBDIR+=	FLIF-git
 SUBDIR+=	GNUMail-pgp
 SUBDIR+=	GSCommander
+SUBDIR+=	Geomyidae-git
 SUBDIR+=	GoogleEarth
 SUBDIR+=	I2util
 SUBDIR+=	LuaJIT21


Home | Main Index | Thread Index | Old Index