aboutsummaryrefslogtreecommitdiffstats
path: root/security/pks/Makefile
blob: 1178fb591697ef7ab252a08cdb63612bf15491b2 (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
47
48
49
50
51
52
53
54
55
56
57
# Created by: kris@FreeBSD.org
# $FreeBSD$

PORTNAME=   pks
PORTVERSION=    0.9.6.20040312
PORTREVISION=   3
CATEGORIES= security www
MASTER_SITES=   http://pks.sourceforge.net/ LOCAL/mandree
DISTFILES=  pks-current.tgz

MAINTAINER= tphilipp@potion-studios.com
COMMENT=    PGP Public Key Server

LICENSE=    BSD4CLAUSE
LICENSE_FILE=   ${WRKSRC}/LICENSE

WRKSRC=     ${WRKDIR}/${PORTNAME}

USE_GCC=    any
USES=       bdb ssl

OPTIONS_DEFINE= DOCS
PORTDOCS=   pks_help.* README EMAIL
GNU_CONFIGURE=  yes
USE_AUTOTOOLS=  autoconf
CONFIGURE_ARGS= --datadir=${PREFIX}/share/pks --localstatedir=/var/pks \
        --docdir=${PREFIX}/share/doc/pks --sysconfdir=${EXAMPLESDIR} \
        --libdir=${LOCALBASE}/lib --with-libwrap \
        --with-openssl=${OPENSSLBASE}
MAKE_ENV+=  SUBDIRS=
LDFLAGS+=   -L${LOCALBASE}/lib
CONFIGURE_ENV=  DBLIB="-L${BDB_LIB_DIR} -l${BDB_LIB_NAME}" \
        DBINC=-I${BDB_INCLUDE_DIR} DBHDR=db.h

SUB_FILES=  pkg-message
PKGMESSAGE= ${WRKDIR}/pkg-message

PLIST_SUB+= RESETPREFIX=${PREFIX}

USE_RC_SUBR=    pksd

post-extract:
    @${CP} -a ${FILESDIR}/EMAIL ${WRKSRC}

post-install:
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pgpsplit
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pksdctl
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/pksclient
    ${STRIP_CMD} ${STAGEDIR}${PREFIX}/sbin/pksd
    ${INSTALL_DATA}  ${WRKSRC}/pksd.conf ${STAGEDIR}${PREFIX}/etc/pksd.conf.sample
    #${CHOWN} pksd:pksd /var/pks

post-install-DOCS-on:
    ${MKDIR} ${STAGEDIR}${DOCSDIR}/
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/

.include <bsd.port.mk>