1 |
commit: 7105525baa7cea3880c225bb75017fa0aa780614 |
2 |
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 9 21:39:59 2021 +0000 |
4 |
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 9 22:36:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7105525b |
7 |
|
8 |
app-admin/cancd: migrate to GLEP 81 |
9 |
|
10 |
Also updated to EAPI 7. |
11 |
|
12 |
Closes: https://bugs.gentoo.org/781194 |
13 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
14 |
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> |
15 |
|
16 |
app-admin/cancd/cancd-0.1.0-r5.ebuild | 39 +++++++++++++++++++++++++++++++++++ |
17 |
1 file changed, 39 insertions(+) |
18 |
|
19 |
diff --git a/app-admin/cancd/cancd-0.1.0-r5.ebuild b/app-admin/cancd/cancd-0.1.0-r5.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..e821470d956 |
22 |
--- /dev/null |
23 |
+++ b/app-admin/cancd/cancd-0.1.0-r5.ebuild |
24 |
@@ -0,0 +1,39 @@ |
25 |
+# Copyright 1999-2021 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+DESCRIPTION="CA NetConsole Daemon receives output from the Linux netconsole driver" |
31 |
+HOMEPAGE="http://oss.oracle.com/projects/cancd/" |
32 |
+SRC_URI="http://oss.oracle.com/projects/cancd/dist/files/source/${P}.tar.gz" |
33 |
+ |
34 |
+LICENSE="GPL-2" |
35 |
+SLOT="0" |
36 |
+KEYWORDS="~amd64 ~x86" |
37 |
+ |
38 |
+PATCHES=( |
39 |
+ "${FILESDIR}/${P}-build-r1.patch" |
40 |
+ "${FILESDIR}/${P}-c-cleanup.patch" |
41 |
+) |
42 |
+ |
43 |
+RDEPEND="acct-user/cancd" |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ default |
47 |
+ |
48 |
+ # slight makefile cleanup |
49 |
+ sed \ |
50 |
+ -e '/^CFLAGS/s,-g,,' \ |
51 |
+ -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,' \ |
52 |
+ -e '/rm cancd cancd.o/s,rm,rm -f,' \ |
53 |
+ -i Makefile || die |
54 |
+} |
55 |
+ |
56 |
+src_install() { |
57 |
+ dosbin cancd |
58 |
+ |
59 |
+ newinitd "${FILESDIR}"/cancd-init.d-r1 cancd |
60 |
+ newconfd "${FILESDIR}"/cancd-conf.d-r1 cancd |
61 |
+ newinitd "${FILESDIR}"/netconsole-init.d netconsole |
62 |
+ newconfd "${FILESDIR}"/netconsole-conf.d netconsole |
63 |
+} |