blob: d6d144b6a1f5d8555f982c7aeb20e175fd3b9f5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
|
# $NetBSD: Makefile,v 1.4 2004/07/09 22:45:04 recht Exp $
#
DISTNAME= pygopherd_2.0.9
PKGNAME= ${DISTNAME:S/_/-/}
CATEGORIES= net
MASTER_SITES= http://gopher.quux.org:70/devel/gopher/Downloads/pygopherd/
MAINTAINER= tech-pkg@NetBSD.org
HOMEPAGE= http://gopher.quux.org:70/devel/gopher/pygopherd/
COMMENT= Gopher server
USE_BUILDLINK3= yes
USE_PKGINSTALL= yes
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
PKG_SYSCONFSUBDIR= pygopherd
EXAMPLEDIR= ${PREFIX}/share/examples/pygopherd
RUNTIMEDIR= ${VARBASE}/gopher
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
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'
# XXX this is needed for the RCD script
post-extract:
${MV} ${WRKDIR}/pygopherd ${WRKDIR}/${DISTNAME}
post-install:
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
for egfile in ${EGFILES}; do \
${INSTALL_DATA} $$egfile ${EXAMPLEDIR}; \
done
${INSTALL_MAN} ${WRKSRC}/doc/pygopherd.8 ${PREFIX}/man/man8
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
|