summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO21
-rw-r--r--PKGBUILD36
-rwxr-xr-xsisiya-webui-php.install39
3 files changed, 96 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e7b35a510e1
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,21 @@
+pkgbase = sisiya-webui-php
+ pkgdesc = The SisIYA daemon.
+ pkgver = 0.6.31
+ pkgrel = 1
+ url = http://www.sisiya.org
+ install = sisiya-webui-php.install
+ arch = any
+ license = GPL2
+ depends = php
+ depends = php-gd
+ depends = php-pgsql
+ depends = sisiya-webui-images
+ backup = etc/sisiya/sisiya-webui-php/dbconf.php
+ backup = etc/sisiya/sisiya-webui-php/sisiya_admin_conf.php
+ backup = etc/sisiya/sisiya-webui-php/sisiya_common_conf.php
+ backup = etc/sisiya/sisiya-webui-php/sisiya_gui_conf.php
+ source = http://sourceforge.net/projects/sisiya/files/sisiya/0.6.31/pacman/sisiya-webui-php-0.6.31.tar.gz
+ md5sums = 5abee8382a7f6690e0b6c482bbce2891
+
+pkgname = sisiya-webui-php
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..295d1d1659a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,36 @@
+# Maintainer: Erdal Mutlu <erdal at sisiya dot org>
+pkgname=sisiya-webui-php
+pkgver=0.6.31
+pkgrel=1
+epoch=
+pkgdesc="The SisIYA daemon."
+arch=('any')
+url="http://www.sisiya.org"
+license=('GPL2')
+groups=()
+#depends=('php' 'php-gd' 'php-mysql' 'php-pgsql')
+depends=('php' 'php-gd' 'php-pgsql' 'sisiya-webui-images')
+makedepends=()
+checkdepends=()
+optdepends=()
+provides=()
+conflicts=()
+replaces=()
+backup=(
+ 'etc/sisiya/sisiya-webui-php/dbconf.php'
+ 'etc/sisiya/sisiya-webui-php/sisiya_admin_conf.php'
+ 'etc/sisiya/sisiya-webui-php/sisiya_common_conf.php'
+ 'etc/sisiya/sisiya-webui-php/sisiya_gui_conf.php'
+ )
+options=()
+install=$pkgname.install
+changelog=
+#source=("$pkgname-$pkgver-$pkgrel.tar.gz")
+source=("http://sourceforge.net/projects/sisiya/files/sisiya/$pkgver/pacman/$pkgname-$pkgver.tar.gz")
+noextract=()
+md5sums=('5abee8382a7f6690e0b6c482bbce2891') #generate with 'makepkg -g'
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make "DESTDIR=$pkgdir" install
+}
diff --git a/sisiya-webui-php.install b/sisiya-webui-php.install
new file mode 100755
index 00000000000..d4868265ee5
--- /dev/null
+++ b/sisiya-webui-php.install
@@ -0,0 +1,39 @@
+## arg 1: the old package version
+pre_remove()
+{
+ for f in /usr/share/sisiya-webui-php/index.php /usr/share/sisiya-webui-php/images/links /usr/share/sisiya-webui-php/images/systems /usr/share/sisiya-webui-php/images/tmp /usr/share/sisiya-webui-php/packages /usr/share/sisiya-webui-php/xmlconf
+ do
+ rm -f $f
+ done
+ for d in /var/tmp/sisiya-webui-php /var/lib/sisiya-webui-php/links
+ do
+ rm -rf $d
+ done
+}
+
+## arg 1: the new package version
+post_install() {
+ if test ! -h /usr/share/sisiya-webui-php/index.php ; then
+ ln -s /usr/share/sisiya-webui-php/sisiya_gui.php /usr/share/sisiya-webui-php/index.php
+ fi
+ if test ! -h /usr/share/sisiya-webui-php/images/links ; then
+ mkdir -p /var/lib/sisiya-webui-php/links
+ ln -s /var/lib/sisiya-webui-php/links /usr/share/sisiya-webui-php/images/links
+ fi
+ if test ! -h /usr/share/sisiya-webui-php/images/systems ; then
+ ln -s /var/lib/sisiya-webui-images /usr/share/sisiya-webui-php/images/systems
+ fi
+ if test ! -h /usr/share/sisiya-webui-php/images/tmp ; then
+ mkdir -p /var/tmp/sisiya-webui-php
+ ln -s /var/tmp/sisiya-webui-php /usr/share/sisiya-webui-php/images/tmp
+ fi
+ if test ! -h /usr/share/sisiya-webui-php/packages ; then
+ ln -s /var/lib/sisiya-webui-php/packages /usr/share/sisiya-webui-php/packages
+ fi
+ if test ! -h /usr/share/sisiya-webui-php/xmlconf ; then
+ ln -s /etc/sisiya/sisiya-remote-checks/conf.d /usr/share/sisiya-webui-php/xmlconf
+ fi
+ chown -R http /usr/share/sisiya-webui-php
+ chown -R http /var/lib/sisiya-webui-php
+ chown -R http /var/tmp/sisiya-webui-php
+}