summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2005-11-14 21:15:54 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2005-11-14 21:15:54 +0000
commit663904a96b5161800d604123a03462b32fd76799 (patch)
treeffe4aafee21b4fb137d5e89c1ea18ed8338c4b32 /app-admin/cancd
parentnew version (diff)
downloadgentoo-2-663904a96b5161800d604123a03462b32fd76799.tar.gz
gentoo-2-663904a96b5161800d604123a03462b32fd76799.tar.bz2
gentoo-2-663904a96b5161800d604123a03462b32fd76799.zip
Initial commit, ebuild by Robin H. Johnson <robbat2@gentoo.org>.
(Portage version: 2.0.53_rc7)
Diffstat (limited to 'app-admin/cancd')
-rw-r--r--app-admin/cancd/ChangeLog10
-rw-r--r--app-admin/cancd/Manifest4
-rw-r--r--app-admin/cancd/cancd-0.1.0.ebuild38
-rw-r--r--app-admin/cancd/files/cancd-conf.d20
-rw-r--r--app-admin/cancd/files/cancd-init.d23
-rw-r--r--app-admin/cancd/files/digest-cancd-0.1.01
6 files changed, 96 insertions, 0 deletions
diff --git a/app-admin/cancd/ChangeLog b/app-admin/cancd/ChangeLog
new file mode 100644
index 000000000000..ebca0163ce7e
--- /dev/null
+++ b/app-admin/cancd/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-admin/cancd
+# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/cancd/ChangeLog,v 1.1 2005/11/14 21:15:54 robbat2 Exp $
+
+*cancd-0.1.0 (14 Nov 2005)
+
+ 14 Nov 2005; Robin H. Johnson <robbat2@gentoo.org> +files/cancd-conf.d,
+ +files/cancd-init.d, +cancd-0.1.0.ebuild:
+ Initial commit, ebuild by Robin H. Johnson <robbat2@gentoo.org>.
+
diff --git a/app-admin/cancd/Manifest b/app-admin/cancd/Manifest
new file mode 100644
index 000000000000..cf75be2d201f
--- /dev/null
+++ b/app-admin/cancd/Manifest
@@ -0,0 +1,4 @@
+MD5 39be0d3a79b225b81f75039987a86f2e cancd-0.1.0.ebuild 956
+MD5 ee3f24fa39f2a38d6b5c6e68d7635b1b files/cancd-conf.d 597
+MD5 7fcffc7e45d987c34d5e67c8cdeb9624 files/cancd-init.d 616
+MD5 2519af6cc0a0ad63ed00fff3929ed7ad files/digest-cancd-0.1.0 61
diff --git a/app-admin/cancd/cancd-0.1.0.ebuild b/app-admin/cancd/cancd-0.1.0.ebuild
new file mode 100644
index 000000000000..fa6b36f92533
--- /dev/null
+++ b/app-admin/cancd/cancd-0.1.0.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/cancd/cancd-0.1.0.ebuild,v 1.1 2005/11/14 21:15:54 robbat2 Exp $
+
+DESCRIPTION="This is the CA NetConsole Daemon, a daemon to receive output from
+the Linux netconsole driver."
+HOMEPAGE="http://oss.oracle.com/projects/cancd/"
+SRC_URI="http://oss.oracle.com/projects/cancd/dist/files/source/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+DEPEND="virtual/libc"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ # slight makefile cleanup
+ sed -i.orig \
+ -e '/^CFLAGS/s,-g,,' \
+ -e '/^CFLAGS/s,-O2,,' \
+ -e '/rm cancd cancd.o/s,rm,rm -f,' \
+ ${S}/Makefile
+}
+
+src_compile() {
+ emake cancd
+}
+
+src_install() {
+ into /usr
+ dosbin cancd
+ newinitd ${FILESDIR}/cancd-init.d cancd
+ newconfd ${FILESDIR}/cancd-conf.d cancd
+ keepdir /var/crash
+ fowners adm:nobody /var/crash
+ fperms 700 /var/crash
+}
diff --git a/app-admin/cancd/files/cancd-conf.d b/app-admin/cancd/files/cancd-conf.d
new file mode 100644
index 000000000000..5f9a2cfe35bd
--- /dev/null
+++ b/app-admin/cancd/files/cancd-conf.d
@@ -0,0 +1,20 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/cancd/files/cancd-conf.d,v 1.1 2005/11/14 21:15:54 robbat2 Exp $
+
+# user to run as, root strongly discouraged
+# user should have /bin/false for a shell
+# but file access into /var
+CHUID='adm:nobody'
+
+# port to listen on
+CANCD_PORT=6667
+
+# directory to output to
+CRASH_DIR=/var/crash
+
+# one file per minute, one dir per host/date
+#CRASH_FORMAT="%Q/%Y-%m-%d/%H:%M.log"
+# one file per day, one dir per host
+CRASH_FORMAT="%Q/%Y-%m-%d.log"
diff --git a/app-admin/cancd/files/cancd-init.d b/app-admin/cancd/files/cancd-init.d
new file mode 100644
index 000000000000..7d722f74f18e
--- /dev/null
+++ b/app-admin/cancd/files/cancd-init.d
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/cancd/files/cancd-init.d,v 1.1 2005/11/14 21:15:54 robbat2 Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ mkdir -p ${CRASH_DIR}
+ chown ${CHUID} ${CRASH_DIR}
+ chmod 700 ${CRASH_DIR}
+ ebegin "Starting cancd"
+ start-stop-daemon --start --quiet --chuid ${CHUID} --exec /usr/sbin/cancd -- -p ${CANCD_PORT} -l "${CRASH_DIR}" -o "${CRASH_FORMAT}"
+ eend ${?}
+}
+
+stop() {
+ ebegin "Stopping cancd"
+ start-stop-daemon --stop --quiet --exec /usr/sbin/cancd
+ eend ${?}
+}
diff --git a/app-admin/cancd/files/digest-cancd-0.1.0 b/app-admin/cancd/files/digest-cancd-0.1.0
new file mode 100644
index 000000000000..919c488ecc49
--- /dev/null
+++ b/app-admin/cancd/files/digest-cancd-0.1.0
@@ -0,0 +1 @@
+MD5 3eb4a75cfa4d1a860ea547fdc76c6d4d cancd-0.1.0.tar.gz 7634