summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Briesenick <sbriesen@gentoo.org>2012-08-21 12:44:33 +0000
committerStefan Briesenick <sbriesen@gentoo.org>2012-08-21 12:44:33 +0000
commit449d9de75b0e1d9ae08b9c59958b2a08db0d1911 (patch)
tree8a6ae414fe8c2740893269899929714add18861c /app-admin
parentNo need to keep the older around. Cleanup. (diff)
downloadgentoo-2-449d9de75b0e1d9ae08b9c59958b2a08db0d1911.tar.gz
gentoo-2-449d9de75b0e1d9ae08b9c59958b2a08db0d1911.tar.bz2
gentoo-2-449d9de75b0e1d9ae08b9c59958b2a08db0d1911.zip
initial commit.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/busybox-sysklogd/ChangeLog11
-rw-r--r--app-admin/busybox-sysklogd/Manifest5
-rw-r--r--app-admin/busybox-sysklogd/busybox-sysklogd-0.1.ebuild34
-rw-r--r--app-admin/busybox-sysklogd/files/busybox-sysklogd.confd12
-rw-r--r--app-admin/busybox-sysklogd/files/busybox-sysklogd.initd38
-rw-r--r--app-admin/busybox-sysklogd/metadata.xml8
6 files changed, 108 insertions, 0 deletions
diff --git a/app-admin/busybox-sysklogd/ChangeLog b/app-admin/busybox-sysklogd/ChangeLog
new file mode 100644
index 000000000000..a17c6af7b9a7
--- /dev/null
+++ b/app-admin/busybox-sysklogd/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-admin/busybox-sysklogd
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/busybox-sysklogd/ChangeLog,v 1.1 2012/08/21 12:44:33 sbriesen Exp $
+
+*busybox-sysklogd-0.1 (21 Aug 2012)
+
+ 21 Aug 2012; Stefan Briesenick <sbriesen@gentoo.org>
+ +busybox-sysklogd-0.1.ebuild, +files/busybox-sysklogd.confd,
+ +files/busybox-sysklogd.initd, +metadata.xml:
+ initial commit.
+
diff --git a/app-admin/busybox-sysklogd/Manifest b/app-admin/busybox-sysklogd/Manifest
new file mode 100644
index 000000000000..1dc42570bcd6
--- /dev/null
+++ b/app-admin/busybox-sysklogd/Manifest
@@ -0,0 +1,5 @@
+AUX busybox-sysklogd.confd 319 SHA256 41a7dcb89156a80387a56579757e3a9f0f87ae4e0e955997e31092ab015a3152 SHA512 c9ddc5bec07c76b1ac4b3ceeb9dcdbaa96ef0791bc3a699b7cf1645d2765d74f5bb105e4d7912d67d8af0bf02e8447b6771edd789a05c7e4d9afeaf3a45896d2 WHIRLPOOL 6f2b18cea47118bfae04ecf932e62464a8574db1a2f45c5d4cb6d7a2352a117865bfffff9e367b51701c15103ef5a68f4b27a83b1e179ddfecb8529f68eb4038
+AUX busybox-sysklogd.initd 1070 SHA256 04beea3b65c474e7de106600ca99e0e61272d13d42e02a1f754602fe3f3edb57 SHA512 ba0a1c9456088466f7d3b4d2b70b86c83e6cd2e1ff8cd9e558ae1e3a5dae5c8b6c844f164427ecbdc64fc2a80bab21814c903c9a3890517129a1b116699c1a07 WHIRLPOOL a3b155035b50e44151f4c7d5dd8dd289e9df5dcbb440534bc8d7457e06cb3602c865726c3c508a264cc083d2c37bafbb3527b40a193685727d55a9acbbd8bf25
+EBUILD busybox-sysklogd-0.1.ebuild 780 SHA256 dd48ec247f996f1f25b2f6c951d29c73a313ca3d9ad950f5d65d7aab2643508a SHA512 9c662658b75c27ecb30cc8af37ffebc56c9ead92ac42d1a49b9d29db406b56280c5d41d605d11f1ed7119661f3d2dc297484333b4987b38d50fbe86ef858558d WHIRLPOOL bc385d4a4d630930f27a436ee7f197ff905568f427b7f243491a6214c7a944c05747e6f21a460629f88389f0314584335e6bb9bb6ed80cea3eca3f770aa55136
+MISC ChangeLog 349 SHA256 95b2fcde077ab2e6a7080a853880c87e27546e497fe231cd9a7980feaab9342b SHA512 0658d615961acf0da192e89bdd44841290c86cac0106a2a12381973604d60cfa0687fb736e82b3838e94f19eb5c86a175f98318517d58a3e2c56376f7c414867 WHIRLPOOL 8cf0200f3d72ffe32f8d5dfd7939a4fc8e13027942d2ea255024e9b7ded5e05e67ad06f99f3aef26ec5eb2401b100b125a1075bed4d239c2706ea58aa24d7ea3
+MISC metadata.xml 238 SHA256 4db4ca999ffdc9f427972d4ac3b32f7512d23bea801534f3eec5d6568a245f3c SHA512 0383697e89f6736c64015db76ad2071fda8b6b9d83e548b39d5b446c63a9875dc31f5619244629826f535a9d74a764230e51fa240904bbdb386b3204c85af884 WHIRLPOOL eb055c0dce306e5b92f6fd454be32248ee838fdbd86383969ab2b052ccd0db7e601cc6114f4ebcbae76160156385bb2e89f0b05ce4834c47c54b1535b7846602
diff --git a/app-admin/busybox-sysklogd/busybox-sysklogd-0.1.ebuild b/app-admin/busybox-sysklogd/busybox-sysklogd-0.1.ebuild
new file mode 100644
index 000000000000..f7bbcbf6aea8
--- /dev/null
+++ b/app-admin/busybox-sysklogd/busybox-sysklogd-0.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/busybox-sysklogd/busybox-sysklogd-0.1.ebuild,v 1.1 2012/08/21 12:44:33 sbriesen Exp $
+
+EAPI=4
+
+HOMEPAGE="http://www.busybox.net/"
+DESCRIPTION="Busybox syslogd/klogd/logread symlinks + init-script"
+SRC_URI=""
+LICENSE="GPL-2"
+SLOT="0"
+
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="sys-apps/busybox"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ local CNT=$(busybox --list | egrep -c '^(syslogd|klogd|logread)$')
+ if [ ${CNT} -ne 3 ]; then
+ die "Missing busybox feature. You need at least 'syslogd', 'klogd' and 'logread'."
+ fi
+}
+
+src_install() {
+ dosym "busybox" "/bin/logread"
+ dosym "../bin/busybox" "/sbin/klogd"
+ dosym "../bin/busybox" "/sbin/syslogd"
+ newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+ newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+}
diff --git a/app-admin/busybox-sysklogd/files/busybox-sysklogd.confd b/app-admin/busybox-sysklogd/files/busybox-sysklogd.confd
new file mode 100644
index 000000000000..793f47568a17
--- /dev/null
+++ b/app-admin/busybox-sysklogd/files/busybox-sysklogd.confd
@@ -0,0 +1,12 @@
+# Config file for /etc/init.d/busybox-sysklogd
+
+# run "/sbin/syslogd --help" and "/sbin/klogd --help" to see all possible options.
+
+# activate if you need remote logging
+#rc_need="net"
+
+# Log to shared mem buffer (use logread to read it)
+SYSLOGD_OPTS="-C128"
+
+# send warnings and above to the console
+KLOGD_OPTS="-c 3"
diff --git a/app-admin/busybox-sysklogd/files/busybox-sysklogd.initd b/app-admin/busybox-sysklogd/files/busybox-sysklogd.initd
new file mode 100644
index 000000000000..b518902255a9
--- /dev/null
+++ b/app-admin/busybox-sysklogd/files/busybox-sysklogd.initd
@@ -0,0 +1,38 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/busybox-sysklogd/files/busybox-sysklogd.initd,v 1.1 2012/08/21 12:44:33 sbriesen Exp $
+
+depend() {
+ need clock hostname
+ provide logger
+}
+
+start() {
+ local retval=0 daemon="syslogd"
+ ebegin "Starting busybox-sysklogd"
+ start-stop-daemon --start --quiet --exec /sbin/syslogd --pidfile /var/run/syslogd.pid -- ${SYSLOGD_OPTS}
+ retval=${?}
+ if [ ${retval} -eq 0 ]; then
+ daemon="klogd"
+ start-stop-daemon --start --quiet --exec /sbin/klogd -- ${KLOGD_OPTS}
+ retval=${?}
+ if [ ${retval} -ne 0 ]; then
+ start-stop-daemon --stop --retry 15 --quiet --exec /sbin/syslogd --pidfile /var/run/syslogd.pid
+ fi
+ fi
+ eend ${retval} "Failed to start ${daemon}"
+}
+
+stop() {
+ local retval=0 daemon="klogd"
+ ebegin "Stopping busybox-sysklogd"
+ start-stop-daemon --stop --retry 15 --quiet --exec /sbin/klogd
+ retval=${?}
+ if [ ${retval} -eq 0 ]; then
+ daemon="syslogd"
+ start-stop-daemon --stop --retry 15 --quiet --exec /sbin/syslogd --pidfile /var/run/syslogd.pid
+ retval=${?}
+ fi
+ eend ${retval} "Failed to stop ${daemon}"
+}
diff --git a/app-admin/busybox-sysklogd/metadata.xml b/app-admin/busybox-sysklogd/metadata.xml
new file mode 100644
index 000000000000..3f5f778dc2a5
--- /dev/null
+++ b/app-admin/busybox-sysklogd/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>sbriesen@gentoo.org</email>
+ <name>Stefan Briesenick</name>
+ </maintainer>
+</pkgmetadata>