aboutsummaryrefslogtreecommitdiffstats
path: root/security/pks/Makefile
blob: 7dfa9959e08ac8b48c7eceb4e25015576cebcf09 (plain) (blame)
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
# New ports collection makefile for:    pks
# Date created:     15 Jan 2001
# Whom:         kris@FreeBSD.org
#
# $FreeBSD$
#

PORTNAME=   pks
PORTVERSION=    0.9.4
PORTREVISION=   1
CATEGORIES= security www
MASTER_SITES=   ${PATCH_SITES} \
        ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

PATCH_SITES=    http://www.mit.edu/people/marc/pks/
PATCHFILES= pks094-patch2 \
        x509patch
PATCH_DIST_STRIP=-p1

MAINTAINER= jharris@widomaker.com
COMMENT=    PGP Public Key Server

LIB_DEPENDS=    db2.0:${PORTSDIR}/databases/db2

GNU_CONFIGURE=  yes
CONFIGURE_ARGS= --datadir=${PREFIX}/share/pks --localstatedir=/var/pks \
        --sysconfdir=${PREFIX}/share/examples \
        --libdir=${LOCALBASE}/lib
MAKE_ENV+=  LDFLAGS=-L${LOCALBASE}/lib

MAN5=   pksd.conf.5
MAN8=   pks-intro.8 pksclient.8 pksd.8 pksdctl.8

post-build:
    ${SED} -e "s,@PREFIX@,${PREFIX},g" \
        < ${FILESDIR}/pksd.sh > ${WRKDIR}/pksd.sh

post-install:
    ${INSTALL_SCRIPT} ${WRKDIR}/pksd.sh ${PREFIX}/etc/rc.d/pksd.sh
.if !exists(${PREFIX}/etc/pksd.conf)
    ${INSTALL_DATA} ${WRKSRC}/pksd.conf ${PREFIX}/etc/pksd.conf
.endif
    PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.mk>