diff options
author | Stefan Briesenick <sbriesen@gentoo.org> | 2012-08-21 12:44:33 +0000 |
---|---|---|
committer | Stefan Briesenick <sbriesen@gentoo.org> | 2012-08-21 12:44:33 +0000 |
commit | a78b11bb58722d3d63894407bdb070bb8e7d8fc5 (patch) | |
tree | c2811f14703f0b4e679c86ef38963d9540db009f /app-admin | |
parent | No need to keep the older around. Cleanup. (diff) | |
download | historical-a78b11bb58722d3d63894407bdb070bb8e7d8fc5.tar.gz historical-a78b11bb58722d3d63894407bdb070bb8e7d8fc5.tar.bz2 historical-a78b11bb58722d3d63894407bdb070bb8e7d8fc5.zip |
initial commit.
Package-Manager: portage-2.2.0_alpha120/cvs/Linux x86_64
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/busybox-sysklogd/ChangeLog | 11 | ||||
-rw-r--r-- | app-admin/busybox-sysklogd/Manifest | 17 | ||||
-rw-r--r-- | app-admin/busybox-sysklogd/busybox-sysklogd-0.1.ebuild | 34 | ||||
-rw-r--r-- | app-admin/busybox-sysklogd/files/busybox-sysklogd.confd | 12 | ||||
-rw-r--r-- | app-admin/busybox-sysklogd/files/busybox-sysklogd.initd | 38 | ||||
-rw-r--r-- | app-admin/busybox-sysklogd/metadata.xml | 8 |
6 files changed, 120 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..5163ffd687ee --- /dev/null +++ b/app-admin/busybox-sysklogd/Manifest @@ -0,0 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX busybox-sysklogd.confd 319 SHA256 41a7dcb89156a80387a56579757e3a9f0f87ae4e0e955997e31092ab015a3152 SHA512 c9ddc5bec07c76b1ac4b3ceeb9dcdbaa96ef0791bc3a699b7cf1645d2765d74f5bb105e4d7912d67d8af0bf02e8447b6771edd789a05c7e4d9afeaf3a45896d2 WHIRLPOOL 6f2b18cea47118bfae04ecf932e62464a8574db1a2f45c5d4cb6d7a2352a117865bfffff9e367b51701c15103ef5a68f4b27a83b1e179ddfecb8529f68eb4038 +AUX busybox-sysklogd.initd 1189 SHA256 d183a86afe6258539addc836c83d164adf23d3b271bbbe9df8139a444df55204 SHA512 9eb0089fb2aa1b906461c787d2b0063cffadd5249f2dcfcde501427071612feca224132178f2766cd96b0bd7ca6fe8a5f9fad2f0221024312880570841292ea3 WHIRLPOOL 221696be0f39197f3774708ffbe72e3d15f5e9399df9f0a7e725c037aad79b187e2d6f49efaf35f20fb23c6a16c7f07af38990e64086defa46645dd4af4bf2fd +EBUILD busybox-sysklogd-0.1.ebuild 898 SHA256 7cccf05ce36869377e30660190a31511a9a7704073ad4319f6ea59ac383a7d0c SHA512 cb064d17a4a6230caffa38a4cb4ae747562c4ede94aacdd185400575a30b7bcc66cd7a80c6309e2a3001c31bcc58867fd022f30da088ccf53edf9ac902ae31bc WHIRLPOOL 8b6925ad5610a15e1bbecb361fe6e795159d86cc7d4ba42b6d4e133acd121bc923634725108a68808c342ad4af9f01e2f59c78ae694d18c7b79424acf36110f3 +MISC ChangeLog 449 SHA256 2b3d6b20abbcff96448ab03591a8882b69387bfc8e22e53b492d7494aaa0e04b SHA512 58056d6e6307730abca3062f339b64fb9f0bc80f00badd4c5a619010fc8345a8aa0bdaae1b6b705b5c100aec8de8e06073550e8ad567b0244751ae80b1b62dd5 WHIRLPOOL 0a40907bd499d827856136ca743b7528c0a3799f6c929f35a5f4d21dbe477920b7683967443a94b66ada0247e4140598d852e90b6bf2f7a48676106f713402a9 +MISC metadata.xml 238 SHA256 4db4ca999ffdc9f427972d4ac3b32f7512d23bea801534f3eec5d6568a245f3c SHA512 0383697e89f6736c64015db76ad2071fda8b6b9d83e548b39d5b446c63a9875dc31f5619244629826f535a9d74a764230e51fa240904bbdb386b3204c85af884 WHIRLPOOL eb055c0dce306e5b92f6fd454be32248ee838fdbd86383969ab2b052ccd0db7e601cc6114f4ebcbae76160156385bb2e89f0b05ce4834c47c54b1535b7846602 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iJwEAQEIAAYFAlAzgrYACgkQIaLonLtsQsfxwAP/VkWNdTSPwryLVl+vQi7dzymv +Y1B6YHwbCCjAiSVQ/ri2+9tTEbcDOI4Nh5eO4GhPHfwJl+cQWtkwNfDYsm8HjPnp +NuU1aRskJwp+bdPyTeuxQNAUfzEoM0RKUFLakHv01yYws4N1E9O2jbe/YVA0Daca +iJ90ls2MQYBxphyh4MY= +=qA9e +-----END PGP SIGNATURE----- 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> |