X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-ww0-f44.google.com (mail-ww0-f44.google.com [74.125.82.44]) by lists.alpinelinux.org (Postfix) with ESMTP id EE0701EBFF7 for ; Thu, 3 Feb 2011 06:06:00 +0000 (UTC) Received: by mail-ww0-f44.google.com with SMTP id 36so815870wwa.25 for ; Wed, 02 Feb 2011 22:06:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=6n7R3vQgSEPxsWWghhOpvR/pAfy2ur8weT4d3Ro9dPw=; b=XdrKv3SQ9iG/Sqr/J0AXWaAcFA/nBpJzjUWacXQOEXSTLODr2rZHNUp4B09galNLNw OqkOro73+C/sw7vhch7dSevOO/zALRsbwk8MV0MqdTAiSpv6dIpbataD685dVCjL0QEA ATBusq6LRfLQgBBLrZUMGbbkciVMAVmvdSpLo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=WtpDBS+D93P5IajycSzQFLe0IqANkjPgvfmRja8V/HvUxwYe5xbNEq2B9SeNhzT5J4 C3ID+z+uy2aCi7SlQeuo6YYqU2++Zh+h0yTLF0GzWbKfrv/JZD0xZCGEIpWhogQV0b08 OEk+TBj0BdIT/+l5OYyK4onVcIAKhZqlrDBzc= X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Received: by 10.216.186.142 with SMTP id w14mr10499298wem.18.1296713160786; Wed, 02 Feb 2011 22:06:00 -0800 (PST) Received: by 10.216.170.211 with HTTP; Wed, 2 Feb 2011 22:06:00 -0800 (PST) In-Reply-To: <1296207025-28687-4-git-send-email-duanejevon@gmail.com> References: <1296207025-28687-1-git-send-email-duanejevon@gmail.com> <1296207025-28687-4-git-send-email-duanejevon@gmail.com> Date: Thu, 3 Feb 2011 08:06:00 +0200 Message-ID: Subject: [alpine-devel] Re: [PATCH 4/4] testing/logcheck: new aport From: Duane Hughes To: alpine-devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary=0016e64967dc5302a7049b5a8f82 --0016e64967dc5302a7049b5a8f82 Content-Type: text/plain; charset=ISO-8859-1 Could this please be placed in testing repo, if approved? Thanks! On Fri, Jan 28, 2011 at 11:30 AM, Duane Hughes wrote: > bash scripts for checking log files, ported from debian > --- > testing/logcheck/APKBUILD | 30 > ++++++++++++++++++++++++++++++ > testing/logcheck/logcheck.cron.d | 9 +++++++++ > testing/logcheck/logcheck.post-install | 3 +++ > testing/logcheck/logcheck.pre-install | 7 +++++++ > 4 files changed, 49 insertions(+), 0 deletions(-) > create mode 100644 testing/logcheck/APKBUILD > create mode 100644 testing/logcheck/logcheck.cron.d > create mode 100644 testing/logcheck/logcheck.post-install > create mode 100644 testing/logcheck/logcheck.pre-install > > diff --git a/testing/logcheck/APKBUILD b/testing/logcheck/APKBUILD > new file mode 100644 > index 0000000..b12373e > --- /dev/null > +++ b/testing/logcheck/APKBUILD > @@ -0,0 +1,30 @@ > +# Contributor: Duane Hughes > +# Maintainer: Natanael Copa > +pkgname=logcheck > +pkgver=1.3.13 > +pkgrel=0 > +pkgdesc="Bash scripts used to monitor system log files for anomalies" > +url="http://packages.debian.org/source/sid/logcheck" > +arch="noarch" > +license="GPL" > +depends="lockfile-progs" > +makedepends= > +install="$pkgname.pre-install $pkgname.post-install" > +subpackages="$pkgname-doc" > +source=" > http://ftp.debian.org/debian/pool/main/l/logcheck/${pkgname}_$pkgver.tar.gz > + logcheck.cron.d > + " > + > +_builddir="$srcdir"/$pkgname > + > +package() { > + cd "$_builddir" > + make DESTDIR="$pkgdir" install > + > + install -D -m 644 "$srcdir"/logcheck.cron.d > "$pkgdir"/etc/logcheck/logcheck.cron.sample > + install -d "$pkgdir"/usr/share/man > + cp -a "$_builddir"/docs/* "$pkgdir"/usr/share/man > +} > + > +md5sums="e2ff14f522bf2e30d5947c85fed44973 logcheck_1.3.13.tar.gz > +89be84c722a958659df9a937826cbdc2 logcheck.cron.d" > diff --git a/testing/logcheck/logcheck.cron.d > b/testing/logcheck/logcheck.cron.d > new file mode 100644 > index 0000000..58cd047 > --- /dev/null > +++ b/testing/logcheck/logcheck.cron.d > @@ -0,0 +1,9 @@ > +# /etc/cron.d/logcheck: crontab entries for the logcheck package > + > +PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin > +MAILTO=root > + > +@reboot logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 > /usr/sbin/logcheck -R; fi > +2 * * * * logcheck if [ -x /usr/sbin/logcheck ]; then nice -n10 > /usr/sbin/logcheck; fi > + > +# EOF > diff --git a/testing/logcheck/logcheck.post-install > b/testing/logcheck/logcheck.post-install > new file mode 100644 > index 0000000..c343902 > --- /dev/null > +++ b/testing/logcheck/logcheck.post-install > @@ -0,0 +1,3 @@ > +#!/bin/sh > + > +chown -R logcheck /etc/logcheck /var/lock/logcheck /var/lib/logcheck > diff --git a/testing/logcheck/logcheck.pre-install > b/testing/logcheck/logcheck.pre-install > new file mode 100644 > index 0000000..847786f > --- /dev/null > +++ b/testing/logcheck/logcheck.pre-install > @@ -0,0 +1,7 @@ > +#!/bin/sh > + > +addgroup logcheck 2>/dev/null > +adduser -S -H -h /dev/null -s /bin/false -D -G logcheck logcheck > 2>/dev/null > +exit 0 > + > + > -- > 1.7.3.2 > > --0016e64967dc5302a7049b5a8f82 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Could this please be placed in testing repo, if approved? Thanks!

