X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@lists.alpinelinux.org Received: from mail-ey0-f182.google.com (mail-ey0-f182.google.com [209.85.215.182]) by lists.alpinelinux.org (Postfix) with ESMTP id DCC6C1EBFF5 for ; Fri, 28 Jan 2011 09:39:26 +0000 (UTC) Received: by eyf6 with SMTP id 6so1475244eyf.13 for ; Fri, 28 Jan 2011 01:39:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=Qf4MaxxcaD1YhY8Kk52KAE65HzDfxvzNWNpPJLPal6Y=; b=nWH1XYdXGC2PTnD/P+Lti9YxjiGBYtphclLYTJNkNfczdq5bkYRPjEXRxQUqB6tXym EdTUjEntL0wmLZCJfK044My5onl2RbmQVwGvgPpzEqV6dw/enQLjVCRn2dExVQt6uMfI Nx2SkcRVBo0KH6cZOE2T4ON0L05fKsskuWCPY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=KlAk32+ql+zGc+RP0zLr/i4rtxcn3TubASTgNCRU8qkP0xo1boRryiSSAp/IxCmeW2 3rk2h6BZ7OfpSFS0Kb0Ret9Cjv2tAAUFRQCR/VlYckXoKItCGTxv6eRbq7XrsvR4IQ6A iBHdQHLCOY+u7gf9ac8109EGUlX7VJWce6FaU= Received: by 10.213.14.148 with SMTP id g20mr4481550eba.43.1296207566284; Fri, 28 Jan 2011 01:39:26 -0800 (PST) Received: from localhost.localdomain ([196.35.155.75]) by mx.google.com with ESMTPS id t5sm13676545eeh.20.2011.01.28.01.39.24 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 28 Jan 2011 01:39:25 -0800 (PST) From: Duane Hughes To: alpine-devel@lists.alpinelinux.org Cc: Duane Hughes Subject: [alpine-devel] [PATCH 4/4] testing/logcheck: new aport Date: Fri, 28 Jan 2011 09:30:25 +0000 Message-Id: <1296207025-28687-4-git-send-email-duanejevon@gmail.com> X-Mailer: git-send-email 1.7.3.2 In-Reply-To: <1296207025-28687-1-git-send-email-duanejevon@gmail.com> References: <1296207025-28687-1-git-send-email-duanejevon@gmail.com> X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: 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 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---