You are not logged in.
Confstore is a configuration backup utility. Confstore scans your system for all recognised configuration files and then stores them in a simple archive. Confstore can also read these archives, restore configuration from them, upload them to a FTP server, mail them to an email account, encrypt them and maintain a master archive of all of them.
Offline
to run it:
confstore.pl -s -d=/usr/share/confstore/defs/locations.def
PKGBUILD:
pkgname=confstore
pkgver=0.5.4
pkgrel=1
pkgdesc="Confstore is a configuration backup utility. Confstore scans your system for all recognised configuration files and then stores them in a simple archive."
url="http://confstore.sourceforge.net/"
license=""
depends=(perl)
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=(http://dl.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz)
md5sums=('3479472ef38ba5cda5eb2d34a1359c90')
build() {
cd $startdir/src/$pkgname
mkdir -p $startdir/pkg/usr/share
mkdir -p $startdir/pkg/usr/bin
sed -i 's/$CS_CONFIG_PATH = '"'"'./cs.conf'"'"';/$CS_CONFIG_PATH = '"'"'/usr/share/confstore/cs.conf'"'"';/g' $startdir/src/$pkgname/confstore.pl
cp -r $startdir/src/confstore $startdir/pkg/usr/share
cd $startdir/pkg/usr/bin
ln -s ../share/confstore/confstore.pl .
}
Offline
thanx! Pajaro
Offline
Hi and thanks for the PKGBUILD.
Doesn't this line overwrite the confstore.pl file, resulting in a zero sized file?
cat $startdir/src/confstore/confstore.pl|sed 's/$CS_CONFIG_PATH = '"'"'./cs.conf'"'"';/$CS_CONFIG_PATH = '"'"'/usr/share/confstore/cs.conf'"'"';/g'>$startdir/src/confstore/confstore.pl
For in-place sed changes to the confstore.pl might this be better?
sed -i 's/$CS_CONFIG_PATH = '"'"'./cs.conf'"'"';/$CS_CONFIG_PATH = '"'"'/usr/share/confstore/cs.conf'"'"';/g' $startdir/src/$pkgname/confstore.pl
cheers
Offline
Hi all. Due to a couple of posts in this thread getting lost (see: [URL=http://bbs.archlinux.org/viewtopic.php?t=10153]Loss of posts and registrations[/URL]), I'll summarise and state that Pajaro's PKGBUILD works fine, as long as you don't use an older version of sed (I was using 4.1.2-x when I had the problem), version 4.1.4-1 seems fine.
cheers
Offline
thanks, badger
Updating the pkgbuild again...
Offline