diff options
author | Valery Kartel <valery.kartel@gmail.com> | 2017-11-20 20:58:17 +0200 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 16:47:04 +0000 |
commit | 826feb495ee579cc205840c86feb60a363cd72ff (patch) | |
tree | 16d3fc18a2b5c64ae1a1ef2f52a209865547e407 | |
parent | f7bf7694b39d795bddb9b3e8da772697161b82f1 (diff) | |
download | alpine_aports-826feb495ee579cc205840c86feb60a363cd72ff.tar.bz2 alpine_aports-826feb495ee579cc205840c86feb60a363cd72ff.tar.xz alpine_aports-826feb495ee579cc205840c86feb60a363cd72ff.zip |
testing/logwatch: upgrade to 7.4.3. modernize apkbuild
-rw-r--r-- | testing/logwatch/APKBUILD | 32 |
1 files changed, 14 insertions, 18 deletions
diff --git a/testing/logwatch/APKBUILD b/testing/logwatch/APKBUILD index 1a4b9f9ec5..591f7f745d 100644 --- a/testing/logwatch/APKBUILD +++ b/testing/logwatch/APKBUILD | |||
@@ -1,12 +1,13 @@ | |||
1 | # Contributor: Valery Kartel <valery.kartel@gmail.com> | 1 | # Contributor: Valery Kartel <valery.kartel@gmail.com> |
2 | # Maintainer: Valery Kartel <valery.kartel@gmail.com> | 2 | # Maintainer: Valery Kartel <valery.kartel@gmail.com> |
3 | pkgname=logwatch | 3 | pkgname=logwatch |
4 | pkgver=7.4.2 | 4 | pkgver=7.4.3 |
5 | pkgrel=0 | 5 | pkgrel=0 |
6 | pkgdesc="A customizable, pluggable log-monitoring system" | 6 | pkgdesc="A customizable, pluggable log-monitoring system" |
7 | url="http://www.logwatch.org" | 7 | url="http://www.logwatch.org" |
8 | arch="noarch" | 8 | arch="noarch" |
9 | license="custom" | 9 | license="custom" |
10 | options="!check" | ||
10 | depends="perl" | 11 | depends="perl" |
11 | depends_dev= | 12 | depends_dev= |
12 | makedepends= | 13 | makedepends= |
@@ -24,33 +25,28 @@ package() { | |||
24 | "$pkgdir"/etc/$pkgname/conf/logfiles \ | 25 | "$pkgdir"/etc/$pkgname/conf/logfiles \ |
25 | "$pkgdir"/etc/$pkgname/conf/services \ | 26 | "$pkgdir"/etc/$pkgname/conf/services \ |
26 | "$pkgdir"/usr/share/$pkgname/dist.conf/logfiles \ | 27 | "$pkgdir"/usr/share/$pkgname/dist.conf/logfiles \ |
27 | "$pkgdir"/usr/share/$pkgname/dist.conf/services \ | 28 | "$pkgdir"/usr/share/$pkgname/dist.conf/services |
28 | || return 1 | ||
29 | 29 | ||
30 | touch "$pkgdir"/etc/$pkgname/conf/ignore.conf \ | 30 | touch "$pkgdir"/etc/$pkgname/conf/ignore.conf \ |
31 | "$pkgdir"/etc/$pkgname/conf/override.conf \ | 31 | "$pkgdir"/etc/$pkgname/conf/override.conf \ |
32 | "$pkgdir"/etc/$pkgname/conf/logwatch.conf \ | 32 | "$pkgdir"/etc/$pkgname/conf/logwatch.conf |
33 | || return 1 | ||
34 | 33 | ||
35 | cp -a lib "$pkgdir"/usr/share/$pkgname/lib || return 1 | 34 | cp -a lib "$pkgdir"/usr/share/$pkgname/lib |
36 | cp -a scripts "$pkgdir"/usr/share/$pkgname/scripts || return 1 | 35 | cp -a scripts "$pkgdir"/usr/share/$pkgname/scripts |
37 | cp -a conf "$pkgdir"/usr/share/$pkgname/default.conf || return 1 | 36 | cp -a conf "$pkgdir"/usr/share/$pkgname/default.conf |
38 | 37 | ||
39 | find "$pkgdir"/usr/share/$pkgname/scripts -type f -exec chmod 0755 {} \; | 38 | find "$pkgdir"/usr/share/$pkgname/scripts -type f -exec chmod 0755 {} \; |
40 | find "$pkgdir"/usr/share/$pkgname/default.conf -type f -exec chmod 0644 {} \; | 39 | find "$pkgdir"/usr/share/$pkgname/default.conf -type f -exec chmod 0644 {} \; |
41 | 40 | ||
42 | ln -s /usr/share/$pkgname/scripts/$pkgname.pl "$pkgdir"/usr/bin/$pkgname || return 1 | 41 | ln -s /usr/share/$pkgname/scripts/$pkgname.pl "$pkgdir"/usr/bin/$pkgname |
43 | ln -s /usr/share/$pkgname/scripts/$pkgname.pl "$pkgdir"/etc/periodic/daily/$pkgname || return 1 | 42 | ln -s /usr/share/$pkgname/scripts/$pkgname.pl "$pkgdir"/etc/periodic/daily/$pkgname |
44 | 43 | ||
45 | find . -name '*.[[:digit:]]' \ | 44 | find . -name '*.[[:digit:]]' \ |
46 | -exec sh -c 'install -Dm644 $0 "$1"/usr/share/man/man${0##*.}/$0' {} "$pkgdir" \; \ | 45 | -exec sh -c 'install -Dm644 $0 "$1"/usr/share/man/man${0##*.}/$0' {} "$pkgdir" \; |
47 | || return 1 | ||
48 | 46 | ||
49 | install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README || return 1 | 47 | install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README |
50 | install -Dm644 HOWTO-Customize-LogWatch "$pkgdir"/usr/share/doc/$pkgname/HOWTO-Customize-LogWatch || return 1 | 48 | install -Dm644 HOWTO-Customize-LogWatch "$pkgdir"/usr/share/doc/$pkgname/HOWTO-Customize-LogWatch |
51 | install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1 | 49 | install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE |
52 | } | 50 | } |
53 | 51 | ||
54 | md5sums="6eef537d20a7ec3bd3c99109853e2a05 logwatch-7.4.2.tar.gz" | 52 | sha512sums="716d87238f487010f2bdf230fc66c16f3c3fe769e6bef04b0e7881c6b0563e1a4b4741235b8a40a16ab21d3803562e87e6bcf5cfbd0ace42414f1d1feae7a13a logwatch-7.4.3.tar.gz" |
55 | sha256sums="006e122a1973bb12b92eb79622ebc93716ec0766a6987e73b4ae5387509e5ade logwatch-7.4.2.tar.gz" | ||
56 | sha512sums="aed19220ccbe70a39148e0cdcfe421e7cf744d06d01e4decc88980f3e9e97f85f1cc40aee9a8857fb123a41ffb001afa75eeccdfcdc001073057d39a01875cb2 logwatch-7.4.2.tar.gz" | ||