pkgsrc-wip/gofish/Makefile
2005-09-28 14:24:38 +00:00

58 lines
1.6 KiB
Makefile

# $NetBSD: Makefile,v 1.3 2005/09/28 14:24:40 rillig Exp $
DISTNAME= gofish-1.0
CATEGORIES= wip
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}
EXAMPLESDIR= ${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= ${EXAMPLESDIR}/gofish.conf ${EXAMPLESDIR}/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:
# ${RM} -f ${PKG_SYSCONFDIR}/gofish-www.conf.new \
#
# ${PKG_SYSCONFDIR}/gofish.conf.new
pre-install:
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gofish
${INSTALL_DATA} ${WRKSRC}/gofish.conf ${PKG_SYSCONFDIR}
${INSTALL_DATA} ${WRKSRC}/*.conf ${EXAMPLESDIR}
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gofish
${INSTALL_DATA} ${WRKSRC}/Configure_GoFish ${PREFIX}/share/doc/gofish
.include "../../mk/bsd.pkg.mk"