[arch-commits] Commit in uptimed/trunk (PKGBUILD uptimed.install)
Sergej Pupykin
spupykin at archlinux.org
Tue Apr 7 12:21:28 UTC 2015
Date: Tuesday, April 7, 2015 @ 14:21:28
Author: spupykin
Revision: 130882
upgpkg: uptimed 0.4.0-1
upd
Modified:
uptimed/trunk/PKGBUILD
uptimed/trunk/uptimed.install
-----------------+
PKGBUILD | 17 ++++-------------
uptimed.install | 8 +++++++-
2 files changed, 11 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-04-07 12:21:21 UTC (rev 130881)
+++ PKGBUILD 2015-04-07 12:21:28 UTC (rev 130882)
@@ -5,8 +5,8 @@
# Contributor: Tom Newsom <Jeepster at gmx.co.uk>
pkgname=uptimed
-pkgver=0.3.18
-pkgrel=2
+pkgver=0.4.0
+pkgrel=1
pkgdesc="A system uptime record daemon"
arch=(i686 x86_64)
#url="http://podgorny.cz/uptimed/"
@@ -17,20 +17,11 @@
backup=(etc/uptimed.conf)
install=$pkgname.install
source=("$pkgname-$pkgver.tar.gz::https://github.com/rpodgorny/uptimed/archive/v$pkgver.tar.gz")
-md5sums=('f76a5f549833590e84e23b955cc1f894')
+md5sums=('6c50b0671e7efed89efb4b956dc0f5e5')
-prepare() {
- 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
-}
-
build() {
cd $srcdir/$pkgname-$pkgver
+ ./autogen.sh
./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin
make
}
Modified: uptimed.install
===================================================================
--- uptimed.install 2015-04-07 12:21:21 UTC (rev 130881)
+++ uptimed.install 2015-04-07 12:21:28 UTC (rev 130882)
@@ -1,3 +1,9 @@
pre_remove() {
- rm -rf var/log/uptimed
+ rm -rf var/spool/uptimed
}
+
+pre_upgrade() {
+ if [ -d var/log/uptimed ] && [ ! -d var/spool/uptimed ]; then
+ mv var/log/uptimed var/spool/
+ fi
+}
More information about the arch-commits
mailing list