summaryrefslogtreecommitdiff
path: root/security/pks/Makefile
blob: 12ef1627b38923009f684052eab33be6fbb6c967 (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
# $NetBSD: Makefile,v 1.7 2001/11/21 15:44:23 jlam Exp $

DISTNAME=		pks-0.9.4
CATEGORIES=		security www
MASTER_SITES+=		http://www.mit.edu/people/marc/pks/ \
			ftp://ftp.neonramp.com/pub/pksd/

PATCH_SITES=		http://www.mit.edu/people/marc/pks/ \
			ftp://ftp.neonramp.com/pub/pksd/
PATCHFILES=		pks094-patch2 \
			pks094-patch3
PATCH_DIST_STRIP=	-p1

MAINTAINER=		burgess@neonramp.com
HOMEPAGE=		http://www.mit.edu/people/marc/pks/
COMMENT=		PGP Public Key Server

USE_BUILDLINK_ONLY=	YES
GNU_CONFIGURE=		YES
CONFIGURE_ARGS+=	--datadir=${PREFIX}/share/pks
CONFIGURE_ARGS+=	--localstatedir=/var/pks
#
# pksd doesn't actually look for it's config file anywhere; it must be
# specified directly on the command-line.  Setting sysconfdir here just
# causes the example pksd.conf file to be installed at the named location.
#
CONFIGURE_ARGS+=	--sysconfdir=${EGDIR}

EGDIR=		${PREFIX}/share/examples
CONF_FILES=	${EGDIR}/pksd.conf ${CONFDIR}/pksd.conf
RCD_SCRIPTS=	pksd
OWN_DIRS=	/var/pks /var/pks/db /var/pks/incoming

pre-install:
	${SED} ${FILES_SUBST_SED} ${FILESDIR}/pksd.sh > ${WRKDIR}/pksd.sh

post-install:
	${INSTALL_SCRIPT} ${WRKDIR}/pksd.sh ${PREFIX}/etc/rc.d/pksd
	PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL

.include "../../databases/db/buildlink.mk"
.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"