summaryrefslogtreecommitdiffstats
path: root/abs/extra/sysstat
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2012-11-26 15:04:05 (GMT)
committerJames Meyer <james.meyer@operamail.com>2012-11-26 15:04:05 (GMT)
commitfccef9fc28ca5fdd0df77801164ad9a2063ce585 (patch)
tree9b82b875604ebff759418275f1009313d964a50e /abs/extra/sysstat
parent360da4deba34e8f7f8d99f959b0d961a3c5be407 (diff)
downloadlinhes_pkgbuild-fccef9fc28ca5fdd0df77801164ad9a2063ce585.zip
linhes_pkgbuild-fccef9fc28ca5fdd0df77801164ad9a2063ce585.tar.gz
linhes_pkgbuild-fccef9fc28ca5fdd0df77801164ad9a2063ce585.tar.bz2
systat: 10.1.2
Diffstat (limited to 'abs/extra/sysstat')
-rw-r--r--abs/extra/sysstat/PKGBUILD19
-rw-r--r--abs/extra/sysstat/sysstat10
-rw-r--r--abs/extra/sysstat/sysstat.service11
3 files changed, 30 insertions, 10 deletions
diff --git a/abs/extra/sysstat/PKGBUILD b/abs/extra/sysstat/PKGBUILD
index 07c36c2..0c7867a 100644
--- a/abs/extra/sysstat/PKGBUILD
+++ b/abs/extra/sysstat/PKGBUILD
@@ -1,9 +1,9 @@
-# $Id$
+# $Id: PKGBUILD 77464 2012-10-10 16:04:46Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Martin Devera <devik@cdi.cz>
pkgname=sysstat
-pkgver=10.0.1
+pkgver=10.1.2
pkgrel=1
pkgdesc="a collection of performance monitoring tools (iostat,isag,mpstat,pidstat,sadf,sar)"
arch=('i686' 'x86_64')
@@ -13,14 +13,19 @@ depends=('lm_sensors')
optdepends=('tk: to use isag'
'gnuplot: to use isag')
options=(zipman)
+backup=('etc/conf.d/sysstat'
+ 'etc/conf.d/sysstat.ioconf')
source=(http://pagesperso-orange.fr/sebastien.godard/$pkgname-$pkgver.tar.gz
- sysstat)
-md5sums=('a8b12230452dc0e0b6cae5fd5ec3c579'
- 'ad46159609a2c13b4a46b506ff847bf6')
+ sysstat
+ sysstat.service)
+md5sums=('c40626b96cc2b4cf303cbcf1efc96eba'
+ '3ce41ebf7330aba01e70b38658afed1f'
+ '12ba479c606620193e8b7c6e982d5088')
build() {
cd $srcdir/$pkgname-$pkgver
- ./configure --prefix=/usr \
+ conf_dir=/etc/conf.d ./configure --prefix=/usr \
+ --enable-yesterday \
--mandir=/usr/share/man \
--enable-install-isag \
--disable-man-group
@@ -30,9 +35,9 @@ build() {
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install
- install -D -m 644 sysstat.sysconfig $pkgdir/etc/sysstat/sysstat
install -D -m 744 cron/sysstat.cron.hourly $pkgdir/etc/cron.hourly/sysstat
install -D -m 744 cron/sysstat.cron.daily $pkgdir/etc/cron.daily/sysstat
install -D -m 755 $srcdir/sysstat $pkgdir/etc/rc.d/sysstat
chown -R root:root $pkgdir
+ install -Dm0644 $srcdir/$pkgname.service $pkgdir/usr/lib/systemd/system/$pkgname.service
}
diff --git a/abs/extra/sysstat/sysstat b/abs/extra/sysstat/sysstat
index d8e312a..d0e40aa 100644
--- a/abs/extra/sysstat/sysstat
+++ b/abs/extra/sysstat/sysstat
@@ -1,21 +1,25 @@
#!/bin/bash
-. /etc/rc.conf
. /etc/rc.d/functions
+. /etc/conf.d/sysstat
+. /etc/rc.conf
case "$1" in
start)
stat_busy "Writing SysStat restart record"
- /usr/lib/sa/sadc -L -F -
+ /usr/lib/sa/sadc -L -F ${SADC_OPTIONS} -
if [ $? -gt 0 ]; then
stat_fail
else
+ add_daemon sysstat
stat_done
fi
;;
stop)
+ echo "Stopping SysStat is useless"
+ rm_daemon sysstat
;;
*)
- echo "usage: $0 {start|stop}"
+ echo "usage: $0 {start|stop}"
esac
exit 0
diff --git a/abs/extra/sysstat/sysstat.service b/abs/extra/sysstat/sysstat.service
new file mode 100644
index 0000000..2ff2365
--- /dev/null
+++ b/abs/extra/sysstat/sysstat.service
@@ -0,0 +1,11 @@
+[Unit]
+Description= Resets System Activity Logs
+After=syslog.target
+
+[Service]
+Type=oneshot
+ExecStart=/usr/lib/sa/sa1 --boot
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target