[arch-commits] Commit in uptimed/trunk (PKGBUILD rc.d)
Sergej Pupykin
spupykin at nymeria.archlinux.org
Mon May 13 14:40:05 UTC 2013
Date: Monday, May 13, 2013 @ 16:40:04
Author: spupykin
Revision: 90732
upgpkg: uptimed 0.3.17-3
upd
Modified:
uptimed/trunk/PKGBUILD
Deleted:
uptimed/trunk/rc.d
----------+
PKGBUILD | 10 ++++------
rc.d | 39 ---------------------------------------
2 files changed, 4 insertions(+), 45 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2013-05-13 14:39:46 UTC (rev 90731)
+++ PKGBUILD 2013-05-13 14:40:04 UTC (rev 90732)
@@ -6,7 +6,7 @@
pkgname=uptimed
pkgver=0.3.17
-pkgrel=2
+pkgrel=3
pkgdesc="A system uptime record daemon"
arch=(i686 x86_64)
url="http://podgorny.cz/uptimed/"
@@ -16,20 +16,19 @@
options=('!libtool')
install=$pkgname.install
source=(http://podgorny.cz/$pkgname/releases/$pkgname-$pkgver.tar.bz2
- rc.d
service)
md5sums=('528b62c33454b33537c3bf2366977bdb'
- '4ae90bee9fc78014a889a5072effb735'
'657102b06613ddb9811427bee1973c6b')
build() {
cd $srcdir/$pkgname-$pkgver
-
+
# Change log path to Arch standard
for M in `ls M*`; do
sed -i "s|/var/spool/uptimed|/var/log/uptimed|" $M
done
sed -i 's|spool|log|' libuptimed/urec.h
+ sed -i 's|AM_CONFIG_HEADER|AC_CONFIG_HEADER|g' configure.ac
autoreconf
libtoolize --force
@@ -40,9 +39,8 @@
package() {
cd $srcdir/$pkgname-$pkgver
- make prefix=$pkgdir/usr sysconfdir=$pkgdir/etc install
+ make install DESTDIR=$pkgdir
mv $pkgdir/etc/uptimed.conf-dist $pkgdir/etc/uptimed.conf
- install -Dm755 $srcdir/rc.d $pkgdir/etc/rc.d/uptimed
install -Dm644 $srcdir/service $pkgdir/usr/lib/systemd/system/uptimed.service
}
Deleted: rc.d
===================================================================
--- rc.d 2013-05-13 14:39:46 UTC (rev 90731)
+++ rc.d 2013-05-13 14:40:04 UTC (rev 90732)
@@ -1,39 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-PID=`pidof -o %PPID /usr/sbin/uptimed`
-case "$1" in
- start)
- stat_busy "Starting Uptimed Daemon"
- [ -z "$PID" ] && /usr/sbin/uptimed -b # create the boot record
- if [ $? -gt 0 ] ; then
- stat_fail
- else
- add_daemon uptimed # create the 'state' dir
- /usr/sbin/uptimed # fire up the daemon
- if [ $? -gt 0 ]; then
- stat_fail
- fi
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Uptimed Daemon"
- [ "$PID" ] && kill $PID &> /dev/null
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon uptimed # remove the 'state' dir
- stat_done
- fi
- ;;
- restart)
- $0 stop
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0
More information about the arch-commits
mailing list