summaryrefslogtreecommitdiff
path: root/manualPorts
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2020-04-26 16:13:04 +0200
committerErich Eckner <git@eckner.net>2020-04-26 16:13:04 +0200
commit54e5fe72a301dc9e2cf35d307a6a7fed471c7925 (patch)
tree1a04dcba38126fa3dea142c8e366d7571de2f320 /manualPorts
parent34b2772d6ccd47983745a7ebc5830d05cd4d9738 (diff)
downloadcrux-ports-54e5fe72a301dc9e2cf35d307a6a7fed471c7925.tar.xz
bareos-filedaemon: /etc/rc.d/bareos-fd new
Diffstat (limited to 'manualPorts')
-rw-r--r--manualPorts/bareos-filedaemon/.footprint2
-rw-r--r--manualPorts/bareos-filedaemon/.md5sum1
-rw-r--r--manualPorts/bareos-filedaemon/.signature7
-rw-r--r--manualPorts/bareos-filedaemon/Pkgfile9
-rwxr-xr-xmanualPorts/bareos-filedaemon/bareos-fd37
5 files changed, 51 insertions, 5 deletions
diff --git a/manualPorts/bareos-filedaemon/.footprint b/manualPorts/bareos-filedaemon/.footprint
index 5c2cfa9..24d43aa 100644
--- a/manualPorts/bareos-filedaemon/.footprint
+++ b/manualPorts/bareos-filedaemon/.footprint
@@ -8,6 +8,8 @@ drwxr-x--- root/root etc/bareos/bareos-fd.d/director/
-rw-rw---- root/root etc/bareos/bareos-fd.d/director/bareos-mon.conf
drwxr-x--- root/root etc/bareos/bareos-fd.d/messages/
-rw-rw---- root/root etc/bareos/bareos-fd.d/messages/Standard.conf
+drwxr-xr-x root/root etc/rc.d/
+-rwxr-xr-x root/root etc/rc.d/bareos-fd
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/bareos-fd
diff --git a/manualPorts/bareos-filedaemon/.md5sum b/manualPorts/bareos-filedaemon/.md5sum
index ed4e621..9f69f93 100644
--- a/manualPorts/bareos-filedaemon/.md5sum
+++ b/manualPorts/bareos-filedaemon/.md5sum
@@ -1,3 +1,4 @@
d483ef56350c55492f916ce53798d377 19.2.7.tar.gz
+fd2649251216156c0ecce55aa1358411 bareos-fd
c0ff9a74d0e26f65122ecf3bb48a87bd check-if-bareos-backup-is-running
4f26be549cf136364dcb08daab7b0724 nullify-os-specifics.patch
diff --git a/manualPorts/bareos-filedaemon/.signature b/manualPorts/bareos-filedaemon/.signature
index 9284cd4..ee84d7b 100644
--- a/manualPorts/bareos-filedaemon/.signature
+++ b/manualPorts/bareos-filedaemon/.signature
@@ -1,7 +1,8 @@
untrusted comment: verify with /etc/ports/deepthought.pub
-RWQxCptPusLGGvyd1VyOxFYKEanCjYMS9pQYiQdA706qUPiIg9vgUpGozMAxvfjbPXIOOnvvrrqhohuYQoAJsIX6e92MK8aMIQ4=
-SHA256 (Pkgfile) = e73a1c4cdc0839c13cfa6cab6b08ed7c9ecdffeee6b9222f4d7bafe183f3bd82
-SHA256 (.footprint) = bad692d670557e894cc51c7ebf0f40b1f43dc3545fd5ec15c7b19e020384f85b
+RWQxCptPusLGGgV48CYNiT9TJ7FYP7unDwodGNYDq0cYem5xZitH3OdC/GjeuCFztwcMgZVMvKdpsuSDAlkCXDB53FJ/7G5JcAc=
+SHA256 (Pkgfile) = a900db5d617e290f0ef3e5cc348a02e701146e1ac3aec490678a27cbfdc8540b
+SHA256 (.footprint) = e2866d153999c5aa13bf8081e8dae03bde286930005d126eafc18778f2f38ca4
SHA256 (19.2.7.tar.gz) = 283c1fa9cb6a96b1f09b402cd507ecd8bf798458bafcbfad867da08d33d12653
SHA256 (nullify-os-specifics.patch) = d2c0943243aa6f8be7fe0548b2c160cbfb86c979ef535553b7d823dc7ab5462e
SHA256 (check-if-bareos-backup-is-running) = 14fb81b235a18c31f8457d23c525b4a87a0399755535f883d0f6e1e7fa360fc0
+SHA256 (bareos-fd) = e70e265d19345d1971822288ca27a6f4322bcda0079d3371b3199e11a9947f36
diff --git a/manualPorts/bareos-filedaemon/Pkgfile b/manualPorts/bareos-filedaemon/Pkgfile
index 425d171..098b344 100644
--- a/manualPorts/bareos-filedaemon/Pkgfile
+++ b/manualPorts/bareos-filedaemon/Pkgfile
@@ -6,10 +6,11 @@
name=bareos-filedaemon
_name=${name%-*}
version=19.2.7
-release=1
+release=2
source=("https://github.com/$_name/$_name/archive/Release/$version.tar.gz"
'nullify-os-specifics.patch'
-'check-if-bareos-backup-is-running')
+'check-if-bareos-backup-is-running'
+'bareos-fd')
build() {
@@ -151,4 +152,8 @@ build() {
-t "$PKG/usr/bin"
chmod -R o-rx "$PKG/etc/bareos"
+
+ install -Dm755 \
+ "$SRC/bareos-fd" \
+ -t "$PKG/etc/rc.d"
}
diff --git a/manualPorts/bareos-filedaemon/bareos-fd b/manualPorts/bareos-filedaemon/bareos-fd
new file mode 100755
index 0000000..06c6c0a
--- /dev/null
+++ b/manualPorts/bareos-filedaemon/bareos-fd
@@ -0,0 +1,37 @@
+#!/bin/bash
+#
+# /etc/rc.d/bareos-fd: bareos file daemon
+#
+
+case "$1" in
+
+ start)
+
+ mkdir -p /run/bareos/fd
+ chown bareos:bareos /run/bareos/fd
+ /usr/bin/bareos-fd
+
+ ;;
+
+ stop)
+
+ kill $(cat /run/bareos/fd/bareos-fd.9102.pid)
+
+ ;;
+
+ restart)
+
+ "$0" stop
+ "$0" start
+
+ ;;
+
+ *)
+
+ echo "usage: $0 [start|stop|restart]"
+
+ ;;
+
+esac
+
+# End of file