Date: Sunday, October 21, 2012 @ 09:32:47
  Author: tomegun
Revision: 169453

upgpkg: usermin 1.520-2

added systemd service file

Added:
  usermin/trunk/usermin.service
Modified:
  usermin/trunk/PKGBUILD

-----------------+
 PKGBUILD        |    9 +++++++--
 usermin.service |    9 +++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2012-10-21 11:36:14 UTC (rev 169452)
+++ PKGBUILD    2012-10-21 13:32:47 UTC (rev 169453)
@@ -2,7 +2,7 @@
 # Maintainer: Tobias Powalowski <tp...@archlinux.org>
 pkgname=usermin
 pkgver=1.520
-pkgrel=1
+pkgrel=2
 pkgdesc="a web interface that can be used to easily perform tasks like reading 
mail, setting up SSH or configuring mail forwarding"
 arch=(i686 x86_64)
 license=('custom:usermin')
@@ -45,6 +45,7 @@
 install=usermin.install
 
source=(http://downloads.sourceforge.net/sourceforge/webadmin/$pkgname-$pkgver.tar.gz
 
        usermin.rc 
+       usermin.service
        ftp://ftp.archlinux.org/other/usermin/usermin-config.tar.bz2) 
 
 build() {
@@ -116,7 +117,10 @@
   # enable user and password login
   sed -i -e '/localauth/d' $startdir/pkg/etc/usermin/miniserv.conf
 
-  #install rc file
+  #install systemd service file
+  install -D -m 644 $startdir/src/usermin.service 
$startdir/pkg/usr/lib/systemd/system/usermin.service
+ 
+ #install rc file
   install -D -m 755 $startdir/src/usermin.rc $startdir/pkg/etc/rc.d/usermin
 
   # delete temp dir
@@ -126,4 +130,5 @@
 }
 md5sums=('5819ba87796d9373a92116e90d1a35d4'
          'cfef4490cd1ef9517c0b39a7bd75c968'
+         'a5bd5e5ee779f8a3cf3d776ca77ee36e'
          'ec37a79f948f778224550930d2a7ca07')

Added: usermin.service
===================================================================
--- usermin.service                             (rev 0)
+++ usermin.service     2012-10-21 13:32:47 UTC (rev 169453)
@@ -0,0 +1,9 @@
+[Unit]
+Description=Usermin
+
+[Service]
+Type=forking
+ExecStart=/opt/usermin/miniserv.pl /etc/usermin/miniserv.conf
+
+[Install]
+WantedBy=multi-user.target

Reply via email to