aboutsummaryrefslogtreecommitdiff
path: root/net/fort/Makefile
blob: f005b965dd2f75199ee833dd0e46481003c1e887 (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
PORTNAME=	fort
DISTVERSION=	1.5.2
PORTREVISION=	1
CATEGORIES=	net

MAINTAINER=	toni@devboks.com
COMMENT=	FORT Validator is an open source RPKI validator

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libcurl.so:ftp/curl libjansson.so:devel/jansson \
		libxml2.so:textproc/libxml2
RUN_DEPENDS=	${LOCALBASE}/bin/rsync:net/rsync

USES=		autoreconf compiler:c11 pkgconfig ssl
USE_GITHUB=	yes
USE_RC_SUBR=	fort

GH_ACCOUNT=	NICMx
GH_PROJECT=	FORT-validator

GNU_CONFIGURE=	yes

SUB_FILES=	pkg-message

post-patch:
	@${REINPLACE_CMD} -e "s|%%DISTVERSION%%|${DISTVERSION}|" \
		${WRKSRC}/configure.ac
	@${REINPLACE_CMD} -e "s|/tmp/fort|${ETCDIR}|" \
		${WRKSRC}/examples/config.json
	@${REINPLACE_CMD} -e "s|/usr/local/ssl|/etc/ssl|" \
		${WRKSRC}/examples/config.json
	@${REINPLACE_CMD} -e "s|rsync\",|${LOCALBASE}/bin/rsync\",|" \
		${WRKSRC}/examples/config.json
	@${REINPLACE_CMD} -e "/\"daemon\": false,/d" \
		${WRKSRC}/examples/config.json
post-install:
	@${MKDIR} ${STAGEDIR}${ETCDIR}/repository ${STAGEDIR}${ETCDIR}/tal
	${INSTALL_DATA} ${WRKSRC}/examples/config.json \
		${STAGEDIR}${ETCDIR}/fort-config.json.sample

.include <bsd.port.mk>