~alpine/aports

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch

[alpine-aports] [PATCH] testing/logwatch: new aport

Details
Message ID
<1456876275-32455-1-git-send-email-valery.kartel@gmail.com>
Sender timestamp
1456876275
DKIM signature
missing
Download raw message
Patch: +52 -0
A customizable, pluggable log-monitoring system
http://www.logwatch.org
---
 testing/logwatch/APKBUILD | 52 +++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)
 create mode 100644 testing/logwatch/APKBUILD

diff --git a/testing/logwatch/APKBUILD b/testing/logwatch/APKBUILD
new file mode 100644
index 0000000..42e6289
--- /dev/null
+++ b/testing/logwatch/APKBUILD
@@ -0,0 +1,52 @@
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Maintainer: Valery Kartel <valery.kartel@gmail.com>
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

	for i in logwatch ignore override ; do
		touch "$pkgdir"/etc/$pkgname/conf/$i.conf
	done

	for i in lib conf scripts ; do
		cp -r $i "$pkgdir"/usr/share/$pkgname/
	done
	mv "$pkgdir"/usr/share/$pkgname/conf "$pkgdir"/usr/share/$pkgname/default.conf

	ln -s /usr/share/$pkgname/scripts/$pkgname.pl "$pkgdir"/usr/bin/$pkgname
	ln -s /usr/share/$pkgname/scripts/$pkgname.pl "$pkgdir"/etc/periodic/daily/$pkgname

	for i in logwatch.8 postfix-logwatch.1 amavis-logwatch.1 logwatch.conf.5 ignore.conf.5 override.conf.5 ; do
		install -Dm644 $i "$pkgdir"/usr/share/man/man${i##*.}/$i
	done

	install -Dm644 README "$pkgdir"/usr/share/doc/$pkgname/README
	install -Dm644 HOWTO-Customize-LogWatch "$pkgdir"/usr/share/doc/$pkgname/HOWTO-Customize-LogWatch
	install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}

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
---
Reply to thread Export thread (mbox)