[arch-commits] Commit in unrealircd/trunk (PKGBUILD unrealircd.rc)

Sergej Pupykin spupykin at nymeria.archlinux.org
Mon May 13 10:39:25 EDT 2013


    Date: Monday, May 13, 2013 @ 16:39:25
  Author: spupykin
Revision: 90730

upgpkg: unrealircd 3.2.10-2

upd

Modified:
  unrealircd/trunk/PKGBUILD
Deleted:
  unrealircd/trunk/unrealircd.rc

---------------+
 PKGBUILD      |    5 ----
 unrealircd.rc |   62 --------------------------------------------------------
 2 files changed, 1 insertion(+), 66 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2013-05-13 14:39:21 UTC (rev 90729)
+++ PKGBUILD	2013-05-13 14:39:25 UTC (rev 90730)
@@ -4,7 +4,7 @@
 
 pkgname=unrealircd
 pkgver=3.2.10
-pkgrel=1
+pkgrel=2
 pkgdesc="Open Source IRC Server"
 arch=('i686' 'x86_64')
 url="http://unrealircd.com"
@@ -15,11 +15,9 @@
 backup=('etc/unrealircd/unrealircd.conf'
 	'etc/conf.d/unrealircd')
 source=(http://www.unrealircd.com/downloads/Unreal$pkgver.tar.gz
-	unrealircd.rc
 	unrealircd.service
 	arch-fixes.patch)
 md5sums=('05b0bbdbfab9ffc2304f7595951d7cec'
-         '07ffa1e82a01f319a8b997e155d2af1d'
          '2103ce8a4a4e79f6955920bfebea0202'
          '77807313c4578f2c30286b9f9e3fb21c')
 
@@ -57,7 +55,6 @@
   mkdir -p $pkgdir/usr/lib/unrealircd
   mv $pkgdir/etc/unrealircd/modules $pkgdir/usr/lib/unrealircd/
   ln -s /usr/lib/unrealircd/modules $pkgdir/etc/unrealircd/modules
-  install -D -m0755 $srcdir/unrealircd.rc $pkgdir/etc/rc.d/unrealircd
 
   # log
   mkdir -p $pkgdir/var/log/unrealircd/

Deleted: unrealircd.rc
===================================================================
--- unrealircd.rc	2013-05-13 14:39:21 UTC (rev 90729)
+++ unrealircd.rc	2013-05-13 14:39:25 UTC (rev 90730)
@@ -1,62 +0,0 @@
-#!/bin/bash
-
-daemon_name=unrealircd
-
-. /etc/conf.d/unrealircd
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-get_pid() {
-	pidof ircd unrealircd
-}
-
-case "$1" in
-  start)
-    stat_busy "Starting $daemon_name daemon"
-
-    PID=`get_pid`
-    if [ -z "$PID" ]; then
-      [ -f /var/run/$daemon_name.pid ] && rm -f /var/run/$daemon_name.pid
-      # RUN
-      export PID_FILE="/var/run/unrealircd.pid"
-      su -c /usr/bin/unrealircd -p - $UNREALIRCD_USER 1>>/var/log/unrealircd/ircd.log 2>>/var/log/unrealircd/ircd.log
-      #
-      if [ $? -gt 0 ]; then
-        stat_fail
-        exit 1
-      else
-        echo `get_pid` > /var/run/$daemon_name.pid
-        add_daemon $daemon_name
-        stat_done
-      fi
-    else
-      stat_fail
-      exit 1
-    fi
-    ;;
-
-  stop)
-    stat_busy "Stopping $daemon_name daemon"
-    PID=`get_pid`
-    # KILL
-    [ ! -z "$PID" ] && kill $PID &> /dev/null
-    #
-    if [ $? -gt 0 ]; then
-      stat_fail
-      exit 1
-    else
-      rm -f /var/run/$daemon_name.pid &> /dev/null
-      rm_daemon $daemon_name
-      stat_done
-    fi
-    ;;
-
-  restart)
-    $0 stop
-    sleep 3
-    $0 start
-    ;;
-  *)
-    echo "usage: $0 {start|stop|restart}"  
-esac
-exit 0



More information about the arch-commits mailing list