summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-admin/busybox-sysklogd/busybox-sysklogd-0.1.ebuild')
-rw-r--r--app-admin/busybox-sysklogd/busybox-sysklogd-0.1.ebuild34
1 files changed, 34 insertions, 0 deletions
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}"
+}