[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / gofish

File: [cvs.NetBSD.org] / pkgsrc / net / gofish / Makefile (download)

Revision 1.10, Tue Oct 9 19:19:14 2007 UTC (15 years, 3 months ago) by martti
Branch: MAIN
CVS Tags: pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3
Changes since 1.9: +2 -2 lines

Remove trailing spaces.

# $NetBSD: Makefile,v 1.10 2007/10/09 19:19:14 martti Exp $

DISTNAME=		gofish-1.1
PKGREVISION=		2
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

CONFIGURE_ARGS+=	--with-gopheruser=${GOPHER_USER:Q}
CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+=	--localstatedir=${VARBASE:Q}

EGDIR=			${PREFIX}/share/examples/gofish
RUNTIMEDIR=		${VARBASE}/gopher

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

RCD_SCRIPTS=		gopherd

OWN_DIRS_PERMS=		${RUNTIMEDIR} ${GOPHER_USER} ${GOPHER_GROUP} 0750

.for FILE in gofish.conf gofish-www.conf
CONF_FILES+=		${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
.endfor

FILES_SUBST+=		RUNTIMEDIR=${RUNTIMEDIR:Q}
FILES_SUBST+=		PKG_USERS=${PKG_USERS:Q}

SUBST_CLASSES+=		user
SUBST_MESSAGE.user=	Fixing name of gopher user in files.
SUBST_FILES.user=	gofish.conf
SUBST_SED.user=		-e "s/;user = gopher/user = ${GOPHER_USER}/g"

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"