diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2005-11-14 21:15:54 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2005-11-14 21:15:54 +0000 |
commit | e6326d52f8ff0647313dd000a13b222089975f2b (patch) | |
tree | 85bdad98ba99c68417aff010be6fc9e35fd87a3c /app-admin/cancd | |
parent | new version (diff) | |
download | historical-e6326d52f8ff0647313dd000a13b222089975f2b.tar.gz historical-e6326d52f8ff0647313dd000a13b222089975f2b.tar.bz2 historical-e6326d52f8ff0647313dd000a13b222089975f2b.zip |
Initial commit, ebuild by Robin H. Johnson <robbat2@gentoo.org>.
Package-Manager: portage-2.0.53_rc7
Diffstat (limited to 'app-admin/cancd')
-rw-r--r-- | app-admin/cancd/ChangeLog | 10 | ||||
-rw-r--r-- | app-admin/cancd/Manifest | 5 | ||||
-rw-r--r-- | app-admin/cancd/cancd-0.1.0.ebuild | 38 | ||||
-rw-r--r-- | app-admin/cancd/files/cancd-conf.d | 20 | ||||
-rw-r--r-- | app-admin/cancd/files/cancd-init.d | 23 | ||||
-rw-r--r-- | app-admin/cancd/files/digest-cancd-0.1.0 | 1 |
6 files changed, 97 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..f27b4748b98f --- /dev/null +++ b/app-admin/cancd/Manifest @@ -0,0 +1,5 @@ +MD5 f1f95eb22b1599cd54f8f220a89c7303 ChangeLog 418 +MD5 4ca7e3df59e4817fd53a9b61f33f681a cancd-0.1.0.ebuild 962 +MD5 3b01d1817d6513beed0e000105ae17f7 files/cancd-conf.d 605 +MD5 c442ca1294fd06f4b84e8ba23180507f files/cancd-init.d 624 +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 |