Lines 2-28
Link Here
|
2 |
# Date created: 24 February 2003 |
2 |
# Date created: 24 February 2003 |
3 |
# Whom: Dmitry Sivachenko <demon@FreeBSD.org> |
3 |
# Whom: Dmitry Sivachenko <demon@FreeBSD.org> |
4 |
# |
4 |
# |
5 |
# $FreeBSD: ports/sysutils/bacula-server/Makefile,v 1.124 2010/05/31 02:00:55 ade Exp $ |
5 |
# $FreeBSD: ports/sysutils/bacula-server/Makefile,v 1.123 2010/02/12 14:20:04 miwi Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= bacula |
8 |
PORTNAME= bacula |
9 |
DISTVERSION= 5.0.0 |
9 |
DISTVERSION= 5.0.2 |
10 |
PORTREVISION= 1 |
|
|
11 |
CATEGORIES?= sysutils |
10 |
CATEGORIES?= sysutils |
12 |
MASTER_SITES= SF/bacula/bacula/${PORTVERSION} |
11 |
MASTER_SITES= SF/bacula/bacula/${PORTVERSION} |
13 |
|
12 |
|
14 |
MAINTAINER= dan@langille.org |
13 |
MAINTAINER= dan@langille.org |
15 |
COMMENT?= The network backup solution (server) |
14 |
COMMENT?= The network backup solution (server) |
16 |
|
15 |
|
17 |
PKGNAMESUFFIX?= -server |
|
|
18 |
|
19 |
CONFLICTS= bacula-server-devel-[0-9]* bacula-client-devel-[0-9]* bacula-docs-devel-[0-9]* |
16 |
CONFLICTS= bacula-server-devel-[0-9]* bacula-client-devel-[0-9]* bacula-docs-devel-[0-9]* |
20 |
|
17 |
|
21 |
UNIQUENAME?=${PORTNAME}${PKGNAMESUFFIX} |
18 |
UNIQUENAME?= ${PORTNAME}${PKGNAMESUFFIX} |
22 |
|
19 |
|
23 |
DISTFILES= ${PORTNAME}-${PORTVERSION}.tar.gz |
20 |
PLIST_SUB+= MAJOR=${PORTVERSION:R:R} |
|
|
21 |
|
22 |
GNU_CONFIGURE= yes |
23 |
|
24 |
CONFIGURE_ENV+= CPPFLAGS="-I/usr/include/readline -I${LOCALBASE}/include" \ |
25 |
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
26 |
PTHREAD_LIBS="${PTHREAD_LIBS}" |
27 |
|
28 |
.if !defined(WITH_BAT) && !defined(WITH_NAGIOS_CHECK_ONLY) #Till end of the file |
29 |
PKGNAMESUFFIX?= -server |
24 |
|
30 |
|
25 |
.if !defined(WITH_BAT) |
|
|
26 |
PORTDOCS= VERIFYING \ |
31 |
PORTDOCS= VERIFYING \ |
27 |
technotes \ |
32 |
technotes \ |
28 |
ChangeLog \ |
33 |
ChangeLog \ |
Lines 30-38
Link Here
|
30 |
ReleaseNotes \ |
35 |
ReleaseNotes \ |
31 |
LICENSE \ |
36 |
LICENSE \ |
32 |
INSTALL |
37 |
INSTALL |
33 |
.endif |
|
|
34 |
|
38 |
|
35 |
.if !defined(WITH_BAT) |
|
|
36 |
.if !defined(WITH_CLIENT_ONLY) |
39 |
.if !defined(WITH_CLIENT_ONLY) |
37 |
USE_RC_SUBR?= bacula-dir bacula-sd |
40 |
USE_RC_SUBR?= bacula-dir bacula-sd |
38 |
.endif |
41 |
.endif |
Lines 42-48
Link Here
|
42 |
.else |
45 |
.else |
43 |
SUB_FILES+= pkg-message.server |
46 |
SUB_FILES+= pkg-message.server |
44 |
.endif |
47 |
.endif |
45 |
.endif |
|
|
46 |
|
48 |
|
47 |
# The user/group IDs below are registered, see |
49 |
# The user/group IDs below are registered, see |
48 |
# http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#DADS-UID |
50 |
# http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#DADS-UID |
Lines 50-56
Link Here
|
50 |
BACULA_DIR?=/var/db/bacula |
52 |
BACULA_DIR?=/var/db/bacula |
51 |
# |
53 |
# |
52 |
MANCOMPRESSED= yes |
54 |
MANCOMPRESSED= yes |
53 |
GNU_CONFIGURE= yes |
|
|
54 |
CONFIGURE_ARGS+= --with-tcp-wrappers=/usr/lib \ |
55 |
CONFIGURE_ARGS+= --with-tcp-wrappers=/usr/lib \ |
55 |
--enable-smartalloc \ |
56 |
--enable-smartalloc \ |
56 |
--with-working-dir=${BACULA_DIR} \ |
57 |
--with-working-dir=${BACULA_DIR} \ |
Lines 64-69
Link Here
|
64 |
--with-dump-email=root@localhost \ |
65 |
--with-dump-email=root@localhost \ |
65 |
--with-job-email=root@localhost \ |
66 |
--with-job-email=root@localhost \ |
66 |
--with-db-name=bacula \ |
67 |
--with-db-name=bacula \ |
|
|
68 |
--with-sbin-perm=755 \ |
67 |
--with-db-user=bacula \ |
69 |
--with-db-user=bacula \ |
68 |
--with-baseport=9101 |
70 |
--with-baseport=9101 |
69 |
|
71 |
|
Lines 77-115
Link Here
|
77 |
--with-sd-group=operator |
79 |
--with-sd-group=operator |
78 |
.endif |
80 |
.endif |
79 |
|
81 |
|
80 |
CONFIGURE_ENV+= CPPFLAGS="-I/usr/include/readline -I${LOCALBASE}/include" \ |
|
|
81 |
LDFLAGS="-L${LOCALBASE}/lib" \ |
82 |
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \ |
83 |
PTHREAD_LIBS="${PTHREAD_LIBS}" |
84 |
|
85 |
.for opt in ${ALL_OPTIONS} |
86 |
.if defined(WITH_${opt}) |
87 |
BATCH= yes |
88 |
.endif |
89 |
.endfor |
90 |
|
91 |
.if !defined(BATCH) |
92 |
IS_INTERACTIVE= yes |
93 |
.endif |
94 |
|
95 |
.if defined(WITH_CLIENT_ONLY) |
82 |
.if defined(WITH_CLIENT_ONLY) |
96 |
OPTIONS= WXCONSOLE "Build with wxGTK based GUI console: deprecated" off |
83 |
OPTIONS= WXCONSOLE "Build with wxGTK based GUI console: deprecated" off |
97 |
OPTIONS+= SFDAEMON "Build with staticly compiled file daemon" off |
84 |
OPTIONS+= SFDAEMON "Build with staticly compiled file daemon" off |
98 |
.elif defined(WITH_BAT) |
|
|
99 |
OPTIONS= |
100 |
.else |
85 |
.else |
101 |
OPTIONS= SQLITE3 "Use SqLite-3 database instead of SqLite-2" off |
86 |
OPTIONS= SQLITE3 "Use SqLite-3 database instead of SqLite-2" off |
102 |
OPTIONS+= MYSQL "Use MySQL database instead of SqLite" off |
87 |
OPTIONS+= MYSQL "Use MySQL database instead of SqLite" off |
103 |
OPTIONS+= POSTGRESQL "Use PostgreSQL database instead of SqLite" off |
88 |
OPTIONS+= POSTGRESQL "Use PostgreSQL database instead of SqLite" off |
104 |
OPTIONS+= MTX "Install mtx for control of autochanger devices" off |
89 |
OPTIONS+= MTX "Install mtx for control of autochanger devices" off |
105 |
.endif |
90 |
.endif |
106 |
|
|
|
107 |
OPTIONS+= NLS "Native Language Support via gettext utilities" on |
91 |
OPTIONS+= NLS "Native Language Support via gettext utilities" on |
108 |
OPTIONS+= OPENSSL "Enable OpenSSL for encrypted communication" off |
92 |
OPTIONS+= OPENSSL "Enable OpenSSL for encrypted communication" off |
109 |
|
93 |
|
110 |
.if !defined(WITH_BAT) |
|
|
111 |
PLIST_SUB+= BACULA_DIR=${BACULA_DIR} |
94 |
PLIST_SUB+= BACULA_DIR=${BACULA_DIR} |
112 |
.endif |
|
|
113 |
|
95 |
|
114 |
.include <bsd.port.pre.mk> |
96 |
.include <bsd.port.pre.mk> |
115 |
|
97 |
|
Lines 134-142
Link Here
|
134 |
# Build a static fd binary. |
116 |
# Build a static fd binary. |
135 |
.if defined(WITH_SFDAEMON) |
117 |
.if defined(WITH_SFDAEMON) |
136 |
CONFIGURE_ARGS+= --enable-static-fd |
118 |
CONFIGURE_ARGS+= --enable-static-fd |
|
|
119 |
CONFIGURE_ARGS+= --disable-libtool |
137 |
PLIST_SUB+= SFDAEMON="" |
120 |
PLIST_SUB+= SFDAEMON="" |
|
|
121 |
PLIST_SUB+= NOSF="@comment " |
138 |
.else |
122 |
.else |
139 |
PLIST_SUB+= SFDAEMON="@comment " |
123 |
PLIST_SUB+= SFDAEMON="@comment " |
|
|
124 |
PLIST_SUB+= NOSF="" |
140 |
.endif |
125 |
.endif |
141 |
# Build bwx-console |
126 |
# Build bwx-console |
142 |
.if defined(WITH_WXCONSOLE) |
127 |
.if defined(WITH_WXCONSOLE) |
Lines 178-204
Link Here
|
178 |
CONFIGURE_ARGS+= --with-openssl |
163 |
CONFIGURE_ARGS+= --with-openssl |
179 |
.endif |
164 |
.endif |
180 |
|
165 |
|
181 |
.if !defined(WITH_BAT) |
|
|
182 |
.if defined(WITH_CLIENT_ONLY) |
166 |
.if defined(WITH_CLIENT_ONLY) |
183 |
MAN8=bacula-fd.8 bconsole.8 |
167 |
MAN8=bacula-fd.8 bconsole.8 |
184 |
.else |
168 |
.else |
185 |
MAN8=bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8 |
169 |
MAN8=bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8 |
186 |
MAN1=bsmtp.1 bacula-tray-monitor.1 bacula-bwxconsole.1 |
170 |
MAN1=bsmtp.1 bacula-tray-monitor.1 bacula-bwxconsole.1 |
187 |
.endif |
171 |
.endif |
188 |
.endif |
|
|
189 |
|
172 |
|
190 |
MAKE_ARGS+= -E MAN8 -E MAN1 |
173 |
MAKE_ARGS+= -E MAN8 -E MAN1 |
191 |
MAKE_ENV+= MAN8="${MAN8}" MAN1="${MAN1}" |
174 |
MAKE_ENV+= MAN8="${MAN8}" MAN1="${MAN1}" |
192 |
|
175 |
|
193 |
pre-everything:: |
176 |
pre-everything:: |
194 |
.if !defined(WITH_CLIENT_ONLY) |
177 |
.if !defined(WITH_CLIENT_ONLY) |
195 |
@${ECHO_MSG} "You may use the following build options (or make config):" |
178 |
@${ECHO_MSG} "You may use the following build options (or make config):" |
196 |
@${ECHO_MSG} "" |
179 |
@${ECHO_MSG} "" |
197 |
@${ECHO_MSG} " WITH_CLIENT_ONLY=yes if you only want the file daemon." |
180 |
@${ECHO_MSG} " WITH_CLIENT_ONLY=yes if you only want the file daemon." |
198 |
@${ECHO_MSG} " WITH_WXCONSOLE=yes if you only want a wxGTK based GUI console." |
181 |
@${ECHO_MSG} " WITH_WXCONSOLE=yes if you only want a wxGTK based GUI console." |
199 |
@${ECHO_MSG} " WITH_MTX=yes if you want to use mtx instead of chio for autochanger control." |
182 |
@${ECHO_MSG} " WITH_MTX=yes if you want to use mtx instead of chio for autochanger control." |
200 |
@${ECHO_MSG} " WITH_SQLITE3=yes if you want SqLite-3 instead of SqLite-2 as the database." |
183 |
@${ECHO_MSG} " WITH_SQLITE3=yes if you want SqLite-3 instead of SqLite-2 as the database." |
201 |
@${ECHO_MSG} " WITH_SFDAEMON=yes if you want staticly compiled file daemon (client)." |
|
|
202 |
.if !defined(WITH_MYSQL) && !defined(WITH_POSTGRESQL) |
184 |
.if !defined(WITH_MYSQL) && !defined(WITH_POSTGRESQL) |
203 |
@${ECHO_MSG} " WITH_MYSQL=yes if you want MySQL instead of SqLite as the database." |
185 |
@${ECHO_MSG} " WITH_MYSQL=yes if you want MySQL instead of SqLite as the database." |
204 |
@${ECHO_MSG} " WITH_POSTGRESQL=yes if you want PostgreSQL instead of SqLite as the database." |
186 |
@${ECHO_MSG} " WITH_POSTGRESQL=yes if you want PostgreSQL instead of SqLite as the database." |
Lines 210-215
Link Here
|
210 |
@${ECHO_MSG} "===> Using ${DBTYPE} as the bacula database." |
192 |
@${ECHO_MSG} "===> Using ${DBTYPE} as the bacula database." |
211 |
@${ECHO_MSG} "" |
193 |
@${ECHO_MSG} "" |
212 |
.else |
194 |
.else |
|
|
195 |
@${ECHO_MSG} "You may use the following build options (or make config):" |
196 |
@${ECHO_MSG} " WITH_SFDAEMON=yes if you want staticly compiled file daemon (client)." |
213 |
@${ECHO_MSG} "===> Building file daemon only." |
197 |
@${ECHO_MSG} "===> Building file daemon only." |
214 |
.endif |
198 |
.endif |
215 |
|
199 |
|
Lines 308-310
Link Here
|
308 |
.endif |
292 |
.endif |
309 |
|
293 |
|
310 |
.include <bsd.port.post.mk> |
294 |
.include <bsd.port.post.mk> |
|
|
295 |
.endif # if !defined(WITH_BAT) && !defined(WITH_NAGIOS_CHECK_ONLY) |