diff options
author | minskim <minskim> | 2005-10-26 03:42:21 +0000 |
---|---|---|
committer | minskim <minskim> | 2005-10-26 03:42:21 +0000 |
commit | 4b2ff05328d6bce335a1b5cbf4a9033822badaae (patch) | |
tree | bb218b970da484ffb9145062ecffec3f23c7840b /net/gofish/Makefile | |
parent | 04f1d811a297fbaa6087ed30d733ff9927388e98 (diff) | |
download | pkgsrc-4b2ff05328d6bce335a1b5cbf4a9033822badaae.tar.gz |
Import gofish from pkgsrc-wip. Packaged by Emil Skoeldberg.
Gopher server that also acts as http server and gopher to http gateway.
Diffstat (limited to 'net/gofish/Makefile')
-rw-r--r-- | net/gofish/Makefile | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/net/gofish/Makefile b/net/gofish/Makefile new file mode 100644 index 00000000000..017718dcb9c --- /dev/null +++ b/net/gofish/Makefile @@ -0,0 +1,53 @@ +# $NetBSD: Makefile,v 1.1.1.1 2005/10/26 03:42:21 minskim Exp $ + +DISTNAME= gofish-1.0 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gofish/} + +MAINTAINER= emil@math.su.se +HOMEPAGE= http://gofish.sourceforge.net/ +COMMENT= Gopher server + +WRKSRC= ${WRKDIR}/gofish +USE_PKGLOCALEDIR= yes +GNU_CONFIGURE= yes +USE_PKGINSTALL= yes + +CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} \ + --localstatedir=${VARBASE} + +EGDIR= ${PREFIX}/share/examples/gofish +RUNTIMEDIR= ${VARBASE}/gopher + +GOPHER_USER= gopher +GOPHER_GROUP= gopher +GOPHER_UID= 30 +GOPHER_GID= 30 +PKG_GROUPS= ${GOPHER_GROUP}:${GOPHER_GID} +PKG_USERS= ${GOPHER_USER}:${GOPHER_GROUP}:${GOPHER_UID} +OWN_DIRS_PERMS= ${RUNTIMEDIR} ${GOPHER_USER} ${GOPHER_GROUP} 0750 + +RCD_SCRIPTS= gopherd + +CONF_FILES= ${EGDIR}/gofish.conf ${PKG_SYSCONFDIR}/gofish.conf \ + ${EGDIR}/gofish-www.conf ${PKG_SYSCONFDIR}/gofish-www.conf + +FILES_SUBST+= RUNTIMEDIR=${RUNTIMEDIR} +FILES_SUBST+= PKG_USERS=${PKG_USERS} + +post-configure: + ${MV} ${WRKSRC}/gofish.conf ${WRKSRC}/gofish.conf.orig + ${SED} -e "s/;uid = -1/uid = ${GOPHER_UID}/g" \ + -e "s/;gid = -1/gid = ${GOPHER_GID}/g" \ + ${WRKSRC}/gofish.conf.orig \ + > ${WRKSRC}/gofish.conf + + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gofish + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gofish + ${INSTALL_DATA} ${WRKSRC}/gofish.conf ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/gofish-www.conf ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/Configure_GoFish ${PREFIX}/share/doc/gofish + +.include "../../mk/bsd.pkg.mk" |