1
0
forked from ports/contrib

baras: initial import

This commit is contained in:
Simon Gloßner 2008-08-20 23:39:42 +02:00
parent 0ccc06fd00
commit 384a2d2d90
4 changed files with 87 additions and 0 deletions

13
baras/.footprint Normal file
View File

@ -0,0 +1,13 @@
drwxr-xr-x root/root etc/
drwxr-xr-x root/root etc/baras/
-rw-r--r-- root/root etc/baras/baras.conf
-rw-r--r-- root/root etc/baras/baras.dcf
-rw-r--r-- root/root etc/baras/rotation.schedule
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
lrwxrwxrwx root/root usr/bin/baras -> /usr/lib/baras/baras.pl
drwxr-xr-x root/root usr/lib/
drwxr-xr-x root/root usr/lib/baras/
-rwxr-xr-x root/root usr/lib/baras/ADMConfProcess.pm
-rw-r--r-- root/root usr/lib/baras/ADMMailHandler.pm
-rwxr-xr-x root/root usr/lib/baras/baras.pl

2
baras/.md5sum Normal file
View File

@ -0,0 +1,2 @@
5301cc79be413e6820d702bef5319b02 baras-099a.tar.bz2
6c0f5bcc9fa3d3aa7bd61872bf832a2d baras.patch

29
baras/Pkgfile Normal file
View File

@ -0,0 +1,29 @@
# Description: backup script utilizing DAR (Disk ARchive)
# URL: http://sourceforge.net/projects/baras
# Maintainer: Simon Gloßner, viper at hometux dot de
# Packager: Simon Gloßner, viper at hometux dot de
# Depends on: dar
# Nice to have: par2cmdline
name=baras
version=099a
release=1
source=(http://dl.sourceforge.net/baras/$name-$version.tar.bz2 baras.patch)
build() {
cd $name
patch -p1 < $SRC/baras.patch
mkdir -p $PKG/etc/baras
mkdir -p $PKG/usr/bin
mkdir -p $PKG/usr/lib/baras
install -m 0755 ADMConfProcess.pm $PKG/usr/lib/baras/
install -m 0644 ADMMailHandler.pm $PKG/usr/lib/baras/
install -m 0755 baras.pl $PKG/usr/lib/baras/
install -m 0644 etc/baras/* $PKG/etc/baras/
ln -s /usr/lib/baras/baras.pl $PKG/usr/bin/baras
}

43
baras/baras.patch Normal file
View File

@ -0,0 +1,43 @@
diff -Nru baras/baras.pl baras-new/baras.pl
--- baras/baras.pl 2007-08-13 03:36:01.000000000 +0200
+++ baras-new/baras.pl 2008-08-20 23:30:19.000000000 +0200
@@ -1,7 +1,7 @@
#!/usr/bin/perl -w
BEGIN {
- push @INC, "/var/adm/baras/";
+ push @INC, "/usr/lib/baras/";
}
use strict;
use warnings;
diff -Nru baras/etc/baras/baras.conf baras-new/etc/baras/baras.conf
--- baras/etc/baras/baras.conf 2007-08-13 03:37:10.000000000 +0200
+++ baras-new/etc/baras/baras.conf 2008-08-20 23:32:16.000000000 +0200
@@ -50,8 +50,8 @@
REMOVE_FIRST="no"
# PAR2 usage
-PAR_ARCHIVE="two"
-PAR2=/usr/bin/par2
+#PAR_ARCHIVE="two"
+#PAR2=/usr/bin/par2
#PAR2_PERCENTAGE=5
# Pre-processing
@@ -88,13 +88,13 @@
#BASENAME="$(date +'%m-%d-%Y_%H%M')"
# The location of the DAR executable file
-DAR_BINARY="/usr/local/bin/dar"
+DAR_BINARY="/usr/bin/dar"
# The location of the DAR MANAGER executable file
-DAR_MGR_BINARY="/usr/local/bin/dar_manager"
+DAR_MGR_BINARY="/usr/bin/dar_manager"
# The location of the statically-compiled DAR executable file
-DAR_STATIC="/usr/local/bin/dar_static"
+DAR_STATIC="/usr/bin/dar_static"
# The temporary directory name that backups will be created in. This will be created underneath $DESTINATION.
WORK_DIR=".baras_temp_workdir"