[arch-commits] Commit in fssos-nsvs/trunk (PKGBUILD fssos-nsvs.install nsvsd)

Eric Bélanger eric at archlinux.org
Thu Mar 5 02:13:05 UTC 2009


    Date: Wednesday, March 4, 2009 @ 21:13:05
  Author: eric
Revision: 29067

upgpkg: fssos-nsvs 0.5-4
    Fixed source array, added arch field, fixed license, added backup array, disabled SMP build, fixed build issue, fixed daemon script, cleaned up install scriptlet

Modified:
  fssos-nsvs/trunk/PKGBUILD
  fssos-nsvs/trunk/fssos-nsvs.install
  fssos-nsvs/trunk/nsvsd

--------------------+
 PKGBUILD           |   29 +++++++++++++----------------
 fssos-nsvs.install |    9 ---------
 nsvsd              |    3 ++-
 3 files changed, 15 insertions(+), 26 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-03-05 01:51:58 UTC (rev 29066)
+++ PKGBUILD	2009-03-05 02:13:05 UTC (rev 29067)
@@ -4,25 +4,22 @@
 
 pkgname=fssos-nsvs
 pkgver=0.5
-pkgrel=3
+pkgrel=4
 pkgdesc="NSVS for FSSOS"
-backup=(etc/nsvsd.conf)
+arch=('i686' 'x86_64')
 url="http://fssos.sourceforge.net/"
-license="GNU GPL"
+license=('GPL')
 depends=('bash' 'mysql>=5.0.15' 'mysql<=5.0.9999')
-install=($pkgname.install)
-source=(http://dl.sourceforge.net/sourceforge/fssos/nsvs-$pkgver.tar.gz nsvsd \
-	fssos-nsvs.install)
-md5sums=('3f17c2f6339f1a322b712b467023d825' '4a7189354be6dd44f3a8d655a6d38775' \
-	'f71c19df8cabcfb23f6285ee75988668')
+backup=('etc/nsvsd.conf')
+options=('!libtool' '!makeflags')
+install=$pkgname.install
+source=(http://downloads.sourceforge.net/sourceforge/fssos/nsvs-$pkgver.tar.gz nsvsd)
+md5sums=('3f17c2f6339f1a322b712b467023d825' '4dfd9dc0d69b375587e39ab2621d9ea9')
 
 build() {
-  cd $startdir/src/nsvs-$pkgver
-  ./configure --prefix=/usr --sysconfdir=/etc
-  make || return 1
-  make DESTDIR=$startdir/pkg install
-  mkdir -p $startdir/pkg/etc/rc.d
-  cp -p $startdir/src/nsvsd $startdir/pkg/etc/rc.d/
-  # libtoolslay
-  find $startdir/pkg -name '*.la' -exec rm {} \;
+  cd $srcdir/nsvs-$pkgver
+  ./configure --prefix=/usr --sysconfdir=/etc || return 1
+  make CFLAGS="${CFLAGS} -D_GNU_SOURCE" || return 1
+  make DESTDIR=$pkgdir install || return 1
+  install -D -m755 $srcdir/nsvsd $pkgdir/etc/rc.d/nsvsd || return 1
 }

Modified: fssos-nsvs.install
===================================================================
--- fssos-nsvs.install	2009-03-05 01:51:58 UTC (rev 29066)
+++ fssos-nsvs.install	2009-03-05 02:13:05 UTC (rev 29067)
@@ -1,4 +1,3 @@
-# arg 1:  the new package version
 post_install() {
     if [ -z "`grep '^nsvsd::' /etc/group`" ]; then
 	groupadd -g 83 nsvsd
@@ -8,19 +7,11 @@
     fi
 }
 
-# arg 1:  the new package version
-# arg 2:  the old package version
 post_upgrade() {
     post_install $1
 }
 
-# arg 1:  the old package version
 pre_remove() {
     userdel nsvsd &> /dev/null
     groupdel nsvsd &> /dev/null
 }
-
-op=$1
-shift
-
-$op $*

Modified: nsvsd
===================================================================
--- nsvsd	2009-03-05 01:51:58 UTC (rev 29066)
+++ nsvsd	2009-03-05 02:13:05 UTC (rev 29067)
@@ -18,6 +18,7 @@
   stop)
     stat_busy "Stopping nsvsd"
     kill `cat /var/run/nsvsd.pid` &>/dev/null
+    rm -f /var/run/nsvsd.pid
     if [ $? -gt 0 ]; then
       stat_fail
     else
@@ -31,5 +32,5 @@
     $0 start
     ;;
   *)
-    echo "usage: $0 {start|stop|restart|reload}"  
+    echo "usage: $0 {start|stop|restart}"  
 esac




More information about the arch-commits mailing list