summaryrefslogtreecommitdiff
path: root/sysutils/burp-devel/Makefile
blob: e41a814ffcba6fdfceafe052a8d9f54bb3733637 (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
PORTNAME=	burp
PORTVERSION=	2.5.4
CATEGORIES=	sysutils
MASTER_SITES=	https://github.com/grke/burp/releases/download/${PORTVERSION}/
PKGNAMESUFFIX=	-devel

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Network backup and restore program (development)
WWW=		https://burp.grke.org/

LICENSE=	AGPLv3 PD
LICENSE_COMB=	multi
LICENSE_FILE=	${WRKSRC}/LICENSE

BUILD_DEPENDS=	${LOCALBASE}/include/uthash.h:devel/uthash \
		${LOCALBASE}/include/yajl/yajl_common.h:devel/yajl
LIB_DEPENDS=	librsync.so:net/librsync
RUN_DEPENDS=	bash:shells/bash

USES=		compiler:c11 cpe libtool ncurses pkgconfig ssl tar:bz2

CONFIGURE_ARGS=	--sysconfdir=${ETCDIR}
GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-all
USE_RC_SUBR=	burp

PLIST_SUB=	PORTVERSION=${PORTVERSION}

CONFLICTS_INSTALL=	burp

CPE_VENDOR=	burp_project

OPTIONS_DEFINE=	IPV6
IPV6_CONFIGURE_ENABLE=	ipv6

post-install:
.for file in CA.cnf burp.conf burp-server.conf clientconfdir/testclient
	${MV} ${STAGEDIR}${ETCDIR}/${file} ${STAGEDIR}${ETCDIR}/${file}.sample
.endfor

.include <bsd.port.mk>