[arch-commits] Commit in deluge/trunk (PKGBUILD deluge.install)

Jan Steffens heftig at archlinux.org
Sat Mar 10 05:43:18 EST 2012


    Date: Saturday, March 10, 2012 @ 05:43:17
  Author: heftig
Revision: 152857

Set ownership in package; Generate rundir on upgrade

Modified:
  deluge/trunk/PKGBUILD
  deluge/trunk/deluge.install

----------------+
 PKGBUILD       |    6 ++++--
 deluge.install |    9 +++++----
 2 files changed, 9 insertions(+), 6 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2012-03-10 09:53:45 UTC (rev 152856)
+++ PKGBUILD	2012-03-10 10:43:17 UTC (rev 152857)
@@ -5,7 +5,7 @@
 
 pkgname=deluge
 pkgver=1.3.4
-pkgrel=1
+pkgrel=2
 pkgdesc="A BitTorrent client with multiple user interfaces in a client/server model"
 arch=('any')
 url="http://deluge-torrent.org/"
@@ -46,11 +46,13 @@
       -i "$_dir/web/gen_gettext.py"
 
   cd ..
-  install -d "$pkgdir/srv/deluge"
   install -Dm644 deluge.tmpfiles.conf "$pkgdir/usr/lib/tmpfiles.d/deluge.conf"
   install -D deluged "$pkgdir/etc/rc.d/deluged"
   install -D deluge-web "$pkgdir/etc/rc.d/deluge-web"
   install -Dm644 deluged.service "$pkgdir/lib/systemd/system/deluged.service"
   install -Dm644 deluge-web.service "$pkgdir/lib/systemd/system/deluge-web.service"
   install -Dm644 deluged.conf "$pkgdir/etc/conf.d/deluged"
+ 
+  install -d "$pkgdir/srv"
+  install -d -o 125 -g 125 "$pkgdir/srv/deluge"
 }

Modified: deluge.install
===================================================================
--- deluge.install	2012-03-10 09:53:45 UTC (rev 152856)
+++ deluge.install	2012-03-10 10:43:17 UTC (rev 152857)
@@ -5,9 +5,6 @@
     passwd -l deluge &>/dev/null
   fi
 
-  mkdir -p run/deluge
-  chown deluge:deluge srv/deluge run/deluge
-  
   post_upgrade
 
 cat <<EOF
@@ -17,6 +14,9 @@
 }
 
 post_upgrade() {
+  mkdir -p run/deluge
+  chown deluge:deluge run/deluge
+  
   gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
   update-desktop-database -q
 }
@@ -25,5 +25,6 @@
   getent passwd deluge &>/dev/null && userdel deluge
   getent group deluge &>/dev/null && groupdel deluge
 
-  post_upgrade
+  gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
+  update-desktop-database -q
 }



More information about the arch-commits mailing list