Lines 6-30
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= bacula |
8 |
PORTNAME= bacula |
9 |
DISTVERSION= 2.4.4-b2 |
9 |
DISTVERSION= 2.5.42-b2 |
10 |
CATEGORIES= sysutils |
10 |
CATEGORIES= sysutils |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= bacula |
12 |
MASTER_SITE_SUBDIR= bacula |
13 |
PKGNAMESUFFIX?= -server-devel |
13 |
PKGNAMESUFFIX?= -server-devel |
14 |
|
|
|
15 |
MAINTAINER= dan@langille.org |
14 |
MAINTAINER= dan@langille.org |
16 |
COMMENT?= The network backup solution (server) - DEVELOPMENT Version |
15 |
COMMENT?= The network backup solution (server) - DEVELOPMENT Version |
17 |
|
16 |
|
18 |
CONFLICTS= bacula-server-[0-9]* bacula-client-[0-9]* |
17 |
CONFLICTS= bacula-server-[0-9]* bacula-client-[0-9]* |
19 |
|
18 |
|
20 |
UNIQUENAME?=${PORTNAME}${PKGNAMESUFFIX} |
19 |
UNIQUENAME?=${PORTNAME}${PKGNAMESUFFIX} |
|
|
20 |
.if !defined(WITH_BAT) |
21 |
.if !defined(WITH_CLIENT_ONLY) |
21 |
USE_RC_SUBR?= bacula-dir bacula-sd |
22 |
USE_RC_SUBR?= bacula-dir bacula-sd |
|
|
23 |
.endif |
24 |
|
22 |
|
25 |
|
23 |
.if defined(WITH_CLIENT_ONLY) |
26 |
.if defined(WITH_CLIENT_ONLY) |
24 |
SUB_FILES+= pkg-message.client |
27 |
SUB_FILES+= pkg-message.client |
25 |
.else |
28 |
.else |
26 |
SUB_FILES+= pkg-message.server |
29 |
SUB_FILES+= pkg-message.server |
27 |
.endif |
30 |
.endif |
|
|
31 |
.endif |
28 |
|
32 |
|
29 |
# The user/group IDs below are registered, see |
33 |
# The user/group IDs below are registered, see |
30 |
# http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#DADS-UID |
34 |
# http://www.freebsd.org/doc/en_US.ISO8859-1/books/porters-handbook/book.html#DADS-UID |
Lines 33-44
Link Here
|
33 |
# |
37 |
# |
34 |
MANCOMPRESSED= yes |
38 |
MANCOMPRESSED= yes |
35 |
GNU_CONFIGURE= yes |
39 |
GNU_CONFIGURE= yes |
36 |
CONFIGURE_ARGS= --with-tcp-wrappers=/usr/lib \ |
40 |
CONFIGURE_ARGS+= --with-tcp-wrappers=/usr/lib \ |
37 |
--enable-smartalloc \ |
41 |
--enable-smartalloc \ |
38 |
--with-working-dir=${BACULA_DIR} \ |
42 |
--with-working-dir=${BACULA_DIR} \ |
39 |
--with-scriptdir=${PREFIX}/share/${PORTNAME} \ |
43 |
--with-scriptdir=${PREFIX}/share/${PORTNAME} \ |
40 |
--with-readline=yes \ |
44 |
--with-readline=yes \ |
41 |
--disable-conio |
45 |
--disable-conio \ |
|
|
46 |
--enable-batch-insert\ |
47 |
--with-dump-email=root@localhost \ |
48 |
--with-job-email=root@localhost \ |
49 |
--with-db-name=bacula \ |
50 |
--with-db-user=bacula \ |
51 |
--with-baseport=9101 |
42 |
|
52 |
|
43 |
.if defined(WITH_CLIENT_ONLY) |
53 |
.if defined(WITH_CLIENT_ONLY) |
44 |
CONFIGURE_ARGS+= --with-fd-user=root \ |
54 |
CONFIGURE_ARGS+= --with-fd-user=root \ |
Lines 66-73
Link Here
|
66 |
.endif |
76 |
.endif |
67 |
|
77 |
|
68 |
.if defined(WITH_CLIENT_ONLY) |
78 |
.if defined(WITH_CLIENT_ONLY) |
69 |
OPTIONS+= WXCONSOLE "Build with wxGTK based GUI console" off |
79 |
OPTIONS= WXCONSOLE "Build with wxGTK based GUI console: deprecated" off |
70 |
OPTIONS+= GNOMECONSOLE "Build with GNOME based GUI console" off |
80 |
OPTIONS+= GNOMECONSOLE "Build with GNOME based GUI console: deprecated" off |
|
|
81 |
.elif defined(WITH_BAT) |
82 |
OPTIONS= |
71 |
.else |
83 |
.else |
72 |
OPTIONS= SQLITE3 "Use SqLite-3 database instead of SqLite-2" off |
84 |
OPTIONS= SQLITE3 "Use SqLite-3 database instead of SqLite-2" off |
73 |
OPTIONS+= MYSQL "Use MySQL database instead of SqLite" off |
85 |
OPTIONS+= MYSQL "Use MySQL database instead of SqLite" off |
Lines 78-84
Link Here
|
78 |
OPTIONS+= NLS "Native Language Support via gettext utilities" on |
90 |
OPTIONS+= NLS "Native Language Support via gettext utilities" on |
79 |
OPTIONS+= OPENSSL "Enable OpenSSL for encrypted communication" off |
91 |
OPTIONS+= OPENSSL "Enable OpenSSL for encrypted communication" off |
80 |
|
92 |
|
81 |
# Prepare if gnome-console is selected this must be happen before |
93 |
# Prepare if bgnome-console is selected this must be happen before |
82 |
# include of bsd.port.pre.mk! |
94 |
# include of bsd.port.pre.mk! |
83 |
WANT_GNOME= yes |
95 |
WANT_GNOME= yes |
84 |
.if defined(WITH_GNOMECONSOLE) |
96 |
.if defined(WITH_GNOMECONSOLE) |
Lines 87-92
Link Here
|
87 |
|
99 |
|
88 |
PLIST_SUB+= BACULA_DIR=${BACULA_DIR} |
100 |
PLIST_SUB+= BACULA_DIR=${BACULA_DIR} |
89 |
|
101 |
|
|
|
102 |
.if !defined(WITH_BAT) |
103 |
PLIST_SUB+= BACULA_DIR=${BACULA_DIR} |
104 |
.endif |
105 |
|
90 |
.include <bsd.port.pre.mk> |
106 |
.include <bsd.port.pre.mk> |
91 |
|
107 |
|
92 |
.if defined(WITH_NLS) |
108 |
.if defined(WITH_NLS) |
Lines 103-109
Link Here
|
103 |
|
119 |
|
104 |
PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client |
120 |
PKGDEINSTALL= ${PKGDIR}/pkg-deinstall.client |
105 |
PKGINSTALL= ${PKGDIR}/pkg-install.client |
121 |
PKGINSTALL= ${PKGDIR}/pkg-install.client |
106 |
# Build gnome-console |
122 |
# Build bgnome-console |
107 |
.if defined(WITH_GNOMECONSOLE) |
123 |
.if defined(WITH_GNOMECONSOLE) |
108 |
CONFIGURE_ARGS+= --enable-gnome |
124 |
CONFIGURE_ARGS+= --enable-gnome |
109 |
PLIST_SUB+= GNOMECONS="" |
125 |
PLIST_SUB+= GNOMECONS="" |
Lines 112-118
Link Here
|
112 |
WITHOUT_GNOME= yes |
128 |
WITHOUT_GNOME= yes |
113 |
PLIST_SUB+= GNOMECONS="@comment " |
129 |
PLIST_SUB+= GNOMECONS="@comment " |
114 |
.endif |
130 |
.endif |
115 |
# Build wx-console |
131 |
# Build bwx-console |
116 |
.if defined(WITH_WXCONSOLE) |
132 |
.if defined(WITH_WXCONSOLE) |
117 |
USE_WX= 2.4 |
133 |
USE_WX= 2.4 |
118 |
CONFIGURE_ARGS+= --enable-wx-console |
134 |
CONFIGURE_ARGS+= --enable-wx-console |
Lines 158-169
Link Here
|
158 |
CONFIGURE_ARGS+= --with-openssl |
174 |
CONFIGURE_ARGS+= --with-openssl |
159 |
.endif |
175 |
.endif |
160 |
|
176 |
|
|
|
177 |
.if !defined(WITH_BAT) |
161 |
.if defined(WITH_CLIENT_ONLY) |
178 |
.if defined(WITH_CLIENT_ONLY) |
162 |
MAN8=bacula-fd.8 bconsole.8 |
179 |
MAN8=bacula-fd.8 bconsole.8 |
163 |
.else |
180 |
.else |
164 |
MAN8=bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8 |
181 |
MAN8=bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 btape.8 btraceback.8 dbcheck.8 |
165 |
MAN1=bsmtp.1 bat.1 |
182 |
MAN1=bsmtp.1 bacula-bgnome-console.1 bacula-tray-monitor.1 bacula-bwxconsole.1 |
|
|
183 |
.endif |
166 |
.endif |
184 |
.endif |
|
|
185 |
|
167 |
MAKE_ARGS+= -E MAN8 -E MAN1 |
186 |
MAKE_ARGS+= -E MAN8 -E MAN1 |
168 |
MAKE_ENV+= MAN8="${MAN8}" MAN1="${MAN1}" |
187 |
MAKE_ENV+= MAN8="${MAN8}" MAN1="${MAN1}" |
169 |
|
188 |
|
Lines 203-208
Link Here
|
203 |
@${REINPLACE_CMD} -e '/^fd_subdirs = /s|src/filed||' -e 's|src/console||' ${WRKSRC}/Makefile.in |
222 |
@${REINPLACE_CMD} -e '/^fd_subdirs = /s|src/filed||' -e 's|src/console||' ${WRKSRC}/Makefile.in |
204 |
.endif |
223 |
.endif |
205 |
|
224 |
|
|
|
225 |
.if !target(pre-install) |
206 |
pre-install: |
226 |
pre-install: |
207 |
if [ ! -d "${BACULA_DIR}" ]; then \ |
227 |
if [ ! -d "${BACULA_DIR}" ]; then \ |
208 |
${ECHO_CMD} "creating ${BACULA_DIR}" ; \ |
228 |
${ECHO_CMD} "creating ${BACULA_DIR}" ; \ |
Lines 214-220
Link Here
|
214 |
# Extend /etc/services and install UID/GID |
234 |
# Extend /etc/services and install UID/GID |
215 |
@ ${SETENV} PKG_PREFIX=${PREFIX} \ |
235 |
@ ${SETENV} PKG_PREFIX=${PREFIX} \ |
216 |
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL |
236 |
${SH} ${PKGINSTALL} ${PORTNAME} PRE-INSTALL |
|
|
237 |
.endif |
238 |
|
217 |
|
239 |
|
|
|
240 |
.if !target(post-install) |
218 |
post-install: |
241 |
post-install: |
219 |
.if defined(WITH_CLIENT_ONLY) |
242 |
.if defined(WITH_CLIENT_ONLY) |
220 |
# Extend only /etc/services |
243 |
# Extend only /etc/services |
Lines 230-248
Link Here
|
230 |
${ECHO_CMD} "etc/bconsole.conf.sample" >> ${TMPPLIST}; \ |
253 |
${ECHO_CMD} "etc/bconsole.conf.sample" >> ${TMPPLIST}; \ |
231 |
fi |
254 |
fi |
232 |
.if defined(WITH_WXCONSOLE) |
255 |
.if defined(WITH_WXCONSOLE) |
233 |
if [ -f ${PREFIX}/etc/wx-console.conf.new ]; then \ |
256 |
if [ -f ${PREFIX}/etc/bwx-console.conf.new ]; then \ |
234 |
${ECHO_CMD} "etc/wx-console.conf.new" >> ${TMPPLIST}; \ |
257 |
${ECHO_CMD} "etc/bwx-console.conf.new" >> ${TMPPLIST}; \ |
235 |
elif [ -f ${PREFIX}/etc/wx-console.conf ]; |
258 |
elif [ -f ${PREFIX}/etc/bwx-console.conf ]; then \ |
236 |
${MV} ${PREFIX}/etc/wx-console.conf ${PREFIX}/etc/wx-console.conf.sample; \ |
259 |
${MV} ${PREFIX}/etc/bwx-console.conf ${PREFIX}/etc/bwx-console.conf.sample; \ |
237 |
${ECHO_CMD} "etc/wx-console.conf.sample" >> ${TMPPLIST}; \ |
260 |
${ECHO_CMD} "etc/bwx-console.conf.sample" >> ${TMPPLIST}; \ |
238 |
fi |
261 |
fi |
239 |
.endif |
262 |
.endif |
240 |
.if defined(WITH_GNOMECONSOLE) |
263 |
.if defined(WITH_GNOMECONSOLE) |
241 |
if [ -f ${PREFIX}/etc/gnome-console.conf.new ]; then \ |
264 |
if [ -f ${PREFIX}/etc/bgnome-console.conf.new ]; then \ |
242 |
${ECHO_CMD} "etc/gnome-console.conf.new" >> ${TMPPLIST}; \ |
265 |
${ECHO_CMD} "etc/bgnome-console.conf.new" >> ${TMPPLIST}; \ |
243 |
elif [ -f ${PREFIX}/etc/gnome-console.conf ]; then \ |
266 |
elif [ -f ${PREFIX}/etc/bgnome-console.conf ]; then \ |
244 |
${MV} ${PREFIX}/etc/gnome-console.conf ${PREFIX}/etc/gnome-console.conf.sample; \ |
267 |
${MV} ${PREFIX}/etc/bgnome-console.conf ${PREFIX}/etc/bgnome-console.conf.sample; \ |
245 |
${ECHO_CMD} "etc/gnome-console.conf.sample" >> ${TMPPLIST}; \ |
268 |
${ECHO_CMD} "etc/bgnome-console.conf.sample" >> ${TMPPLIST}; \ |
246 |
fi |
269 |
fi |
247 |
.endif |
270 |
.endif |
248 |
|
271 |
|
Lines 274-278
Link Here
|
274 |
done |
297 |
done |
275 |
|
298 |
|
276 |
@${CAT} ${PKGMESSAGE} |
299 |
@${CAT} ${PKGMESSAGE} |
|
|
300 |
.endif |
277 |
|
301 |
|
278 |
.include <bsd.port.post.mk> |
302 |
.include <bsd.port.post.mk> |