aboutsummaryrefslogtreecommitdiff
path: root/sysutils/boxbackup-devel/files
diff options
context:
space:
mode:
authorSergey Matveychuk <sem@FreeBSD.org>2005-02-25 09:09:51 +0000
committerSergey Matveychuk <sem@FreeBSD.org>2005-02-25 09:09:51 +0000
commit549964a2dc66846bf7be875b511b44630432458f (patch)
tree452529bd4eccb9d202cdb0a0569f8b66678fc138 /sysutils/boxbackup-devel/files
parent47f86a1f1be7309b63e22779a1aef43bfa056537 (diff)
downloadports-549964a2dc66846bf7be875b511b44630432458f.tar.gz
ports-549964a2dc66846bf7be875b511b44630432458f.zip
This is a new port for BoxBackup, an on-line backup system.
PR: ports/75990 Submitted by: James O'Gorman <james (at) netinertia.co.uk>
Notes
Notes: svn path=/head/; revision=129733
Diffstat (limited to 'sysutils/boxbackup-devel/files')
-rw-r--r--sysutils/boxbackup-devel/files/bbackupd.sh26
-rw-r--r--sysutils/boxbackup-devel/files/bbstored.sh26
-rw-r--r--sysutils/boxbackup-devel/files/patch-infrastrcture-BoxPlatform.pm11
-rw-r--r--sysutils/boxbackup-devel/files/patch-lib-common-BoxPortsAndFiles.h22
-rw-r--r--sysutils/boxbackup-devel/files/pkg-message.client4
-rw-r--r--sysutils/boxbackup-devel/files/pkg-message.server4
6 files changed, 93 insertions, 0 deletions
diff --git a/sysutils/boxbackup-devel/files/bbackupd.sh b/sysutils/boxbackup-devel/files/bbackupd.sh
new file mode 100644
index 000000000000..38ad3fdf2127
--- /dev/null
+++ b/sysutils/boxbackup-devel/files/bbackupd.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+#
+# PROVIDE: bbackupd
+# REQUIRE: NETWORKING
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable bbackupd:
+#
+#bbackupd_enable="YES"
+#
+
+bbackupd_enable=${bbackupd_enable-"NO"}
+bbackupd_flags=${bbackupd_flags-"/usr/local/etc/box/bbackupd.conf"}
+bbackupd_pidfile=${bbackupd_pidfile-"/var/run/bbackupd.pid"}
+
+. /etc/rc.subr
+
+name="bbackupd"
+rcvar=`set_rcvar`
+command="/usr/local/bin/bbackupd"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/sysutils/boxbackup-devel/files/bbstored.sh b/sysutils/boxbackup-devel/files/bbstored.sh
new file mode 100644
index 000000000000..8cd64ffa860a
--- /dev/null
+++ b/sysutils/boxbackup-devel/files/bbstored.sh
@@ -0,0 +1,26 @@
+#!/bin/sh
+#
+#
+# PROVIDE: bbstored
+# REQUIRE: NETWORKING
+# KEYWORD: FreeBSD shutdown
+
+#
+# Add the following line to /etc/rc.conf to enable bbstored:
+#
+#bbstored_enable="YES"
+#
+
+bbstored_enable=${bbstored_enable-"NO"}
+bbstored_flags=${bbstored_flags-"/usr/local/etc/box/bbstored.conf"}
+bbstored_pidfile=${bbstored_pidfile-"/var/run/bbstored.pid"}
+
+. /etc/rc.subr
+
+name="bbstored"
+rcvar=`set_rcvar`
+command="/usr/local/bin/bbstored"
+extra_commands="reload"
+
+load_rc_config $name
+run_rc_command "$1"
diff --git a/sysutils/boxbackup-devel/files/patch-infrastrcture-BoxPlatform.pm b/sysutils/boxbackup-devel/files/patch-infrastrcture-BoxPlatform.pm
new file mode 100644
index 000000000000..8feda5a2cf96
--- /dev/null
+++ b/sysutils/boxbackup-devel/files/patch-infrastrcture-BoxPlatform.pm
@@ -0,0 +1,11 @@
+--- infrastructure/BoxPlatform.pm.orig Sat Jan 8 13:27:12 2005
++++ infrastructure/BoxPlatform.pm Sat Jan 8 13:27:33 2005
+@@ -78,7 +78,7 @@
+ close VERSION;
+
+ # where to put the files
+- $install_into_dir = '/usr/local/bin';
++ $install_into_dir = '%%PREFIX%%/bin';
+
+ # if it's Darwin,
+ if($build_os eq 'Darwin')
diff --git a/sysutils/boxbackup-devel/files/patch-lib-common-BoxPortsAndFiles.h b/sysutils/boxbackup-devel/files/patch-lib-common-BoxPortsAndFiles.h
new file mode 100644
index 000000000000..91820e35a3d1
--- /dev/null
+++ b/sysutils/boxbackup-devel/files/patch-lib-common-BoxPortsAndFiles.h
@@ -0,0 +1,22 @@
+--- lib/common/BoxPortsAndFiles.h.orig Sat Jan 8 13:30:04 2005
++++ lib/common/BoxPortsAndFiles.h Sat Jan 8 13:31:40 2005
+@@ -54,16 +54,16 @@
+
+ // Backup store daemon
+ #define BOX_PORT_BBSTORED (BOX_PORT_BASE+1)
+-#define BOX_FILE_BBSTORED_DEFAULT_CONFIG "/etc/box/bbstored.conf"
++#define BOX_FILE_BBSTORED_DEFAULT_CONFIG "%%PREFIX%%/etc/box/bbstored.conf"
+ // directory within the RAIDFILE root for the backup store daemon
+ #define BOX_RAIDFILE_ROOT_BBSTORED "backup"
+
+ // Backup client daemon
+-#define BOX_FILE_BBACKUPD_DEFAULT_CONFIG "/etc/box/bbackupd.conf"
++#define BOX_FILE_BBACKUPD_DEFAULT_CONFIG "%%PREFIX%%/etc/box/bbackupd.conf"
+
+
+ // RaidFile conf location efault
+-#define BOX_FILE_RAIDFILE_DEFAULT_CONFIG "/etc/box/raidfile.conf"
++#define BOX_FILE_RAIDFILE_DEFAULT_CONFIG "%%PREFIX%%/etc/box/raidfile.conf"
+
+
+ #endif // BOXPORTSANDFILES__H
diff --git a/sysutils/boxbackup-devel/files/pkg-message.client b/sysutils/boxbackup-devel/files/pkg-message.client
new file mode 100644
index 000000000000..2890641287b5
--- /dev/null
+++ b/sysutils/boxbackup-devel/files/pkg-message.client
@@ -0,0 +1,4 @@
+
+To run bbackupd at startup, add bbackupd_enable="YES" to /etc/rc.conf
+Please see http://www.fluffy.co.uk/boxbackup/client.html for client
+configuration options
diff --git a/sysutils/boxbackup-devel/files/pkg-message.server b/sysutils/boxbackup-devel/files/pkg-message.server
new file mode 100644
index 000000000000..7d39f96cd48f
--- /dev/null
+++ b/sysutils/boxbackup-devel/files/pkg-message.server
@@ -0,0 +1,4 @@
+
+To run bbstored at startup, add bbstored_enable="YES" to /etc/rc.conf
+Please see http://www.fluffy.co.uk/boxbackup/server.html for server
+configuration options