summaryrefslogtreecommitdiff
path: root/sysutils/burp/Makefile
blob: ded26214b347373a01066a27463488b964bf5cee (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
# $NetBSD: Makefile,v 1.5 2016/09/01 16:18:07 wiz Exp $

DISTNAME=	burp-1.4.40
PKGREVISION=	2
CATEGORIES=	sysutils archivers
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=burp/}
EXTRACT_SUFX=	.tar.bz2

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://burp.grke.net/
COMMENT=	Networked backup and restore program
LICENSE=	gnu-agpl-v3

USE_LANGUAGES=	c c++
GNU_CONFIGURE=	yes

PKG_SYSCONFSUBDIR=	burp

SUBST_CLASSES+=		dirs
SUBST_STAGE.dirs=	pre-install
SUBST_MESSAGE.dirs=	Fixing directories
SUBST_FILES.dirs=	configs/server/burp.conf \
			configs/server/summary_script \
			configs/client/burp.conf \
			configs/CA/CA.cnf \
			configs/CA/burp_ca \
			manpages/*.8
SUBST_SED.dirs=	-e 's,@LIBEXECDIR@,${PREFIX}/libexec/burp,' \
		-e 's,@PKG_SYSCONFDIR@,${PKG_SYSCONFDIR},' \
		-e 's,@SBINDIR@,${PREFIX}/sbin,'

REPLACE_SH+=	configs/certs/CA/burp_ca \
		configs/server/notify_script \
		configs/server/timer_script

CONFIGURE_ARGS+=	--sysconfdir=${PKG_SYSCONFDIR} \
			--mandir=${PREFIX}/${PKGMANDIR} \
			--sbindir=${PREFIX}/sbin

INSTALL_MAKE_FLAGS+=	sysconfdir=${PREFIX}/share/examples/burp \
			libexecdir=${PREFIX}/libexec/burp

.include "../../devel/popt/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"
.include "../../net/librsync/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"