X-Original-To: alpine-aports@mail.alpinelinux.org Delivered-To: alpine-aports@mail.alpinelinux.org Received: from mail.alpinelinux.org (dallas-a1.alpinelinux.org [127.0.0.1]) by mail.alpinelinux.org (Postfix) with ESMTP id E1C90DC600C for ; Wed, 2 Mar 2016 08:25:59 +0000 (UTC) Received: from mail.infogroup.kiev.ua (tera.infogroup.kiev.ua [195.144.25.26]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 75F4BDC136C for ; Wed, 2 Mar 2016 08:25:59 +0000 (UTC) Received: from aveo.com.ua ([195.144.25.27] helo=alpine) by mail.infogroup.kiev.ua with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.80.1) (envelope-from ) id 1ab26W-0008FN-JM; Wed, 02 Mar 2016 10:25:56 +0200 From: Valery Kartel To: alpine-aports@lists.alpinelinux.org Cc: Valery Kartel Subject: [alpine-aports] [PATCH V2] testing/logwatch: new aport Date: Wed, 2 Mar 2016 10:30:26 +0200 Message-Id: <1456907426-6194-1-git-send-email-valery.kartel@gmail.com> X-Mailer: git-send-email 2.7.2 X-Virus-Scanned: ClamAV using ClamSMTP X-Mailinglist: alpine-aports Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: A customizable, pluggable log-monitoring system http://www.logwatch.org --- v2: make APKBUILD more readable & fix scripts and conf permissions --- testing/logwatch/APKBUILD | 56 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 testing/logwatch/APKBUILD diff --git a/testing/logwatch/APKBUILD b/testing/logwatch/APKBUILD new file mode 100644 index 0000000..1a4b9f9 --- /dev/null +++ b/testing/logwatch/APKBUILD @@ -0,0 +1,56 @@ +# Contributor: Valery Kartel +# Maintainer: Valery Kartel +pkgname=logwatch +pkgver=7.4.2 +pkgrel=0 +pkgdesc="A customizable, pluggable log-monitoring system" +url="http://www.logwatch.org" +arch="noarch" +license="custom" +depends="perl" +depends_dev= +makedepends= +install= +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/project/$pkgname/$pkgname-$pkgver/$pkgname-$pkgver.tar.gz" + +package() { + cd "$srcdir"/$pkgname-$pkgver + + mkdir -p "$pkgdir"/usr/bin \ + "$pkgdir"/var/cache/$pkgname \ + "$pkgdir"/etc/periodic/daily \ + "$pkgdir"/etc/$pkgname/scripts \ + "$pkgdir"/etc/$pkgname/conf/logfiles \ + "$pkgdir"/etc/$pkgname/conf/services \ + "$pkgdir"/usr/share/$pkgname/dist.conf/logfiles \ + "$pkgdir"/usr/share/$pkgname/dist.conf/services \ + || return 1 + + touch "$pkgdir"/etc/$pkgname/conf/ignore.conf \ + "$pkgdir"/etc/$pkgname/conf/override.conf \ + "$pkgdir"/etc/$pkgname/conf/logwatch.conf \ + || return 1 + + cp -a lib "$pkgdir"/usr/share/$pkgname/lib || return 1 + cp -a scripts "$pkgdir"/usr/share/$pkgname/scripts || return 1 + cp -a conf "$pkgdir"/usr/share/$pkgname/default.conf || return 1 + + find "$pkgdir"/usr/share/$pkgname/scripts -type f -exec chmod 0755 {} \; + find "$pkgdir"/usr/share/$pkgname/default.conf -type f -exec chmod 0644 {} \; + + ln -s /usr/share/$pkgname/scripts/$pkgname.pl "$pkgdir"/usr/bin/$pkgname || return 1 + ln -s /usr/share/$pkgname/scripts/$pkgname.pl "$pkgdir"/etc/periodic/daily/$pkgname || return 1 + + find . -name '*.[[:digit:]]' \ + -exec sh -c 'install -Dm644 $0 "$1"/usr/share/man/man${0##*.}/$0' {} "$pkgdir" \; \ + || return 1 + + install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README || return 1 + install -Dm644 HOWTO-Customize-LogWatch "$pkgdir"/usr/share/doc/$pkgname/HOWTO-Customize-LogWatch || return 1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE || return 1 +} + +md5sums="6eef537d20a7ec3bd3c99109853e2a05 logwatch-7.4.2.tar.gz" +sha256sums="006e122a1973bb12b92eb79622ebc93716ec0766a6987e73b4ae5387509e5ade logwatch-7.4.2.tar.gz" +sha512sums="aed19220ccbe70a39148e0cdcfe421e7cf744d06d01e4decc88980f3e9e97f85f1cc40aee9a8857fb123a41ffb001afa75eeccdfcdc001073057d39a01875cb2 logwatch-7.4.2.tar.gz" -- 2.7.2 --- Unsubscribe: alpine-aports+unsubscribe@lists.alpinelinux.org Help: alpine-aports+help@lists.alpinelinux.org ---