On Fri, Jan 28, 2011 at 11:30 AM, Duane Hughes <duanejevon@gmail= .com> wrote:
bash scripts for checking log files, ported= from debian
---
=A0testing/logcheck/APKBUILD =A0 =A0 =A0 =A0 =A0 =A0 =A0| =A0 30 ++++++++++= ++++++++++++++++++++
=A0testing/logcheck/logcheck.cron.d =A0 =A0 =A0 | =A0 =A09 +++++++++
=A0testing/logcheck/logcheck.post-install | =A0 =A03 +++
=A0testing/logcheck/logcheck.pre-install =A0| =A0 =A07 +++++++
=A04 files changed, 49 insertions(+), 0 deletions(-)
=A0create mode 100644 testing/logcheck/APKBUILD
=A0create mode 100644 testing/logcheck/logcheck.cron.d
=A0create mode 100644 testing/logcheck/logcheck.post-install
=A0create mode 100644 testing/logcheck/logcheck.pre-install

diff --git a/testing/logcheck/APKBUILD b/testing/logcheck/APKBUILD
new file mode 100644
index 0000000..b12373e
--- /dev/null
+++ b/testing/logcheck/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Duane Hughes <du= anejevon@gmail.com>
+# Maintainer: Natanael Copa <n= copa@alpinelinux.org>
+pkgname=3Dlogcheck
+pkgver=3D1.3.13
+pkgrel=3D0
+pkgdesc=3D"Bash scripts used to monitor system log files for anomalie= s"
+url=3D"http://packages.debian.org/source/sid/logcheck"
+arch=3D"noarch"
+license=3D"GPL"
+depends=3D"lockfile-progs"
+makedepends=3D
+install=3D"$pkgname.pre-install $pkgname.post-install"
+subpackages=3D"$pkgname-doc"
+source=3D"http://ftp.debian.org/debian= /pool/main/l/logcheck/${pkgname}_$pkgver.tar.gz
+ =A0 =A0 =A0 logcheck.cron.d
+ =A0 =A0 =A0 "
+
+_builddir=3D"$srcdir"/$pkgname
+
+package() {
+ =A0 =A0 =A0 cd "$_builddir"
+ =A0 =A0 =A0 make DESTDIR=3D"$pkgdir" install
+
+ =A0 =A0 =A0 install -D -m 644 "$srcdir"/logcheck.cron.d "$= pkgdir"/etc/logcheck/logcheck.cron.sample
+ =A0 =A0 =A0 install -d "$pkgdir"/usr/share/man
+ =A0 =A0 =A0 cp -a "$_builddir"/docs/* "$pkgdir"/usr/s= hare/man
+}
+
+md5sums=3D"e2ff14f522bf2e30d5947c85fed44973 =A0logcheck_1.3.13.tar.gz=
+89be84c722a958659df9a937826cbdc2 =A0logcheck.cron.d"
diff --git a/testing/logcheck/logcheck.cron.d b/testing/logcheck/logcheck.c= ron.d
new file mode 100644
index 0000000..58cd047
--- /dev/null
+++ b/testing/logcheck/logcheck.cron.d
@@ -0,0 +1,9 @@
+# /etc/cron.d/logcheck: crontab entries for the logcheck package
+
+PATH=3D/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+MAILTO=3Droot
+
+@reboot =A0 =A0 =A0 =A0 logcheck =A0 =A0if [ -x /usr/sbin/logcheck ]; then= nice -n10 /usr/sbin/logcheck -R; fi
+2 * * * * =A0 =A0 =A0 logcheck =A0 =A0if [ -x /usr/sbin/logcheck ]; then n= ice -n10 /usr/sbin/logcheck; fi
+
+# EOF
diff --git a/testing/logcheck/logcheck.post-install b/testing/logcheck/logc= heck.post-install
new file mode 100644
index 0000000..c343902
--- /dev/null
+++ b/testing/logcheck/logcheck.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+chown -R logcheck /etc/logcheck /var/lock/logcheck /var/lib/logcheck
diff --git a/testing/logcheck/logcheck.pre-install b/testing/logcheck/logch= eck.pre-install
new file mode 100644
index 0000000..847786f
--- /dev/null
+++ b/testing/logcheck/logcheck.pre-install
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+addgroup logcheck 2>/dev/null
+adduser -S -H -h /dev/null -s /bin/false -D -G logcheck logcheck 2>/dev= /null
+exit 0
+
+
--
1.7.3.2


--0016e64967dc5302a7049b5a8f82-- --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---