09ed8969ff
Now having `geomyidae=yes' in rc.conf correctly works. Bump PKGREVISION
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2018/09/21 17:10:57 leot Exp $
|
|
|
|
DISTNAME= geomyidae-v0.32.2
|
|
PKGNAME= ${DISTNAME:S/-v/-/}
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ftp://bitreich.org/releases/geomyidae/
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= leot@NetBSD.org
|
|
HOMEPAGE= gopher://bitreich.org/1/scm/geomyidae
|
|
COMMENT= Gopher daemon for Linux/BSD
|
|
LICENSE= mit
|
|
|
|
BUILD_DEFS+= VARBASE GEOMYIDAE_USER GEOMYIDAE_GROUP GEOMYIDAE_ROOTDIR
|
|
FILES_SUBST+= GEOMYIDAE_USER=${GEOMYIDAE_USER} GEOMYIDAE_GROUP=${GEOMYIDAE_GROUP}
|
|
FILES_SUBST+= GEOMYIDAE_ROOTDIR=${GEOMYIDAE_ROOTDIR}
|
|
|
|
EGDIR= ${PREFIX}/share/examples/geomyidae
|
|
DOCDIR= ${PREFIX}/share/doc/geomyidae
|
|
|
|
GEOMYIDAE_USER?= geomyidae
|
|
GEOMYIDAE_GROUP?= nobody
|
|
GEOMYIDAE_ROOTDIR?= ${VARBASE}/gopher
|
|
|
|
PKG_GROUPS= ${GEOMYIDAE_GROUP}
|
|
PKG_USERS= ${GEOMYIDAE_USER}:${GEOMYIDAE_GROUP}
|
|
|
|
OWN_DIRS+= ${GEOMYIDAE_ROOTDIR}
|
|
OWN_DIRS+= ${VARBASE}/run/geomyidae
|
|
|
|
RCD_SCRIPTS= geomyidae
|
|
|
|
SUBST_CLASSES+= rootdir
|
|
SUBST_MESSAGE.rootdir= Adjust rootdir
|
|
SUBST_STAGE.rootdir= pre-configure
|
|
SUBST_FILES.rootdir= main.c
|
|
SUBST_SED.rootdir= -e 's;/var/gopher;${GEOMYIDAE_ROOTDIR};'
|
|
|
|
INSTALLATION_DIRS= sbin ${PKGMANDIR}/man8 ${EGDIR} ${DOCDIR}
|
|
|
|
LDFLAGS.SunOS+= -lsocket -lnsl
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/geomyidae ${DESTDIR}${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/geomyidae.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/CGI ${DESTDIR}${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/index.gph ${DESTDIR}${EGDIR}
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|