2013-07-12 12:44:52 +02:00
|
|
|
# $NetBSD: Makefile,v 1.16 2013/07/12 10:44:59 jperkin Exp $
|
2005-10-26 05:42:21 +02:00
|
|
|
|
2011-01-18 11:27:30 +01:00
|
|
|
DISTNAME= gofish-1.2
|
2013-07-12 12:44:52 +02:00
|
|
|
PKGREVISION= 1
|
2005-10-26 05:42:21 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gofish/}
|
|
|
|
|
2011-01-17 17:14:58 +01:00
|
|
|
MAINTAINER= esg@sdf.lonestar.org
|
2005-10-26 05:42:21 +02:00
|
|
|
HOMEPAGE= http://gofish.sourceforge.net/
|
|
|
|
COMMENT= Gopher server
|
2011-01-18 11:27:30 +01:00
|
|
|
LICENSE= gnu-gpl-v2
|
2005-10-26 05:42:21 +02:00
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/gofish
|
|
|
|
USE_PKGLOCALEDIR= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
|
2007-06-20 19:46:03 +02:00
|
|
|
CONFIGURE_ARGS+= --with-gopheruser=${GOPHER_USER:Q}
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q}
|
2005-10-26 05:42:21 +02:00
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/gofish
|
2007-06-20 19:46:03 +02:00
|
|
|
RUNTIMEDIR= ${VARBASE}/gopher
|
2005-10-26 05:42:21 +02:00
|
|
|
|
2007-06-20 19:46:03 +02:00
|
|
|
GOPHER_USER?= gopher
|
|
|
|
GOPHER_GROUP?= gopher
|
|
|
|
PKG_GROUPS= ${GOPHER_GROUP}
|
|
|
|
PKG_USERS= ${GOPHER_USER}:${GOPHER_GROUP}
|
|
|
|
PKG_GROUPS_VARS+= GOPHER_GROUP
|
|
|
|
PKG_USERS_VARS+= GOPHER_USER
|
2005-10-26 05:42:21 +02:00
|
|
|
|
|
|
|
RCD_SCRIPTS= gopherd
|
|
|
|
|
2007-06-20 19:46:03 +02:00
|
|
|
OWN_DIRS_PERMS= ${RUNTIMEDIR} ${GOPHER_USER} ${GOPHER_GROUP} 0750
|
2005-10-26 05:42:21 +02:00
|
|
|
|
2013-04-06 15:24:18 +02:00
|
|
|
.for file in gofish.conf gofish-www.conf
|
|
|
|
CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file}
|
2007-06-20 19:46:03 +02:00
|
|
|
.endfor
|
2005-10-26 05:42:21 +02:00
|
|
|
|
2007-06-20 19:46:03 +02:00
|
|
|
FILES_SUBST+= RUNTIMEDIR=${RUNTIMEDIR:Q}
|
|
|
|
FILES_SUBST+= PKG_USERS=${PKG_USERS:Q}
|
2005-10-26 05:42:21 +02:00
|
|
|
|
2007-06-20 19:46:03 +02:00
|
|
|
SUBST_CLASSES+= user
|
|
|
|
SUBST_MESSAGE.user= Fixing name of gopher user in files.
|
|
|
|
SUBST_FILES.user= gofish.conf
|
2007-10-09 21:19:08 +02:00
|
|
|
SUBST_SED.user= -e "s/;user = gopher/user = ${GOPHER_USER}/g"
|
2005-10-26 05:42:21 +02:00
|
|
|
|
2008-06-20 03:09:05 +02:00
|
|
|
INSTALLATION_DIRS= share/examples/gofish share/doc/gofish
|
|
|
|
|
2005-10-26 05:42:21 +02:00
|
|
|
post-install:
|
2008-06-20 03:09:05 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gofish.conf ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gofish-www.conf ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Configure_GoFish ${DESTDIR}${PREFIX}/share/doc/gofish
|
2005-10-26 05:42:21 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|