summaryrefslogtreecommitdiff
path: root/security/sks/Makefile
blob: 2987c249efbcb765cfd1ba8d47a3353c33a1e1ef (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# $NetBSD: Makefile,v 1.8 2013/05/31 12:41:58 wiz Exp $
#

DISTNAME=	sks-1.1.4
PKGREVISION=	1
CATEGORIES=	security
MASTER_SITES=	http://cdn.bitbucket.org/skskeyserver/sks-keyserver/downloads/
EXTRACT_SUFX=	.tgz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://bitbucket.org/skskeyserver/
COMMENT=	Self Replicating PGP Key Server
LICENSE=	gnu-gpl-v2

MAKE_JOBS_SAFE=	no

BUILDLINK_API_DEPENDS.ocaml+=	ocaml>=3.10.2
BUILDLINK_API_DEPENDS.db4+=	db4>=4.6.0

REPLACE_SH=	sks_build.sh

USE_TOOLS+=	gmake perl:run tar
BDB_ACCEPTED=	db4

EGDIR=		${PREFIX}/share/examples/sks

MAKE_ENV+=	LIBDB=-ldb4 \
		BDBINCLUDE=-I${BUILDLINK_DIR}/include \
		BDBLIB=-L${BUILDLINK_DIR}/lib \
		PREFIX=${PREFIX:Q} \
		MANDIR=${PREFIX:Q}/man

INSTALLATION_DIRS=	${PKGMANDIR}/man8 bin ${EGDIR}

.include "../../lang/ocaml/buildlink3.mk"
.include "../../databases/db4/buildlink3.mk"

pre-build:
	cd ${WRKSRC} && ${MAKE_PROGRAM} dep

post-install:
	cd ${WRKSRC} && ${MAKE_PROGRAM} sks.8
	${INSTALL_PROGRAM} ${WRKSRC}/sks ${DESTDIR}${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/sks_add_mail ${DESTDIR}${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/sks_build.sh ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/sks.8 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man8
	${INSTALL_DATA} ${WRKSRC}/sampleConfig/aliases.sample \
				${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/sampleConfig/crontab.sample \
				${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/sampleConfig/mailsync ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/sampleConfig/membership ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/sampleConfig/procmailrc ${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/sampleConfig/sksconf.minimal \
				${DESTDIR}${EGDIR}
	${INSTALL_DATA} ${WRKSRC}/sampleConfig/sksconf.typical \
				${DESTDIR}${EGDIR}

.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"