Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / security / pks / Makefile
blob51784739a89d7777d04a2a0f28388217676c07f2
1 # $NetBSD: Makefile,v 1.30 2012/10/23 18:16:51 asau Exp $
3 DISTNAME= pks-0.9.4
4 PKGREVISION= 4
5 CATEGORIES= security www
6 MASTER_SITES+= http://www.mit.edu/people/marc/pks/ \
7 ${MASTER_SITE_SOURCEFORGE:=pks/}
8 PATCH_SITES= http://www.mit.edu/people/marc/pks/
9 PATCHFILES= pks094-patch2 \
10 pks094-patch3
11 PATCH_DIST_STRIP= -p1
13 MAINTAINER= pkgsrc-users@NetBSD.org
14 HOMEPAGE= http://www.mit.edu/people/marc/pks/
15 COMMENT= PGP Public Key Server
16 LICENSE= original-bsd
18 GNU_CONFIGURE= YES
20 PKG_GROUPS_VARS+= PKS_GROUP
21 PKG_USERS_VARS+= PKS_USER
23 PKS_USER= pks
24 PKS_GROUP= pks
25 PKS_SERVER?= localhost
26 PKS_HOME= ${VARBASE}/pks
28 PKG_GROUPS= ${PKS_GROUP}
29 PKG_USERS= ${PKS_USER}:${PKS_GROUP}
31 PKG_GECOS.${PKS_USER}= PGP Key Server
32 PKG_HOME.${PKS_USER}= ${PKS_HOME}
34 BDB_ACCEPTED= db2
36 BUILD_DEFS+= PKS_SERVER
38 EGDIR= ${PREFIX}/share/examples
39 CONF_FILES= ${EGDIR}/pksd.conf ${PKG_SYSCONFDIR}/pksd.conf
40 RCD_SCRIPTS= pksd
42 FILES_SUBST+= PKS_USER=${PKS_USER:Q}
43 FILES_SUBST+= PKS_GROUP=${PKS_GROUP:Q}
45 OWN_DIRS_PERMS+= ${PKS_HOME} ${PKS_USER} ${PKS_GROUP} 0770
46 OWN_DIRS_PERMS+= ${PKS_HOME}/db ${PKS_USER} ${PKS_GROUP} 0770
47 OWN_DIRS_PERMS+= ${PKS_HOME}/incoming ${PKS_USER} ${PKS_GROUP} 0770
49 CONFIGURE_ARGS+= --datadir=${PREFIX}/share/pks
50 CONFIGURE_ARGS+= --localstatedir=${PKS_HOME:Q}
52 # pksd doesn't actually look for its config file anywhere; it must be
53 # specified directly on the command-line. Setting sysconfdir here just
54 # causes the example pksd.conf file to be installed at the named location.
56 CONFIGURE_ARGS+= --sysconfdir=${EGDIR:Q}
58 SUBST_CLASSES+= paths
59 SUBST_MESSAGE.paths= Fixing hardcoded paths.
60 SUBST_STAGE.paths= post-patch
61 SUBST_FILES.paths= pks-commands.html
62 SUBST_SED.paths= -e "s|localhost|${PKS_SERVER}|g"
64 INSTALL_MAKE_FLAGS+= prefix=${DESTDIR}${PREFIX}
65 INSTALL_MAKE_FLAGS+= datadir=${DESTDIR}${PREFIX}/share/pks
66 INSTALL_MAKE_FLAGS+= localstatedir=${DESTDIR}${PKS_HOME}
67 INSTALL_MAKE_FLAGS+= man5dir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man5
68 INSTALL_MAKE_FLAGS+= man8dir=${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
69 INSTALL_MAKE_FLAGS+= sysconfdir=${DESTDIR}${EGDIR:Q}
71 .include "../../databases/db/buildlink3.mk"
73 post-install:
74 ${INSTALL_DATA} ${WRKSRC}/pks-commands.html ${DESTDIR}${EGDIR}
76 CONF_FILES_PERMS= ${EGDIR}/pks-commands.html ${PKS_HOME}/db/index.html \
77 ${PKS_USER} ${PKS_GROUP} ${SHAREMODE}
79 .include "../../mk/bsd.pkg.mk"