blob: 065f0b22d2b3bca0105dc40e3d7f5aa7c5c08330 (
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
|
# New ports collection makefile for: bacula
# Date created: 24 February 2003
# Whom: Dmitry Sivachenko <demon@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= bacula
PORTVERSION= 1.30a
PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= bacula
MAINTAINER= demon@FreeBSD.org
COMMENT= The network backup solution
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-smartalloc \
--with-working-dir=/var/db/bacula
.if defined(WITH_SQLITE)
CONFIGURE_ARGS+= --with-sqlite=${LOCALBASE}
LIB_DEPENDS+= sqlite.2:${PORTSDIR}/databases/sqlite
DBTYPE= sqlite
.else
CONFIGURE_ARGS+= --with-mysql=${LOCALBASE}
LIB_DEPENDS+= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
DBTYPE= mysql
.endif
PLIST_SUB+= DBTYPE=${DBTYPE}
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}/html-manual
${INSTALL_DATA} ${WRKSRC}/doc/bacula.pdf ${DOCSDIR}
cd ${WRKSRC}/doc && ${FIND} html-manual | \
cpio -pdm -L -R root:wheel ${DOCSDIR}
.endif
.include <bsd.port.mk>
|