diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-12 08:41:54 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-12 08:41:54 +0100 |
commit | 4df3bf9762850b34cd1ead5c80374d1a0fc3362e (patch) | |
tree | 3080c5cb7ad17abcb63776a9f21c4947845546a6 /app-admin/cancd/cancd-0.1.0-r6.ebuild | |
parent | 814f4cf860e299a046b649eaee5463427984c09c (diff) |
gentoo resync : 12.07.2021
Diffstat (limited to 'app-admin/cancd/cancd-0.1.0-r6.ebuild')
-rw-r--r-- | app-admin/cancd/cancd-0.1.0-r6.ebuild | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/app-admin/cancd/cancd-0.1.0-r6.ebuild b/app-admin/cancd/cancd-0.1.0-r6.ebuild new file mode 100644 index 000000000000..c8f64e59008a --- /dev/null +++ b/app-admin/cancd/cancd-0.1.0-r6.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="CA NetConsole Daemon receives 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" + +PATCHES=( + "${FILESDIR}/${P}-build-r1.patch" + "${FILESDIR}/${P}-c-cleanup.patch" +) + +RDEPEND=" + acct-group/cancd + acct-user/cancd +" + +src_prepare() { + default + + # slight makefile cleanup + sed \ + -e '/^CFLAGS/s,-g,,' \ + -e '/^CFLAGS/s,-O2,-Wall -W -Wextra -Wundef -Wendif-labels -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare -Waggregate-return -Wstrict-prototypes -Wredundant-decls -Wunreachable-code -Wlong-long,' \ + -e '/rm cancd cancd.o/s,rm,rm -f,' \ + -i Makefile || die +} + +src_install() { + dosbin cancd + + newinitd "${FILESDIR}"/cancd-init.d-r1 cancd + newconfd "${FILESDIR}"/cancd-conf.d-r1 cancd + newinitd "${FILESDIR}"/netconsole-init.d netconsole + newconfd "${FILESDIR}"/netconsole-conf.d netconsole +} |