1 # $NetBSD: Makefile,v 1.30 2012/10/23 18:16:51 asau Exp $
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 \
13 MAINTAINER
= pkgsrc-users@NetBSD.org
14 HOMEPAGE
= http
://www.mit.edu
/people
/marc
/pks
/
15 COMMENT
= PGP Public Key Server
20 PKG_GROUPS_VARS
+= PKS_GROUP
21 PKG_USERS_VARS
+= PKS_USER
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}
36 BUILD_DEFS
+= PKS_SERVER
38 EGDIR
= ${PREFIX}/share
/examples
39 CONF_FILES
= ${EGDIR}/pksd.conf
${PKG_SYSCONFDIR}/pksd.conf
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
}
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"
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"