You are not logged in.

#1 2005-02-15 19:49:22

ro0x
Member
From: Santiago, Chile
Registered: 2004-06-20
Posts: 79

[request] confstore

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.

http://confstore.sourceforge.net/

Offline

#2 2005-02-15 20:38:49

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: [request] confstore

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

#3 2005-02-15 20:50:50

ro0x
Member
From: Santiago, Chile
Registered: 2004-06-20
Posts: 79

Re: [request] confstore

thanx! Pajaro

Offline

#4 2005-02-19 06:26:59

badger
Member
From: Melb
Registered: 2004-07-21
Posts: 76

Re: [request] confstore

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

#5 2005-02-21 05:16:53

badger
Member
From: Melb
Registered: 2004-07-21
Posts: 76

Re: [request] confstore

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

#6 2005-02-21 21:27:00

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: [request] confstore

thanks, badger smile

Updating the pkgbuild again...

Offline

Board footer

Powered by FluxBB