diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-admin/cancd/cancd-0.1.0-r4.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-admin/cancd/cancd-0.1.0-r4.ebuild')
-rw-r--r-- | app-admin/cancd/cancd-0.1.0-r4.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app-admin/cancd/cancd-0.1.0-r4.ebuild b/app-admin/cancd/cancd-0.1.0-r4.ebuild new file mode 100644 index 000000000000..d66212991751 --- /dev/null +++ b/app-admin/cancd/cancd-0.1.0-r4.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit user + +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" +IUSE="" + +PATCHES=( + "${FILESDIR}/${P}-build-r1.patch" + "${FILESDIR}/${P}-c-cleanup.patch" +) + +src_prepare() { + default + + # slight makefile cleanup + sed -i \ + -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,' \ + 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 +} + +pkg_preinst() { + enewuser cancd +} |