diff options
Diffstat (limited to 'backup/bareos/files')
-rw-r--r-- | backup/bareos/files/bareos-12.4.5-Makefile.patch | 27 | ||||
-rw-r--r-- | backup/bareos/files/bareos-12.4.5-bat-ldflags.patch | 11 | ||||
-rw-r--r-- | backup/bareos/files/bareos-dir.confd-16 | 17 | ||||
-rw-r--r-- | backup/bareos/files/bareos-dir.initd | 21 | ||||
-rw-r--r-- | backup/bareos/files/bareos-fd.confd-16 | 7 | ||||
-rw-r--r-- | backup/bareos/files/bareos-fd.initd | 21 | ||||
-rw-r--r-- | backup/bareos/files/bareos-sd.confd-16 | 10 | ||||
-rw-r--r-- | backup/bareos/files/bareos-sd.initd | 21 |
8 files changed, 135 insertions, 0 deletions
diff --git a/backup/bareos/files/bareos-12.4.5-Makefile.patch b/backup/bareos/files/bareos-12.4.5-Makefile.patch new file mode 100644 index 000000000000..3cdee15d4db7 --- /dev/null +++ b/backup/bareos/files/bareos-12.4.5-Makefile.patch @@ -0,0 +1,27 @@ +# stop build if there are errors in subdirs +--- Makefile.in.orig 2010-07-20 16:53:44.000000000 +0000 ++++ Makefile.in 2010-07-20 16:55:50.000000000 +0000 +@@ -44,9 +44,8 @@ + + all: Makefile + @for I in ${all_subdirs}; \ +- do (cd $$I; echo "==>Entering directory `pwd`"; \ +- $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \ +- echo ""; echo ""; exit 1;)); \ ++ do \ ++ $(MAKE) DESTDIR=$(DESTDIR) -C $$I $@ || exit 1; \ + done + + depend: +@@ -55,9 +54,8 @@ + + bacula-fd: Makefile + @for I in ${fd_subdirs}; \ +- do (cd $$I; echo "==>Entering directory `pwd`"; \ +- $(MAKE) DESTDIR=$(DESTDIR) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \ +- echo ""; echo ""; exit 1;)); \ ++ do \ ++ $(MAKE) DESTDIR=$(DESTDIR) -C $$I all || exit 1; \ + done + + #------------------------------------------------------------------------- diff --git a/backup/bareos/files/bareos-12.4.5-bat-ldflags.patch b/backup/bareos/files/bareos-12.4.5-bat-ldflags.patch new file mode 100644 index 000000000000..94d8fb60120e --- /dev/null +++ b/backup/bareos/files/bareos-12.4.5-bat-ldflags.patch @@ -0,0 +1,11 @@ +# bat needs to respect LDFLAGS +--- src/qt-console/bat.pro.in.orig 2010-07-20 18:28:50.000000000 +0000 ++++ src/qt-console/bat.pro.in 2010-07-20 18:29:25.000000000 +0000 +@@ -26,6 +26,7 @@ + QMAKE_LINK = $${LIBTOOL_LINK} $(CXX) + QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m @SBINPERM@ -p + QMAKE_CLEAN += .libs/* bat ++QMAKE_LFLAGS += @LDFLAGS@ + + qwt { + INCLUDEPATH += @QWT_INC@ diff --git a/backup/bareos/files/bareos-dir.confd-16 b/backup/bareos/files/bareos-dir.confd-16 new file mode 100644 index 000000000000..a11eba90a755 --- /dev/null +++ b/backup/bareos/files/bareos-dir.confd-16 @@ -0,0 +1,17 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Config file for /etc/init.d/bareos-dir + +# Bareos can use more than one catalog database and each one can +# be of any supported type. +# If a database server where you store a bareos catalog +# is on a different machine, you might want to remove the corresponding +# type from the rc_need variable. +rc_need="%databasetypes%" + +# Options for the director daemon. +# The director can be run as a non-root user, however +# please ensure that this user has proper permissions to +# access your backup devices. +DIR_OPTIONS="-u root -g bareos" diff --git a/backup/bareos/files/bareos-dir.initd b/backup/bareos/files/bareos-dir.initd new file mode 100644 index 000000000000..826d27a829c9 --- /dev/null +++ b/backup/bareos/files/bareos-dir.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use dns bareos-fd bareos-sd +} + +start() { + ebegin "Starting bareos director" + checkpath -d -m 0750 -o bareos:bareos /run/bareos + start-stop-daemon --start --quiet --exec /usr/sbin/bareos-dir \ + -- ${DIR_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bareos director" + start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-dir.*.pid + eend $? +} diff --git a/backup/bareos/files/bareos-fd.confd-16 b/backup/bareos/files/bareos-fd.confd-16 new file mode 100644 index 000000000000..e3b8a1f576fd --- /dev/null +++ b/backup/bareos/files/bareos-fd.confd-16 @@ -0,0 +1,7 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Config file for /etc/init.d/bareos-fd + +# Options for the file daemon. +FD_OPTIONS="-u root -g bareos" diff --git a/backup/bareos/files/bareos-fd.initd b/backup/bareos/files/bareos-fd.initd new file mode 100644 index 000000000000..e272daa88ecd --- /dev/null +++ b/backup/bareos/files/bareos-fd.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use dns +} + +start() { + ebegin "Starting bareos file daemon" + checkpath -d -m 0750 /run/bareos + start-stop-daemon --start --quiet --exec /usr/sbin/bareos-fd \ + -- ${FD_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bareos file daemon" + start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-fd.*.pid + eend $? +} diff --git a/backup/bareos/files/bareos-sd.confd-16 b/backup/bareos/files/bareos-sd.confd-16 new file mode 100644 index 000000000000..5d377b978dd5 --- /dev/null +++ b/backup/bareos/files/bareos-sd.confd-16 @@ -0,0 +1,10 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# Config file for /etc/init.d/bareos-sd + +# Options for the storage daemon. +# The storage daemon can be run as a non-root user, however +# please ensure that this user has proper permissions to +# access your backup devices. +SD_OPTIONS="-u root -g bareos" diff --git a/backup/bareos/files/bareos-sd.initd b/backup/bareos/files/bareos-sd.initd new file mode 100644 index 000000000000..f20be4ecf56e --- /dev/null +++ b/backup/bareos/files/bareos-sd.initd @@ -0,0 +1,21 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use dns +} + +start() { + ebegin "Starting bareos storage daemon" + checkpath -d -m 0750 -o bareos:bareos /run/bareos + start-stop-daemon --start --quiet --exec /usr/sbin/bareos-sd \ + -- ${SD_OPTIONS} + eend $? +} + +stop() { + ebegin "Stopping bareos storage daemon" + start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-sd.*.pid + eend $? +} |