2004-12-28 03:47:40 +01:00
|
|
|
# $NetBSD: Makefile,v 1.5 2004/12/28 02:47:47 reed Exp $
|
2003-09-30 19:27:28 +02:00
|
|
|
#
|
|
|
|
|
2004-01-24 20:44:00 +01:00
|
|
|
DISTNAME= pygopherd_2.0.9
|
2003-09-30 19:27:28 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2004-12-28 03:47:40 +01:00
|
|
|
PKGREVISION= 1
|
2003-09-30 19:27:28 +02:00
|
|
|
CATEGORIES= net
|
|
|
|
MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/
|
|
|
|
|
2004-07-10 00:45:04 +02:00
|
|
|
MAINTAINER= tech-pkg@NetBSD.org
|
2003-09-30 19:27:28 +02:00
|
|
|
HOMEPAGE= http://gopher.quux.org:70/devel/gopher/pygopherd/
|
|
|
|
COMMENT= Gopher server
|
|
|
|
|
2004-05-05 10:11:06 +02:00
|
|
|
USE_BUILDLINK3= yes
|
2003-09-30 19:27:28 +02:00
|
|
|
USE_PKGINSTALL= yes
|
|
|
|
PYDISTUTILSPKG= yes
|
|
|
|
PY_PATCHPLIST= yes
|
|
|
|
|
|
|
|
PKG_SYSCONFSUBDIR= pygopherd
|
|
|
|
EXAMPLEDIR= ${PREFIX}/share/examples/pygopherd
|
2004-07-10 00:45:04 +02:00
|
|
|
RUNTIMEDIR= ${VARBASE}/gopher
|
2003-09-30 19:27:28 +02:00
|
|
|
|
|
|
|
GOPHER_USER= gopher
|
|
|
|
GOPHER_GROUP= gopher
|
|
|
|
PKG_GROUPS= ${GOPHER_GROUP}
|
|
|
|
PKG_USERS= ${GOPHER_USER}:${GOPHER_GROUP}
|
|
|
|
OWN_DIRS_PERMS= ${RUNTIMEDIR} ${GOPHER_USER} ${GOPHER_GROUP} 0750
|
|
|
|
|
|
|
|
CONF_FILES= ${EXAMPLEDIR}/pygopherd.conf ${PKG_SYSCONFDIR}/pygopherd.conf
|
|
|
|
CONF_FILES+= ${EXAMPLEDIR}/mime.types ${PKG_SYSCONFDIR}/mime.types
|
|
|
|
EGFILES= ${WRKSRC}/examples/gophermap
|
|
|
|
EGFILES+= ${WRKSRC}/conf/mime.types
|
|
|
|
EGFILES+= ${WRKSRC}/conf/pygopherd.conf
|
|
|
|
|
|
|
|
RCD_SCRIPTS= pygopherd
|
|
|
|
FILES_SUBST+= RUNTIMEDIR=${RUNTIMEDIR}
|
|
|
|
FILES_SUBST+= PYTHONBIN=${PYTHONBIN}
|
|
|
|
|
|
|
|
PYTHON_PATCH_SCRIPTS= bin/pygopherd
|
|
|
|
PYTHON_PATCH_SCRIPTS+= pygopherd/GopherExceptionsTest.py
|
|
|
|
PYTHON_PATCH_SCRIPTS+= pygopherd/fileextTest.py
|
|
|
|
PYTHON_PATCH_SCRIPTS+= pygopherd/gopherentryTest.py
|
|
|
|
PYTHON_PATCH_SCRIPTS+= pygopherd/initializationTest.py
|
|
|
|
PYTHON_PATCH_SCRIPTS+= pygopherd/testutil.py
|
|
|
|
|
|
|
|
PYTHON_VERSIONS_ACCEPTED= 23 23pth 22 22pth
|
|
|
|
|
2004-01-24 20:44:00 +01:00
|
|
|
SUBST_CLASSES+= man
|
|
|
|
SUBST_STAGE.man= post-patch
|
|
|
|
SUBST_FILES.man= setup.py
|
|
|
|
SUBST_FILES.man+= bin/pygopherd
|
|
|
|
SUBST_FILES.man+= conf/pygopherd.conf
|
|
|
|
SUBST_FILES.man+= doc/pygopherd.8
|
|
|
|
SUBST_SED.man= -e 's,%%PREFIX%%,${PREFIX},g'
|
|
|
|
SUBST_SED.man+= -e 's,%%EXAMPLEDIR%%,${EXAMPLEDIR},g'
|
|
|
|
|
2003-09-30 19:27:28 +02:00
|
|
|
# XXX this is needed for the RCD script
|
|
|
|
post-extract:
|
2004-01-24 20:44:00 +01:00
|
|
|
${MV} ${WRKDIR}/pygopherd ${WRKDIR}/${DISTNAME}
|
2003-09-30 19:27:28 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
|
|
|
|
for egfile in ${EGFILES}; do \
|
|
|
|
${INSTALL_DATA} $$egfile ${EXAMPLEDIR}; \
|
|
|
|
done
|
2004-01-24 20:44:00 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/pygopherd.8 ${PREFIX}/man/man8
|
2003-09-30 19:27:28 +02:00
|
|
|
|
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|