Lines 2-9
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= bacula |
4 |
PORTNAME= bacula |
5 |
DISTVERSION= 5.2.12 |
5 |
DISTVERSION= 7.0.4 |
6 |
PORTREVISION?= 6 |
6 |
PORTREVISION?= 1 |
7 |
CATEGORIES?= sysutils |
7 |
CATEGORIES?= sysutils |
8 |
MASTER_SITES= SF/bacula/bacula/${PORTVERSION} |
8 |
MASTER_SITES= SF/bacula/bacula/${PORTVERSION} |
9 |
PKGNAMEPREFIX?= # |
9 |
PKGNAMEPREFIX?= # |
Lines 12-19
Link Here
|
12 |
MAINTAINER= dan@langille.org |
12 |
MAINTAINER= dan@langille.org |
13 |
COMMENT?= Network backup solution (server) |
13 |
COMMENT?= Network backup solution (server) |
14 |
|
14 |
|
15 |
USES+= libtool:keepla |
15 |
USES+= libtool:oldver |
16 |
|
16 |
|
|
|
17 |
CONFLICTS_BUILD= bacula-*-5.2.12_3 |
18 |
|
17 |
LIB_DEPENDS+= liblzo2.so:${PORTSDIR}/archivers/lzo2 |
19 |
LIB_DEPENDS+= liblzo2.so:${PORTSDIR}/archivers/lzo2 |
18 |
|
20 |
|
19 |
USERS= bacula |
21 |
USERS= bacula |
Lines 31-40
Link Here
|
31 |
OPTIONS_DEFAULT?= NLS OPENSSL PGSQL |
33 |
OPTIONS_DEFAULT?= NLS OPENSSL PGSQL |
32 |
MTX_DESC= Install mtx for control of autochanger devices |
34 |
MTX_DESC= Install mtx for control of autochanger devices |
33 |
|
35 |
|
34 |
OPENSSL_USE= OPENSSL=yes |
|
|
35 |
OPENSSL_CONFIGURE_ON= --with-openssl=${OPENSSLBASE} |
36 |
OPENSSL_CONFIGURE_OFF= --with-openssl="no" |
37 |
|
38 |
.if ${PKGNAMESUFFIX} == "-client" || ${PKGNAMESUFFIX} == "-server" #Till end of the file |
36 |
.if ${PKGNAMESUFFIX} == "-client" || ${PKGNAMESUFFIX} == "-server" #Till end of the file |
39 |
|
37 |
|
40 |
PYTHON_USE= PYTHON=yes |
38 |
PYTHON_USE= PYTHON=yes |
Lines 66-71
Link Here
|
66 |
--with-db-name=bacula \ |
64 |
--with-db-name=bacula \ |
67 |
--with-sbin-perm=755 \ |
65 |
--with-sbin-perm=755 \ |
68 |
--with-db-user=bacula \ |
66 |
--with-db-user=bacula \ |
|
|
67 |
--with-logdir=/var/log \ |
69 |
--with-baseport=9101 |
68 |
--with-baseport=9101 |
70 |
|
69 |
|
71 |
.if defined(WITH_CLIENT_ONLY) |
70 |
.if defined(WITH_CLIENT_ONLY) |
Lines 111-121
Link Here
|
111 |
# Server default database |
110 |
# Server default database |
112 |
|
111 |
|
113 |
MYSQL_CONFIGURE_ON= --with-mysql=yes |
112 |
MYSQL_CONFIGURE_ON= --with-mysql=yes |
114 |
MYSQL_USE= MYSQL=yes |
113 |
MYSQL_USE= MYSQL=yes |
115 |
SQLITE3_CONFIGURE_ON= --with-sqlite3=yes |
114 |
SQLITE3_CONFIGURE_ON= --with-sqlite3=yes |
116 |
SQLITE3_LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 |
115 |
SQLITE3_LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 |
117 |
PGSQL_CONFIGURE_ON= --with-postgresql=yes |
116 |
PGSQL_CONFIGURE_ON= --with-postgresql=yes |
118 |
PGSQL_USES= pgsql |
117 |
PGSQL_USES= pgsql |
119 |
|
118 |
|
120 |
MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:${PORTSDIR}/misc/mtx |
119 |
MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:${PORTSDIR}/misc/mtx |
121 |
|
120 |
|
Lines 131-172
Link Here
|
131 |
SUB_LIST+= REQ_MYSQL="" REQ_PGSQL=postgresql |
130 |
SUB_LIST+= REQ_MYSQL="" REQ_PGSQL=postgresql |
132 |
.endif |
131 |
.endif |
133 |
PLIST_SUB+= DBTYPE=${DBTYPE} |
132 |
PLIST_SUB+= DBTYPE=${DBTYPE} |
134 |
|
|
|
135 |
.endif |
133 |
.endif |
136 |
|
134 |
|
137 |
.if defined(WITH_CLIENT_ONLY) |
|
|
138 |
MP8+= bacula-fd.8 bconsole.8 |
139 |
.else |
140 |
MP8+= bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 \ |
141 |
btape.8 btraceback.8 dbcheck.8 bwild.8 bregex.8 |
142 |
MP1+= bsmtp.1 bacula-tray-monitor.1 bacula-bwxconsole.1 |
143 |
.endif |
144 |
|
145 |
MAKE_ENV+= MAN8="${MP8}" MAN1="${MP1}" |
135 |
MAKE_ENV+= MAN8="${MP8}" MAN1="${MP1}" |
146 |
|
136 |
|
147 |
post-patch: |
137 |
post-patch: |
|
|
138 |
@${ECHO_MSG} "@${REINPLACE_CMD}" |
139 |
@${ECHO_MSG} stuff: ${PORTVERSION:R:R} |
140 |
@${ECHO_MSG} stuff: "${WRKSRC}/src/cats/Makefile.in" |
141 |
@${REINPLACE_CMD} -e 's|%%LIB_RELEASE%%|${PORTVERSION:R:R}|' ${WRKSRC}/src/cats/Makefile.in ${WRKSRC}/src/findlib/Makefile.in ${WRKSRC}/src/lib/Makefile.in |
148 |
# This port does not install docs. See bacula-docs for that |
142 |
# This port does not install docs. See bacula-docs for that |
149 |
${REINPLACE_CMD} -e '/docdir/d' ${WRKSRC}/Makefile.in |
143 |
${REINPLACE_CMD} -e '/docdir/d' ${WRKSRC}/Makefile.in |
150 |
# Change $(ECHO) to echo in some Makefile.in files |
144 |
# Change $(ECHO) to echo in some Makefile.in files |
151 |
@${REINPLACE_CMD} -e 's|$$(ECHO)|echo|g' ${WRKSRC}/src/filed/Makefile.in \ |
145 |
@${REINPLACE_CMD} -e 's|$$(ECHO)|echo|g' ${WRKSRC}/src/filed/Makefile.in ${WRKSRC}/src/console/Makefile.in |
152 |
${WRKSRC}/src/console/Makefile.in |
|
|
153 |
# Default bconsole.conf is in ${ETCDIR} |
146 |
# Default bconsole.conf is in ${ETCDIR} |
154 |
@${REINPLACE_CMD} -e 's|./bconsole.conf|${ETCDIR}/bconsole.conf|g' ${WRKSRC}/src/console/console.c |
147 |
@${REINPLACE_CMD} -e 's|./bconsole.conf|${ETCDIR}/bconsole.conf|g' ${WRKSRC}/src/console/console.c |
155 |
@${REINPLACE_CMD} -e 's|^MAN8 =|MAN8 ?=|g' -e 's|^MAN1 =|MAN1 ?=|g' ${WRKSRC}/manpages/Makefile.in |
|
|
156 |
.if defined(WITH_CLIENT_ONLY) |
157 |
# In client port only install startup script out of script dir (see below post-install) |
158 |
# Dont mkdir ${PREFIX}/share/bacula cause it's empty |
159 |
@${REINPLACE_CMD} -e 's|^\(fd_subdirs = .*\)scripts\(.*\)|\1\2|g' ${WRKSRC}/Makefile.in |
160 |
${REINPLACE_CMD} -e 's|\(.*$${MKDIR} $${DESTDIR}$${scriptdir}\)|#\1|g' ${WRKSRC}/Makefile.in |
161 |
.else |
162 |
# In server port don't install filed |
163 |
@${REINPLACE_CMD} -e '/^fd_subdirs = /s|src/filed||' -e 's|src/console||' \ |
164 |
-e 's|src/lib||' -e 's|src/findlib||' -e 's|@FD_PLUGIN_DIR@||' ${WRKSRC}/Makefile.in |
165 |
@${REINPLACE_CMD} -e 's|../lib/|$$(LOCALBASE)/lib/|g' -e 's|../findlib/|$$(LOCALBASE)/lib/|g' ${WRKSRC}/src/dird/Makefile.in \ |
166 |
${WRKSRC}/src/stored/Makefile.in ${WRKSRC}/src/tools/Makefile.in |
167 |
@${REINPLACE_CMD} -e 's|fd_plugins.h|filed/fd_plugins.h|g' -e 's|dir_plugins.h|dird/dir_plugins.h|g' -e 's|stored.h|stored/stored.h|g' \ |
168 |
${WRKSRC}/src/tools/bpluginfo.c |
169 |
.endif |
170 |
|
148 |
|
171 |
pre-install: |
149 |
pre-install: |
172 |
${MKDIR} ${STAGEDIR}${BACULA_DIR} |
150 |
${MKDIR} ${STAGEDIR}${BACULA_DIR} |
Lines 174-183
Link Here
|
174 |
.if !target(post-install) |
152 |
.if !target(post-install) |
175 |
post-install: |
153 |
post-install: |
176 |
.if defined(WITH_CLIENT_ONLY) |
154 |
.if defined(WITH_CLIENT_ONLY) |
177 |
${MV} ${STAGEDIR}${ETCDIR}/bconsole.conf ${STAGEDIR}${ETCDIR}/bconsole.conf.sample |
155 |
${MV} ${STAGEDIR}${ETCDIR}/bconsole.conf ${STAGEDIR}${ETCDIR}/bconsole.conf.sample; |
178 |
.else |
156 |
.else |
179 |
${INSTALL_SCRIPT} ${FILESDIR}/chio-bacula ${STAGEDIR}${PREFIX}/sbin |
157 |
${INSTALL_SCRIPT} ${FILESDIR}/chio-bacula ${STAGEDIR}${PREFIX}/sbin |
180 |
${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${STAGEDIR}${ETCDIR}/bacula-barcodes.sample |
158 |
${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${STAGEDIR}${ETCDIR}/bacula-barcodes.samples |
181 |
${CHMOD} o+x ${STAGEDIR}${PREFIX}/sbin/bsmtp |
159 |
${CHMOD} o+x ${STAGEDIR}${PREFIX}/sbin/bsmtp |
182 |
.endif |
160 |
.endif |
183 |
for na in ${CONFFILES}; do \ |
161 |
for na in ${CONFFILES}; do \ |