diff options
author | William Grzybowski <wg@FreeBSD.org> | 2014-08-07 19:24:11 +0000 |
---|---|---|
committer | William Grzybowski <wg@FreeBSD.org> | 2014-08-07 19:24:11 +0000 |
commit | 4f5632ab09692ef532316297cac0155645d688ca (patch) | |
tree | 066bb647fcc8b12df75ec404f33b4d15a03d53f8 /sysutils/bacula-server | |
parent | d8e5efd339004124efb1a710db697b6d97dd9757 (diff) | |
download | ports-4f5632ab09692ef532316297cac0155645d688ca.tar.gz ports-4f5632ab09692ef532316297cac0155645d688ca.zip |
Notes
Diffstat (limited to 'sysutils/bacula-server')
20 files changed, 102 insertions, 443 deletions
diff --git a/sysutils/bacula-server/Makefile b/sysutils/bacula-server/Makefile index c9958e6f5cfa..0cdcf63e1c00 100644 --- a/sysutils/bacula-server/Makefile +++ b/sysutils/bacula-server/Makefile @@ -2,8 +2,8 @@ # $FreeBSD$ PORTNAME= bacula -DISTVERSION= 5.2.12 -PORTREVISION?= 6 +DISTVERSION= 7.0.4 +PORTREVISION?= 0 CATEGORIES?= sysutils MASTER_SITES= SF/bacula/bacula/${PORTVERSION} PKGNAMEPREFIX?= # @@ -12,29 +12,27 @@ PKGNAMESUFFIX?= -server MAINTAINER= dan@langille.org COMMENT?= Network backup solution (server) -USES+= libtool:keepla +USES+= libtool:oldver + +CONFLICTS?= bacula5-server-* LIB_DEPENDS+= liblzo2.so:${PORTSDIR}/archivers/lzo2 USERS= bacula GROUPS= ${USERS} -PLIST_SUB+= MAJOR=${PORTVERSION:R:R} +PLIST_SUB+= LIB_VERSION=${PORTVERSION} GNU_CONFIGURE= yes USE_LDCONFIG= yes CPPFLAGS+= -I/usr/include/readline -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib +#LDFLAGS+= -L${LOCALBASE}/lib OPTIONS_DEFINE?= SQLITE3 MYSQL PGSQL MTX PYTHON NLS OPENSSL OPTIONS_DEFAULT?= NLS OPENSSL PGSQL MTX_DESC= Install mtx for control of autochanger devices -OPENSSL_USE= OPENSSL=yes -OPENSSL_CONFIGURE_ON= --with-openssl=${OPENSSLBASE} -OPENSSL_CONFIGURE_OFF= --with-openssl="no" - .if ${PKGNAMESUFFIX} == "-client" || ${PKGNAMESUFFIX} == "-server" #Till end of the file PYTHON_USE= PYTHON=yes @@ -66,6 +64,7 @@ CONFIGURE_ARGS+=--with-tcp-wrappers=/usr/lib \ --with-db-name=bacula \ --with-sbin-perm=755 \ --with-db-user=bacula \ + --with-logdir=/var/log \ --with-baseport=9101 .if defined(WITH_CLIENT_ONLY) @@ -111,11 +110,11 @@ CONFFILES= sd dir # Server default database MYSQL_CONFIGURE_ON= --with-mysql=yes -MYSQL_USE= MYSQL=yes +MYSQL_USE= MYSQL=yes SQLITE3_CONFIGURE_ON= --with-sqlite3=yes SQLITE3_LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3 PGSQL_CONFIGURE_ON= --with-postgresql=yes -PGSQL_USES= pgsql +PGSQL_USES= pgsql MTX_RUN_DEPENDS= ${LOCALBASE}/sbin/mtx:${PORTSDIR}/misc/mtx @@ -131,43 +130,41 @@ DBTYPE= postgresql SUB_LIST+= REQ_MYSQL="" REQ_PGSQL=postgresql .endif PLIST_SUB+= DBTYPE=${DBTYPE} - .endif .if defined(WITH_CLIENT_ONLY) -MP8+= bacula-fd.8 bconsole.8 +MP8+= bacula.8 bacula-fd.8 bconsole.8 .else -MP8+= bacula.8 bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 \ +MP8+= bacula-dir.8 bacula-sd.8 bcopy.8 bextract.8 bls.8 bscan.8 \ btape.8 btraceback.8 dbcheck.8 bwild.8 bregex.8 -MP1+= bsmtp.1 bacula-tray-monitor.1 bacula-bwxconsole.1 +MP1+= bsmtp.1 bacula-tray-monitor.1 .endif MAKE_ENV+= MAN8="${MP8}" MAN1="${MP1}" post-patch: -# This port does not install docs. See bacula-docs for that + # This port does not install docs. See bacula-docs for that ${REINPLACE_CMD} -e '/docdir/d' ${WRKSRC}/Makefile.in -# Change $(ECHO) to echo in some Makefile.in files + # Change $(ECHO) to echo in some Makefile.in files @${REINPLACE_CMD} -e 's|$$(ECHO)|echo|g' ${WRKSRC}/src/filed/Makefile.in \ ${WRKSRC}/src/console/Makefile.in -# Default bconsole.conf is in ${ETCDIR} + # Default bconsole.conf is in ${ETCDIR} @${REINPLACE_CMD} -e 's|./bconsole.conf|${ETCDIR}/bconsole.conf|g' ${WRKSRC}/src/console/console.c @${REINPLACE_CMD} -e 's|^MAN8 =|MAN8 ?=|g' -e 's|^MAN1 =|MAN1 ?=|g' ${WRKSRC}/manpages/Makefile.in .if defined(WITH_CLIENT_ONLY) -# In client port only install startup script out of script dir (see below post-install) -# Dont mkdir ${PREFIX}/share/bacula cause it's empty + # In client port only install startup script out of script dir (see below post-install) + # Dont mkdir ${PREFIX}/share/bacula cause it's empty @${REINPLACE_CMD} -e 's|^\(fd_subdirs = .*\)scripts\(.*\)|\1\2|g' ${WRKSRC}/Makefile.in ${REINPLACE_CMD} -e 's|\(.*$${MKDIR} $${DESTDIR}$${scriptdir}\)|#\1|g' ${WRKSRC}/Makefile.in .else -# In server port don't install filed + # In server port don't install filed @${REINPLACE_CMD} -e '/^fd_subdirs = /s|src/filed||' -e 's|src/console||' \ -e 's|src/lib||' -e 's|src/findlib||' -e 's|@FD_PLUGIN_DIR@||' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e 's|../lib/|$$(LOCALBASE)/lib/|g' -e 's|../findlib/|$$(LOCALBASE)/lib/|g' ${WRKSRC}/src/dird/Makefile.in \ ${WRKSRC}/src/stored/Makefile.in ${WRKSRC}/src/tools/Makefile.in - @${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' \ - ${WRKSRC}/src/tools/bpluginfo.c .endif + pre-install: ${MKDIR} ${STAGEDIR}${BACULA_DIR} @@ -177,7 +174,7 @@ post-install: ${MV} ${STAGEDIR}${ETCDIR}/bconsole.conf ${STAGEDIR}${ETCDIR}/bconsole.conf.sample .else ${INSTALL_SCRIPT} ${FILESDIR}/chio-bacula ${STAGEDIR}${PREFIX}/sbin - ${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${STAGEDIR}${ETCDIR}/bacula-barcodes.sample + ${INSTALL_DATA} ${FILESDIR}/bacula-barcodes ${STAGEDIR}${ETCDIR}/bacula-barcodes.samples ${CHMOD} o+x ${STAGEDIR}${PREFIX}/sbin/bsmtp .endif for na in ${CONFFILES}; do \ @@ -187,4 +184,5 @@ post-install: .else .include "${MASTERDIR}/Makefile.common" .endif # -client and -server are defined + .include <bsd.port.mk> diff --git a/sysutils/bacula-server/Makefile.common b/sysutils/bacula-server/Makefile.common index 941548ca1778..2176774ee74b 100644 --- a/sysutils/bacula-server/Makefile.common +++ b/sysutils/bacula-server/Makefile.common @@ -1,8 +1,3 @@ -post-patch: -# Change $(ECHO) to echo in some Makefile.in files - @${REINPLACE_CMD} -e 's|$$(ECHO)|echo|g' ${WRKSRC}/src/filed/Makefile.in \ - ${WRKSRC}/src/console/Makefile.in - post-build: .if ${PKGNAMEPREFIX} == "nagios-check_" ${MAKE_CMD} -C ${WRKSRC}/examples/nagios/check_bacula diff --git a/sysutils/bacula-server/distinfo b/sysutils/bacula-server/distinfo index 2943922e8de8..8e5e322e9ab1 100644 --- a/sysutils/bacula-server/distinfo +++ b/sysutils/bacula-server/distinfo @@ -1,2 +1,2 @@ -SHA256 (bacula-5.2.12.tar.gz) = 360435634e28881b3fedb0dc1901b9c9be1895ce1e39c9737262b25f44513887 -SIZE (bacula-5.2.12.tar.gz) = 4147847 +SHA256 (bacula-7.0.4.tar.gz) = ebf802b843a95f6526e82dd181dff7cd7dc7d1fdc55cec8636e0fe3af69acf7e +SIZE (bacula-7.0.4.tar.gz) = 3596569 diff --git a/sysutils/bacula-server/files/patch-src__cats__Makefile.in b/sysutils/bacula-server/files/patch-src__cats__Makefile.in deleted file mode 100644 index dc44319846de..000000000000 --- a/sysutils/bacula-server/files/patch-src__cats__Makefile.in +++ /dev/null @@ -1,51 +0,0 @@ ---- src/cats/Makefile.in 2012-06-28 09:52:03.000000000 -0500 -+++ src/cats/Makefile.in 2012-08-09 15:30:19.000000000 -0500 -@@ -142,25 +142,25 @@ - - libbacsql.la: Makefile $(LIBBACSQL_LOBJS) - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACSQL_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACSQL_LT_RELEASE) $(DB_LIBS) -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACSQL_LOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACSQL_LT_RELEASE:S/./:/g:S/12/0/g) - - libbaccats.la: Makefile cats_dummy.lo - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ cats_dummy.lo -export-dynamic -rpath $(libdir) -release $(LIBBACCATS_LT_RELEASE) -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ cats_dummy.lo -export-dynamic -rpath $(libdir) -version-info $(LIBBACCATS_LT_RELEASE:S/./:/g:S/12/0/g) - - libbaccats-mysql.la: Makefile $(MYSQL_LOBJS) - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(MYSQL_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCATS_LT_RELEASE) \ -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(MYSQL_LOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACCATS_LT_RELEASE:S/./:/g:S/12/0/g) \ - -soname libbaccats-$(LIBBACCATS_LT_RELEASE).so $(MYSQL_LIBS) - - libbaccats-postgresql.la: Makefile $(POSTGRESQL_LOBJS) - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(POSTGRESQL_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCATS_LT_RELEASE) \ -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(POSTGRESQL_LOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACCATS_LT_RELEASE:S/./:/g:S/12/0/g) \ - -soname libbaccats-$(LIBBACCATS_LT_RELEASE).so $(POSTGRESQL_LIBS) - - libbaccats-sqlite3.la: Makefile $(SQLITE_LOBJS) - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(SQLITE_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCATS_LT_RELEASE) \ -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(SQLITE_LOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACCATS_LT_RELEASE:S/./:/g:S/12/0/g) \ - -soname libbaccats-$(LIBBACCATS_LT_RELEASE).so $(SQLITE_LIBS) - - #libbaccats-ingres.la: Makefile $(INGRES_LOBJS) -@@ -237,7 +237,7 @@ - for db_type in @DB_BACKENDS@; do \ - $(LIBTOOL_INSTALL_FINISH) $(INSTALL_LIB) libbaccats-$${db_type}.la $(DESTDIR)$(libdir); \ - done -- ./install-default-backend @DEFAULT_DB_TYPE@ $(LIBBACCATS_LT_RELEASE) $(DESTDIR)$(libdir) -+ ./install-default-backend @DEFAULT_DB_TYPE@ 5 $(DESTDIR)$(libdir) - - libtool-uninstall: - $(LIBTOOL_UNINSTALL) $(RMF) $(DESTDIR)$(libdir)/libbacsql.la -@@ -323,7 +323,7 @@ - depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile -- @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile -+ @echo "# DO NOT DELETE: nice dependency list follows" >> Makefile - @for src in $(LIBBACSQL_SRCS); do \ - $(CXX) -S -M -MT `basename $$src .c`$(DEFAULT_OBJECT_TYPE) $(CPPFLAGS) $(XINC) $(DEFS) -I$(srcdir) -I$(basedir) $$src >> Makefile; \ - done diff --git a/sysutils/bacula-server/files/patch-src__cats__install-default-backend.in b/sysutils/bacula-server/files/patch-src__cats__install-default-backend.in deleted file mode 100644 index 2e919224eade..000000000000 --- a/sysutils/bacula-server/files/patch-src__cats__install-default-backend.in +++ /dev/null @@ -1,25 +0,0 @@ ---- src/cats/install-default-backend.in 2012-03-31 23:39:38.000000000 -0500 -+++ src/cats/install-default-backend.in 2012-03-31 23:40:56.000000000 -0500 -@@ -22,11 +22,11 @@ - exit 1 - fi - --if [ -f ${install_dir}/libbaccats-${default_backend}-${library_version}${SHLIB_EXT} ]; then -+if [ -f ${install_dir}/libbaccats-${default_backend}${SHLIB_EXT}.${library_version} ]; then - # - # Create a default catalog library pointing to one of the shared libs. - # -- rm -f ${install_dir}/libbaccats-${library_version}${SHLIB_EXT} -+ rm -f ${install_dir}/libbaccats${SHLIB_EXT}.${library_version} - - # - # Create a relative symlink to the default backend -@@ -34,7 +34,7 @@ - # always work. - # - ln -s libbaccats-${default_backend}${SHLIB_EXT} \ -- ${install_dir}/libbaccats-${library_version}${SHLIB_EXT} -+ ${install_dir}/libbaccats${SHLIB_EXT}.${library_version} - fi - - exit 0 diff --git a/sysutils/bacula-server/files/patch-src__console__Makefile.in b/sysutils/bacula-server/files/patch-src__console__Makefile.in deleted file mode 100644 index 8be368f7c399..000000000000 --- a/sysutils/bacula-server/files/patch-src__console__Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- src/console/Makefile.in 2012-03-24 15:10:18.000000000 -0500 -+++ src/console/Makefile.in 2012-03-24 15:10:35.000000000 -0500 -@@ -53,7 +53,7 @@ - - static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) - $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \ -- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \ -+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS:S/.so/.a/g) \ - $(OPENSSL_LIBS) - strip $@ - diff --git a/sysutils/bacula-server/files/patch-src__dird__Makefile.in b/sysutils/bacula-server/files/patch-src__dird__Makefile.in deleted file mode 100644 index 6f122e116c3a..000000000000 --- a/sysutils/bacula-server/files/patch-src__dird__Makefile.in +++ /dev/null @@ -1,28 +0,0 @@ ---- src/dird/Makefile.in 2011-11-26 09:08:12.000000000 -0500 -+++ src/dird/Makefile.in 2011-12-02 13:15:46.000000000 -0500 -@@ -68,14 +68,14 @@ - ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) \ - ../cats/libbaccats$(DEFAULT_ARCHIVE_TYPE) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) - @echo "Linking $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../cats -L../findlib -o $@ $(SVROBJS) \ -+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats -L../findlib $(WLDFLAGS) $(LDFLAGS) -o $@ $(SVROBJS) \ - -lbacfind -lbacsql -lbaccats -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(DLIB) $(DB_LIBS) $(LIBS) \ - $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) - - static-bacula-dir: Makefile $(SVROBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) \ - ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) \ - ../cats/libbaccats$(DEFAULT_ARCHIVE_TYPE) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../cats -L../findlib -o $@ $(SVROBJS) \ -+ $(LIBTOOL_LINK) $(CXX) -static -L../lib -L../cats -L../findlib $(WLDFLAGS) $(LDFLAGS) -o $@ $(SVROBJS) \ - -lbacfind -lbacsql -lbaccats -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(DLIB) $(DB_LIBS) $(LIBS) \ - $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) - strip $@ -@@ -141,7 +141,7 @@ - depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile -- @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile -+ @echo "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) *.c >> Makefile - @if test -f Makefile ; then \ - $(RMF) Makefile.bak; \ diff --git a/sysutils/bacula-server/files/patch-src__filed__Makefile.in b/sysutils/bacula-server/files/patch-src__filed__Makefile.in deleted file mode 100644 index 04100d795e3f..000000000000 --- a/sysutils/bacula-server/files/patch-src__filed__Makefile.in +++ /dev/null @@ -1,11 +0,0 @@ ---- src/filed/Makefile.in 2012-06-28 09:52:03.000000000 -0500 -+++ src/filed/Makefile.in 2012-08-09 15:04:48.000000000 -0500 -@@ -102,7 +102,7 @@ - static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@ - $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \ - $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \ -- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZOLIBS) -+ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS:S/.so/.a/g) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZOLIBS) - strip $@ - - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status diff --git a/sysutils/bacula-server/files/patch-src__findlib__Makefile.in b/sysutils/bacula-server/files/patch-src__findlib__Makefile.in deleted file mode 100644 index df0ed6f2b560..000000000000 --- a/sysutils/bacula-server/files/patch-src__findlib__Makefile.in +++ /dev/null @@ -1,20 +0,0 @@ ---- src/findlib/Makefile.in 2011-11-26 09:08:12.000000000 -0500 -+++ src/findlib/Makefile.in 2011-12-02 13:02:46.000000000 -0500 -@@ -57,7 +57,7 @@ - - libbacfind.la: Makefile $(LIBBACFIND_LOBJS) - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE) -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACFIND_LT_RELEASE:S/./:/g:S/12/0/g) - - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status - cd $(topdir) \ -@@ -112,7 +112,7 @@ - depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile -- @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile -+ @echo "# DO NOT DELETE: nice dependency list follows" >> Makefile - @for src in $(LIBBACFIND_SRCS); do \ - $(CXX) -S -M -MT `basename $$src .c`$(DEFAULT_OBJECT_TYPE) $(CPPFLAGS) $(XINC) -I$(srcdir) -I$(basedir) $$src >> Makefile; \ - done diff --git a/sysutils/bacula-server/files/patch-src__lib__Makefile.in b/sysutils/bacula-server/files/patch-src__lib__Makefile.in deleted file mode 100644 index 0f0501e34678..000000000000 --- a/sysutils/bacula-server/files/patch-src__lib__Makefile.in +++ /dev/null @@ -1,38 +0,0 @@ ---- src/lib/Makefile.in 2012-06-28 09:52:03.000000000 -0500 -+++ src/lib/Makefile.in 2012-08-09 15:08:16.000000000 -0500 -@@ -120,7 +120,7 @@ - - libbac.la: Makefile $(LIBBAC_LOBJS) - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_RELEASE) $(WRAPLIBS) $(CAP_LIBS) $(ZLIBS) $(OPENSSL_LIBS) $(LIBS) $(DLLIBS) -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBAC_LT_RELEASE:S/./:/g:S/12/0/g) $(WRAPLIBS) $(CAP_LIBS) $(ZLIBS) $(OPENSSL_LIBS) $(LIBS) $(DLLIBS) - - libbaccfg.a: $(LIBBACCFG_OBJS) - @echo "Making $@ ..." -@@ -129,7 +129,7 @@ - - libbaccfg.la: Makefile $(LIBBACCFG_LOBJS) - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACCFG_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCFG_LT_RELEASE) $(OPENSSL_LIBS) $(LIBS) -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACCFG_LOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACCFG_LT_RELEASE:S/./:/g:S/12/0/g) $(OPENSSL_LIBS) $(LIBS) - - libbacpy.a: $(LIBBACPY_OBJS) - @echo "Making $@ ..." -@@ -138,7 +138,7 @@ - - libbacpy.la: Makefile $(LIBBACPY_LOBJS) - @echo "Making $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACPY_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACPY_LT_RELEASE) $(PYTHON_LIBS) $(OPENSSL_LIBS) $(LIBS) -+ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACPY_LOBJS) -export-dynamic -rpath $(libdir) -version-info $(LIBBACPY_LT_RELEASE:S/./:/g:S/12/0/g) $(PYTHON_LIBS) $(OPENSSL_LIBS) $(LIBS) - - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status - cd $(topdir) \ -@@ -267,7 +267,7 @@ - depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile -- @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile -+ @echo "# DO NOT DELETE: nice dependency list follows" >> Makefile - @for src in $(LIBBAC_SRCS) $(LIBBACCFG_SRCS) $(LIBBACPY_SRCS); do \ - $(CXX) -S -M -MT `basename $$src .c`$(DEFAULT_OBJECT_TYPE) $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $$src >> Makefile; \ - done diff --git a/sysutils/bacula-server/files/patch-src__stored__Makefile.in b/sysutils/bacula-server/files/patch-src__stored__Makefile.in deleted file mode 100644 index 03ff31812381..000000000000 --- a/sysutils/bacula-server/files/patch-src__stored__Makefile.in +++ /dev/null @@ -1,71 +0,0 @@ ---- src/stored/Makefile.in 2011-11-26 09:08:12.000000000 -0500 -+++ src/stored/Makefile.in 2011-12-02 13:20:38.000000000 -0500 -@@ -95,12 +95,12 @@ - - bacula-sd: Makefile $(SDOBJS) ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) - @echo "Linking $@ ..." -- $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -o $@ $(SDOBJS) $(ZLIBS) \ -+ $(LIBTOOL_LINK) $(CXX) -L../lib $(WLDFLAGS) $(LDFLAGS) -o $@ $(SDOBJS) $(ZLIBS) \ - -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(DLIB) $(LIBS) $(WRAPLIBS) \ - $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) - - static-bacula-sd: Makefile $(SDOBJS) ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -o $@ $(SDOBJS) $(ZLIBS) \ -+ $(LIBTOOL_LINK) $(CXX) -static -L../lib $(WLDFLAGS) $(LDFLAGS) -o $@ $(SDOBJS) $(ZLIBS) \ - -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(DLIB) $(LIBS) $(WRAPLIBS) \ - $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) - strip $@ -@@ -111,7 +111,7 @@ - -I$(basedir) $(DINCLUDE) $(CFLAGS) $< - - btape: Makefile $(TAPEOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -o $@ $(TAPEOBJS) \ -+ $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) -L../lib $(LDFLAGS) -o $@ $(TAPEOBJS) \ - -lbaccfg -lbac $(DLIB) -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bls.o: bls.c -@@ -121,7 +121,7 @@ - - bls: Makefile $(BLSOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) - @echo "Compiling $<" -- $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(BLSOBJS) $(DLIB) \ -+ $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) -L../lib -L../findlib $(LDFLAGS) -o $@ $(BLSOBJS) $(DLIB) \ - -lbacfind -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bextract.o: bextract.c -@@ -131,7 +131,7 @@ - - bextract: Makefile $(BEXTOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) - @echo "Compiling $<" -- $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(BEXTOBJS) $(DLIB) $(ZLIBS) $(LZOLIBS) \ -+ $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) -L../lib -L../findlib $(LDFLAGS) -o $@ $(BEXTOBJS) $(DLIB) $(ZLIBS) $(LZOLIBS) \ - -lbacfind -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bscan.o: bscan.c -@@ -141,7 +141,7 @@ - - bscan: Makefile $(SCNOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) \ - ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) ../cats/libbaccats$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -L../cats -L../findlib -o $@ $(SCNOBJS) \ -+ $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) -L../lib -L../cats -L../findlib $(LDFLAGS) -o $@ $(SCNOBJS) \ - -lbacsql -lbaccats $(DB_LIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bcopy.o: bcopy.c -@@ -150,7 +150,7 @@ - -I$(basedir) $(DINCLUDE) $(CFLAGS) $< - - bcopy: Makefile $(COPYOBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) $(LDFLAGS) -L../lib -o $@ $(COPYOBJS) \ -+ $(LIBTOOL_LINK) $(CXX) $(TTOOL_LDFLAGS) -L../lib $(LDFLAGS) -o $@ $(COPYOBJS) \ - -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status -@@ -215,7 +215,7 @@ - depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile -- @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile -+ @echo "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CXX) -S -M $(CPPFLAGS) $(XINC) $(PYTHON_INC) -I$(srcdir) -I$(basedir) *.c >> Makefile - @if test -f Makefile ; then \ - $(RMF) Makefile.bak; \ diff --git a/sysutils/bacula-server/files/patch-src__tools__Makefile.in b/sysutils/bacula-server/files/patch-src__tools__Makefile.in deleted file mode 100644 index 4e681f47ce4b..000000000000 --- a/sysutils/bacula-server/files/patch-src__tools__Makefile.in +++ /dev/null @@ -1,99 +0,0 @@ ---- src/tools/Makefile.in 2011-11-26 09:08:12.000000000 -0500 -+++ src/tools/Makefile.in 2011-12-02 13:26:44.000000000 -0500 -@@ -58,22 +58,22 @@ - @echo " " - - bsmtp: Makefile bsmtp.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -o $@ bsmtp.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) -+ $(LIBTOOL_LINK) $(CXX) -L../lib $(LDFLAGS) -o $@ bsmtp.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bregtest: Makefile bregtest.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -o $@ bregtest.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) -+ $(LIBTOOL_LINK) $(CXX) -L../lib $(LDFLAGS) -o $@ bregtest.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - dbcheck: Makefile dbcheck.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) \ - ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) ../cats/libbaccats$(DEFAULT_ARCHIVE_TYPE) $(DIRCONFOBJS) -- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -L../cats -o $@ dbcheck.o $(DIRCONFOBJS) \ -+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) -o $@ dbcheck.o $(DIRCONFOBJS) \ - -lbaccats -lbacsql -lbaccfg -lbac -lm $(DB_LIBS) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - fstype: Makefile fstype.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -L../findlib -o $@ fstype.o -lbacfind -lbac -lm \ -+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../findlib $(LDFLAGS) -o $@ fstype.o -lbacfind -lbac -lm \ - $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - drivetype: Makefile drivetype.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -L../findlib -o $@ drivetype.o -lbacfind -lbac -lm \ -+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../findlib $(LDFLAGS) -o $@ drivetype.o -lbacfind -lbac -lm \ - $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - dird_conf.o: ../dird/dird_conf.c -@@ -87,34 +87,34 @@ - - testfind: Makefile ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) \ - ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) $(FINDOBJS) -- $(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -o $@ $(FINDOBJS) -L. -L../lib -L../findlib \ -+ $(LIBTOOL_LINK) $(CXX) -g -o $@ $(FINDOBJS) -L. -L../lib -L../findlib $(LDFLAGS) \ - $(DLIB) -lbacfind -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - testls: Makefile ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) testls.o -- $(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -L. -L../lib -L../findlib -o $@ testls.o \ -+ $(LIBTOOL_LINK) $(CXX) -g -L. -L../lib -L../findlib $(LDFLAGS) -o $@ testls.o \ - $(DLIB) -lbacfind -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bregex: Makefile ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) bregex.o -- $(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -L. -L../lib -o $@ bregex.o \ -+ $(LIBTOOL_LINK) $(CXX) -g -L. -L../lib $(LDFLAGS) -o $@ bregex.o \ - $(DLIB) -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bwild: Makefile ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) bwild.o -- $(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -L. -L../lib -o $@ bwild.o \ -+ $(LIBTOOL_LINK) $(CXX) -g -L. -L../lib $(LDFLAGS) -o $@ bwild.o \ - $(DLIB) -lbac -lm $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bbatch: Makefile ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) \ - ../cats/libbaccats$(DEFAULT_ARCHIVE_TYPE) bbatch.o -- $(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -L../cats -L. -L../lib -o $@ bbatch.o \ -+ $(LIBTOOL_LINK) $(CXX) -g -L../cats -L. -L../lib $(LDFLAGS) -o $@ bbatch.o \ - -lbaccats -lbacsql -lbac -lm $(DB_LIBS) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - bvfs_test: Makefile ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) \ - ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) ../cats/libbaccats$(DEFAULT_ARCHIVE_TYPE) bvfs_test.o -- $(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -L../cats -L. -L../lib -L../findlib -o $@ bvfs_test.o \ -+ $(LIBTOOL_LINK) $(CXX) -g -L../cats -L. -L../lib -L../findlib $(LDFLAGS) -o $@ bvfs_test.o \ - -lbaccats -lbacsql -lbacfind -lbac -lm $(DB_LIBS) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - ing_test: Makefile ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) \ - ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) ../cats/libbaccats$(DEFAULT_ARCHIVE_TYPE) ing_test.o -- $(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -L../cats -L. -L../lib -L../findlib -o $@ ing_test.o \ -+ $(LIBTOOL_LINK) $(CXX) -g -L../cats -L. -L../lib -L../findlib $(LDFLAGS) -o $@ ing_test.o \ - -lbaccats -lbacsql -lbacfind -lbac -lm $(DB_LIBS) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - cats_test.o: cats_test.c -@@ -122,7 +122,7 @@ - $(NO_ECHO)$(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $< - - cats_test: Makefile ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../cats/libbacsql$(DEFAULT_ARCHIVE_TYPE) cats_test.o -- $(LIBTOOL_LINK) $(CXX) -g $(LDFLAGS) -L../cats -L. -L../lib -L../findlib -o $@ cats_test.o \ -+ $(LIBTOOL_LINK) $(CXX) -g -L../cats -L. -L../lib -L../findlib $(LDFLAGS) -o $@ cats_test.o \ - -lbaccats -lbacsql -lbacfind -lbac -lm $(DB_LIBS) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - gigaslam.o: gigaslam.c -@@ -132,7 +132,7 @@ - $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -o $@ gigaslam.o - - grow: Makefile grow.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) -- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) -L../lib -o $@ grow.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) -+ $(LIBTOOL_LINK) $(CXX) -L../lib $(LDFLAGS) -o $@ grow.o -lbac -lm $(DLIB) $(LIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) - - Makefile: $(srcdir)/Makefile.in $(topdir)/config.status - cd $(topdir) \ -@@ -184,7 +184,7 @@ - depend: - @$(MV) Makefile Makefile.bak - @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile -- @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile -+ @echo "# DO NOT DELETE: nice dependency list follows" >> Makefile - @$(CXX) -S -M $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) *.c >> Makefile - @if test -f Makefile ; then \ - $(RMF) Makefile.bak; \ diff --git a/sysutils/bacula-server/files/pkg-deinstall.client.in b/sysutils/bacula-server/files/pkg-deinstall.client.in index 7c07237addd7..e24e2a581cff 100644 --- a/sysutils/bacula-server/files/pkg-deinstall.client.in +++ b/sysutils/bacula-server/files/pkg-deinstall.client.in @@ -14,7 +14,7 @@ TMPFILE=/tmp/services-$RANDOM-$$ case "$2" in "DEINSTALL") # Delete entries in /etc/services - sed -e '/# Bacula port start/,/# Bacule port end/{' \ + sed -e '/# Bacula port start/,/# Bacula port end/{' \ -e 'd' \ -e '}' /etc/services > $TMPFILE mv -f $TMPFILE /etc/services diff --git a/sysutils/bacula-server/files/pkg-deinstall.server.in b/sysutils/bacula-server/files/pkg-deinstall.server.in new file mode 100644 index 000000000000..05da0eb6a7f6 --- /dev/null +++ b/sysutils/bacula-server/files/pkg-deinstall.server.in @@ -0,0 +1,34 @@ +#!/bin/sh + +PATH=/bin:/usr/bin:/usr/sbin + +# Note how to delete UID/GID +USER=%%BACULA_USER%% +GROUP=%%BACULA_GROUP%% +UID=%%BACULA_UID%% +GID=%%BACULA_UID%% +BACULA_DIR=%%BACULA_DIR%% + +TMPFILE=/tmp/services-$RANDOM-$$ + +case "$2" in +"DEINSTALL") + # Delete entries in /etc/services + sed -e '/# Bacula port start/,/# Bacula port end/{' \ + -e 'd' \ + -e '}' /etc/services > $TMPFILE + mv -f $TMPFILE /etc/services + + if [ -d ${BACULA_DIR} ]; then + rmdir ${BACULA_DIR}; + fi + if [ -d ${BACULA_DIR} ]; then + echo "Check if ${BACULA_DIR} is empty and delete it to permanently remove the bacula port." + fi + + if pw usershow "${USER}" 2>/dev/null 1>&2; then + echo "To delete Bacula user permanently, use 'pw userdel ${USER}'" + echo "To delete Bacula group permanently, use 'pw groupdel ${GROUP}'" + fi + ;; +esac diff --git a/sysutils/bacula-server/files/pkg-install.client.in b/sysutils/bacula-server/files/pkg-install.client.in index 99cfaecd128f..12e044538074 100644 --- a/sysutils/bacula-server/files/pkg-install.client.in +++ b/sysutils/bacula-server/files/pkg-install.client.in @@ -9,5 +9,5 @@ if [ "$?" != "0" ]; then bacula-dir 9101/tcp #Bacula director daemon bacula-fd 9102/tcp #Bacula file daemon bacula-sd 9103/tcp #Bacula storage daemon -# Bacule port end" >> /etc/services +# Bacula port end" >> /etc/services fi diff --git a/sysutils/bacula-server/files/pkg-install.server.in b/sysutils/bacula-server/files/pkg-install.server.in new file mode 100644 index 000000000000..12e044538074 --- /dev/null +++ b/sysutils/bacula-server/files/pkg-install.server.in @@ -0,0 +1,13 @@ +#!/bin/sh + +PATH=/bin:/usr/bin:/usr/sbin + +# Always add lines in /etc/services +grep -q "bacula-dir" /etc/services +if [ "$?" != "0" ]; then + echo "# Bacula port start +bacula-dir 9101/tcp #Bacula director daemon +bacula-fd 9102/tcp #Bacula file daemon +bacula-sd 9103/tcp #Bacula storage daemon +# Bacula port end" >> /etc/services +fi diff --git a/sysutils/bacula-server/files/pkg-message.client.in b/sysutils/bacula-server/files/pkg-message.client.in index 52bf005221bc..c4041a26df11 100644 --- a/sysutils/bacula-server/files/pkg-message.client.in +++ b/sysutils/bacula-server/files/pkg-message.client.in @@ -2,14 +2,7 @@ NOTE: Sample files are installed in %%PREFIX%%/etc/bacula: -bconsole.conf.sample, bacula-barcodes.sample, bacula-fd.conf.sample - Please read this file: - - %%DOCSDIR%%/ReleaseNotes - - as installed by docs port for the upgrade procedure. - -Read the ReleaseNotes for further information. + bconsole.conf.sample, bacula-fd.conf.sample ################################################################################ diff --git a/sysutils/bacula-server/files/pkg-message.server.in b/sysutils/bacula-server/files/pkg-message.server.in index a332f01777fc..e777a8c694d3 100644 --- a/sysutils/bacula-server/files/pkg-message.server.in +++ b/sysutils/bacula-server/files/pkg-message.server.in @@ -2,13 +2,6 @@ bacula server was installed -1) Important information about new version of bacula can be found in the - ReleaseNotes. - - %%DOCSDIR%%/ReleaseNotes - -NOTE: - An auto-changer manipulation script based on FreeBSDs chio command is included and installed at @@ -55,12 +48,6 @@ Look at %%PREFIX%%/share/bacula/update_bacula_tables for database update procedure. Details can be found in the ReleaseNotes - Please read this file: - - %%DOCSDIR%%/ReleaseNotes - - as installed by docs port for the upgrade procedure. - If you are using sqlite you need to run the make_sqlite_tables script as the bacula user. Do this using 'sudo su -m bacula'. diff --git a/sysutils/bacula-server/pkg-plist b/sysutils/bacula-server/pkg-plist index 387e55fdef66..77fde086df8c 100644 --- a/sysutils/bacula-server/pkg-plist +++ b/sysutils/bacula-server/pkg-plist @@ -1,51 +1,36 @@ -@sample %%ETCDIR%%/bacula-barcodes.sample +@sample %%ETCDIR%%/bacula-barcodes.samples @group bacula @sample %%ETCDIR%%/bacula-dir.conf.sample @group wheel @sample %%ETCDIR%%/bacula-sd.conf.sample +lib/libbaccats-%%LIB_VERSION%%.so lib/libbaccats.la lib/libbaccats.so -lib/libbaccats.so.5 -lib/libbaccats.so.5.0.2 +lib/libbaccats-%%DBTYPE%%-%%LIB_VERSION%%.so lib/libbaccats-%%DBTYPE%%.la lib/libbaccats-%%DBTYPE%%.so -lib/libbaccats-%%DBTYPE%%.so.5 -lib/libbaccats-%%DBTYPE%%.so.5.0.2 +lib/libbacsql-%%LIB_VERSION%%.so lib/libbacsql.la lib/libbacsql.so -lib/libbacsql.so.5 -lib/libbacsql.so.5.0.2 -man/man1/bacula-bwxconsole.1.gz -man/man1/bacula-tray-monitor.1.gz -man/man1/bsmtp.1.gz -man/man8/bacula-dir.8.gz -man/man8/bacula-sd.8.gz -man/man8/bacula.8.gz -man/man8/bcopy.8.gz -man/man8/bextract.8.gz -man/man8/bls.8.gz -man/man8/bregex.8.gz -man/man8/bscan.8.gz -man/man8/btape.8.gz -man/man8/btraceback.8.gz -man/man8/bwild.8.gz -man/man8/dbcheck.8.gz sbin/bacula sbin/bacula-dir sbin/bacula-sd sbin/bcopy sbin/bextract sbin/bls +sbin/bpluginfo sbin/bregex sbin/bscan +@mode 755 sbin/bsmtp +@mode sbin/btape sbin/btraceback sbin/bwild sbin/chio-bacula -@group bacula sbin/dbcheck @owner bacula +@group bacula %%DATADIR%%/bacula %%DATADIR%%/bacula-ctl-dir %%DATADIR%%/bacula-ctl-fd @@ -75,5 +60,19 @@ sbin/dbcheck %%DATADIR%%/query.sql %%DATADIR%%/update_bacula_tables %%DATADIR%%/update_%%DBTYPE%%_tables -@owner root -@group wheel +@owner +@group +man/man1/bsmtp.1.gz +man/man1/bacula-tray-monitor.1.gz +man/man8/bacula-dir.8.gz +man/man8/bacula-sd.8.gz +man/man8/bcopy.8.gz +man/man8/bextract.8.gz +man/man8/bls.8.gz +man/man8/bregex.8.gz +man/man8/bscan.8.gz +man/man8/btape.8.gz +man/man8/btraceback.8.gz +man/man8/bwild.8.gz +man/man8/dbcheck.8.gz +@dirrmtry %%ETCDIR%% diff --git a/sysutils/bacula-server/pkg-plist.client b/sysutils/bacula-server/pkg-plist.client index 0257d088bf8f..642ee9c60e67 100644 --- a/sysutils/bacula-server/pkg-plist.client +++ b/sysutils/bacula-server/pkg-plist.client @@ -2,23 +2,17 @@ @group bacula @sample %%ETCDIR%%/bconsole.conf.sample @group wheel +lib/libbac-%%LIB_VERSION%%.so lib/libbac.la lib/libbac.so -lib/libbac.so.5 -lib/libbac.so.5.0.2 +lib/libbaccfg-%%LIB_VERSION%%.so lib/libbaccfg.la lib/libbaccfg.so -lib/libbaccfg.so.5 -lib/libbaccfg.so.5.0.2 +lib/libbacfind-%%LIB_VERSION%%.so lib/libbacfind.la lib/libbacfind.so -lib/libbacfind.so.5 -lib/libbacfind.so.5.0.2 -lib/libbacpy.la -lib/libbacpy.so -lib/libbacpy.so.5 -lib/libbacpy.so.5.0.2 lib/bpipe-fd.so +man/man8/bacula.8.gz man/man8/bacula-fd.8.gz man/man8/bconsole.8.gz sbin/bacula-fd |