vegadns.patch
author Tomas Zeman <tzeman@volny.cz>
Fri, 04 May 2012 20:24:29 +0200
changeset 138 ef1e8be95300
parent 115 473b0add854d
permissions -rw-r--r--
removed vim.patch

From: Tomas Zeman <tzeman@volny.cz>
Date: Fri, 21 Dec 2007 00:38:25 +0100

vegadns

diff -r 2c76c1dbf35e source/custom/vegadns/FrugalBuild
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/source/custom/vegadns/FrugalBuild	Wed Feb 15 15:27:40 2012 +0100
@@ -0,0 +1,30 @@
+# Maintainer: Tomas Zeman <tzeman@volny.cz>
+
+pkgname=vegadns
+pkgver=0.9.10
+pkgrel=2
+pkgdesc="tinydns administration tool"
+_F_sourceforge_dirname="vegadns"
+_F_sourceforge_ext=".tgz"
+Finclude sourceforge
+backup=(etc/vegadns/config.php)
+url="http://www.vegadns.org/"
+purl="http://sourceforge.net/project/showfiles.php?group_id=136918"
+depends=('php' 'libmysqlclient')
+archs=('i686')
+up2date="lynx -nolist -dump '$purl'|grep -m1 '$pkgname-stable'|sed 's/.*$pkgname-\([0-9.]*\) .*/\1/'"
+sha1sums=('18403649ca84743622defd79f37e5cbc6b21c822')
+
+build() {
+	www='/var/www'
+	Fmkdir $www/$pkgname /etc/$pkgname /usr/share/$pkgname
+	Fcd
+	mv .htaccess *.php images smarty src templates $Fdestdir$www/$pkgname || Fdie
+	mv update-data.sh $Fdestdir/usr/share/$pkgname/update-data || Fdie
+	Fmkdir /var/$pkgname/{templates_c,configs,cache,sessions}
+	chown -R nobody:nobody $Fdestdir/var/$pkgname || Fdie
+	chmod -R 770 $Fdestdir/var/$pkgname || Fdie
+	Fmv $www/$pkgname/src/config.php /etc/$pkgname/
+	Fsed '$private_dirs .*' "\$private_dirs = '/var/$pkgname';" $Fdestdir/etc/$pkgname/config.php
+	Fln /etc/$pkgname/config.php $www/$pkgname/src/config.php
+}