aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-28 02:29:16 +0000
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-28 02:29:16 +0000
commit5226734e89c1d9b4c5fa0575d356a3edf05a22e3 (patch)
tree926e2c19c2d017b7f91a0ca23dfe81a16a72105b
parentdef17992d217c261d480259e5f5da74dde24d07b (diff)
downloadaports-5226734e89c1d9b4c5fa0575d356a3edf05a22e3.tar.bz2
aports-5226734e89c1d9b4c5fa0575d356a3edf05a22e3.tar.xz
testing/uptimed: upgrade to 0.4.0
-rw-r--r--testing/uptimed/APKBUILD49
1 files changed, 20 insertions, 29 deletions
diff --git a/testing/uptimed/APKBUILD b/testing/uptimed/APKBUILD
index 74297e685d..8e2aee4798 100644
--- a/testing/uptimed/APKBUILD
+++ b/testing/uptimed/APKBUILD
@@ -2,47 +2,38 @@
# Maintainer:
pkgname=uptimed
-pkgver=0.3.17
-pkgrel=1
+pkgver=0.4.0
+pkgrel=0
pkgdesc='System uptime record daemon'
arch="all"
url='http://podgorny.cz/uptimed/'
license='GPL'
-makedepends='autoconf libtool'
-source="http://podgorny.cz/$pkgname/releases/$pkgname-$pkgver.tar.bz2
- uptimed.init"
+subpackages="$pkgname-doc"
+makedepends='autoconf automake libtool'
+source="$pkgname-$pkgver.tar.gz::https://github.com/rpodgorny/uptimed/archive/v$pkgver.tar.gz
+ uptimed.init"
-prepare() {
- cd "$srcdir"/$pkgname-$pkgver
-
- for M in 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
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$srcdir"/$pkgname-$pkgver
- ./configure --prefix=/usr --sysconfdir=/etc
- make
+ cd "$builddir"
+ autoreconf -vif || return 1
+ ./configure --prefix=/usr --sysconfdir=/etc || return 1
+ make || return 1
}
package() {
- cd "$srcdir"/$pkgname-$pkgver
- make install DESTDIR="$pkgdir"
- rm "$pkgdir"/usr/lib/libuptimed.la
-
- mv "$pkgdir"/etc/uptimed.conf-dist "$pkgdir"/etc/uptimed.conf
- install -Dm755 "$srcdir"/uptimed.init "$pkgdir"/etc/init.d/uptimed
+ cd "$builddir"
+ make install DESTDIR="$pkgdir" || return 1
+ mv "$pkgdir"/etc/uptimed.conf-dist \
+ "$pkgdir"/etc/uptimed.conf || return 1
+ install -Dm755 "$srcdir"/uptimed.init \
+ "$pkgdir"/etc/init.d/uptimed || return 1
}
-md5sums="528b62c33454b33537c3bf2366977bdb uptimed-0.3.17.tar.bz2
+md5sums="6c50b0671e7efed89efb4b956dc0f5e5 uptimed-0.4.0.tar.gz
6210e2b18e997d7484e56526ec03fe39 uptimed.init"
-sha256sums="524ce8984c0d0a780a32025ba3ffb980e5eec3d78e65cf68c91edec7fe833a06 uptimed-0.3.17.tar.bz2
+sha256sums="26891965bb499065e34072cecd3eb8087102b1c05f530c8fe8504a07c722f9bf uptimed-0.4.0.tar.gz
1f741f3e80c3efcb77e9bcb8348187bfb764becc5fbda6816f553dd2e8d2ed2e uptimed.init"
-sha512sums="d462fa435b07bc335738dfccddd374aaa94fe2671a652afb8cb85d5e69e2148c296dec2a575ef074675e64e5453cb2d0807f80b191d9aeb5233168a617e842c5 uptimed-0.3.17.tar.bz2
+sha512sums="918cd9e065d5005daf5062f14dffb725cb6d6764aa571fd45d63de3f7349b910cbae0dedc832f9bfb52a42caea90e8aec8390685baaf0718fec827240e517900 uptimed-0.4.0.tar.gz
0884e9f5ace5a69b8eea4401c7f3b84f0a434f0ceb2b920919e83f318eb9e54182932de174cf1666ddddbab84c146781f3dd78571e80cc274963a72bf4f53a6b uptimed.init"