| @@ -1,54 +1,58 @@ | | | @@ -1,54 +1,58 @@ |
1 | # $NetBSD: Makefile,v 1.16 2013/07/12 10:44:59 jperkin Exp $ | | 1 | # $NetBSD: Makefile,v 1.17 2016/12/18 16:36:18 rillig Exp $ |
2 | | | 2 | |
3 | DISTNAME= gofish-1.2 | | 3 | DISTNAME= gofish-1.2 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 2 |
5 | CATEGORIES= net | | 5 | CATEGORIES= net |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gofish/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gofish/} |
7 | | | 7 | |
8 | MAINTAINER= esg@sdf.lonestar.org | | 8 | MAINTAINER= esg@sdf.lonestar.org |
9 | HOMEPAGE= http://gofish.sourceforge.net/ | | 9 | HOMEPAGE= http://gofish.sourceforge.net/ |
10 | COMMENT= Gopher server | | 10 | COMMENT= Gopher server |
11 | LICENSE= gnu-gpl-v2 | | 11 | LICENSE= gnu-gpl-v2 |
12 | | | 12 | |
13 | WRKSRC= ${WRKDIR}/gofish | | 13 | WRKSRC= ${WRKDIR}/gofish |
14 | USE_PKGLOCALEDIR= yes | | 14 | USE_PKGLOCALEDIR= yes |
15 | GNU_CONFIGURE= yes | | 15 | GNU_CONFIGURE= yes |
16 | | | 16 | |
17 | CONFIGURE_ARGS+= --with-gopheruser=${GOPHER_USER:Q} | | 17 | CONFIGURE_ARGS+= --with-gopheruser=${GOPHER_USER} |
18 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q} | | 18 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
19 | CONFIGURE_ARGS+= --localstatedir=${VARBASE:Q} | | 19 | CONFIGURE_ARGS+= --localstatedir=${VARBASE} |
| | | 20 | BUILD_DEFS+= VARBASE |
20 | | | 21 | |
21 | EGDIR= ${PREFIX}/share/examples/gofish | | 22 | EGDIR= ${PREFIX}/share/examples/gofish |
22 | RUNTIMEDIR= ${VARBASE}/gopher | | 23 | RUNTIMEDIR= ${VARBASE}/gopher |
23 | | | 24 | |
| | | 25 | .include "../../mk/bsd.prefs.mk" |
| | | 26 | |
24 | GOPHER_USER?= gopher | | 27 | GOPHER_USER?= gopher |
25 | GOPHER_GROUP?= gopher | | 28 | GOPHER_GROUP?= gopher |
26 | PKG_GROUPS= ${GOPHER_GROUP} | | 29 | PKG_GROUPS= ${GOPHER_GROUP} |
27 | PKG_USERS= ${GOPHER_USER}:${GOPHER_GROUP} | | 30 | PKG_USERS= ${GOPHER_USER}:${GOPHER_GROUP} |
28 | PKG_GROUPS_VARS+= GOPHER_GROUP | | 31 | PKG_GROUPS_VARS+= GOPHER_GROUP |
29 | PKG_USERS_VARS+= GOPHER_USER | | 32 | PKG_USERS_VARS+= GOPHER_USER |
30 | | | 33 | |
31 | RCD_SCRIPTS= gopherd | | 34 | RCD_SCRIPTS= gopherd |
32 | | | 35 | |
33 | OWN_DIRS_PERMS= ${RUNTIMEDIR} ${GOPHER_USER} ${GOPHER_GROUP} 0750 | | 36 | OWN_DIRS_PERMS= ${RUNTIMEDIR} ${GOPHER_USER} ${GOPHER_GROUP} 0750 |
34 | | | 37 | |
35 | .for file in gofish.conf gofish-www.conf | | 38 | .for file in gofish.conf gofish-www.conf |
36 | CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file} | | 39 | CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file} |
37 | .endfor | | 40 | .endfor |
38 | | | 41 | |
39 | FILES_SUBST+= RUNTIMEDIR=${RUNTIMEDIR:Q} | | 42 | FILES_SUBST+= RUNTIMEDIR=${RUNTIMEDIR} |
40 | FILES_SUBST+= PKG_USERS=${PKG_USERS:Q} | | 43 | FILES_SUBST+= PKG_USERS=${PKG_USERS:Q} |
41 | | | 44 | |
42 | SUBST_CLASSES+= user | | 45 | SUBST_CLASSES+= user |
| | | 46 | SUBST_STAGE.user= pre-configure |
43 | SUBST_MESSAGE.user= Fixing name of gopher user in files. | | 47 | SUBST_MESSAGE.user= Fixing name of gopher user in files. |
44 | SUBST_FILES.user= gofish.conf | | 48 | SUBST_FILES.user= gofish.conf |
45 | SUBST_SED.user= -e "s/;user = gopher/user = ${GOPHER_USER}/g" | | 49 | SUBST_SED.user= -e "s/;user = gopher/user = ${GOPHER_USER}/g" |
46 | | | 50 | |
47 | INSTALLATION_DIRS= share/examples/gofish share/doc/gofish | | 51 | INSTALLATION_DIRS= share/examples/gofish share/doc/gofish |
48 | | | 52 | |
49 | post-install: | | 53 | post-install: |
50 | ${INSTALL_DATA} ${WRKSRC}/gofish.conf ${DESTDIR}${EGDIR} | | 54 | ${INSTALL_DATA} ${WRKSRC}/gofish.conf ${DESTDIR}${EGDIR} |
51 | ${INSTALL_DATA} ${WRKSRC}/gofish-www.conf ${DESTDIR}${EGDIR} | | 55 | ${INSTALL_DATA} ${WRKSRC}/gofish-www.conf ${DESTDIR}${EGDIR} |
52 | ${INSTALL_DATA} ${WRKSRC}/Configure_GoFish ${DESTDIR}${PREFIX}/share/doc/gofish | | 56 | ${INSTALL_DATA} ${WRKSRC}/Configure_GoFish ${DESTDIR}${PREFIX}/share/doc/gofish |
53 | | | 57 | |
54 | .include "../../mk/bsd.pkg.mk" | | 58 | .include "../../mk/bsd.pkg.mk" |