summaryrefslogtreecommitdiff
path: root/community-testing/system-tools-backends
diff options
context:
space:
mode:
authorroot <root@rshg047.dnsready.net>2011-04-08 04:18:44 +0000
committerroot <root@rshg047.dnsready.net>2011-04-08 04:18:44 +0000
commit59075f0265483f32e9ac4c67ba9e69cb019ba044 (patch)
treed0384b724b17b888dcd1cf06dce9bc25655d1ba1 /community-testing/system-tools-backends
parent3b216f42d91b33161572550f4556a9ba93d1cecb (diff)
Fri Apr 8 04:18:44 UTC 2011
Diffstat (limited to 'community-testing/system-tools-backends')
-rw-r--r--community-testing/system-tools-backends/PKGBUILD37
-rw-r--r--community-testing/system-tools-backends/system-tools-backends.install12
2 files changed, 49 insertions, 0 deletions
diff --git a/community-testing/system-tools-backends/PKGBUILD b/community-testing/system-tools-backends/PKGBUILD
new file mode 100644
index 000000000..357916ff3
--- /dev/null
+++ b/community-testing/system-tools-backends/PKGBUILD
@@ -0,0 +1,37 @@
+# Maintainer : Ionut Biru <ibiru@archlinux.org>
+# Contributor: Hugo Doria <hugo@archlinux.org>
+
+pkgname=system-tools-backends
+pkgver=2.10.2
+pkgrel=1
+pkgdesc='Backends for Gnome System Tools.'
+arch=('i686' 'x86_64')
+url='http://system-tools-backends.freedesktop.org/'
+license=('GPL')
+depends=('perl' 'perl-net-dbus' 'dbus' 'polkit' 'dbus-glib')
+makedepends=('perlxml' 'pkgconfig' 'intltool')
+source=(http://ftp.gnome.org/pub/gnome/sources/${pkgname}/2.10/${pkgname}-${pkgver}.tar.bz2)
+install=system-tools-backends.install
+sha256sums=('1dbe5177df46a9c7250735e05e77129fe7ec04840771accfa87690111ca2c670')
+
+build() {
+ cd ${pkgname}-${pkgver}
+
+ ./configure \
+ --prefix=/usr \
+ --with-dbus-sys=/etc/dbus-1/system.d \
+ --localstatedir=/var \
+ --mandir=/usr/share \
+ --disable-static
+
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ #clean up man
+ rm -rf $pkgdir/usr/share/system-tools-backends-2.0/modules/share/
+}
diff --git a/community-testing/system-tools-backends/system-tools-backends.install b/community-testing/system-tools-backends/system-tools-backends.install
new file mode 100644
index 000000000..e83a93525
--- /dev/null
+++ b/community-testing/system-tools-backends/system-tools-backends.install
@@ -0,0 +1,12 @@
+post_install() {
+ echo "==> Daemon method deprecated. Now is starting automatically at login"
+ echo "==> Remove stbd from DAEMONS list"
+}
+
+post_upgrade() {
+ if [ `vercmp $2 2.6.1-2` -eq 0 ]; then
+ echo "Removing stb-admin group"
+ groupdel stb-admin &> /dev/null
+ fi
+ post_install $1
+}