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