1 |
commit: f6eb56e0ea4bb72d9fd3137c71271d9912591bbf |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Feb 11 02:15:30 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Feb 11 02:15:30 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6eb56e0 |
7 |
|
8 |
app-admin/sysrqd: cleanup old |
9 |
|
10 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
app-admin/sysrqd/sysrqd-17.ebuild | 53 --------------------------------------- |
14 |
1 file changed, 53 deletions(-) |
15 |
|
16 |
diff --git a/app-admin/sysrqd/sysrqd-17.ebuild b/app-admin/sysrqd/sysrqd-17.ebuild |
17 |
deleted file mode 100644 |
18 |
index 541c67095fc..00000000000 |
19 |
--- a/app-admin/sysrqd/sysrqd-17.ebuild |
20 |
+++ /dev/null |
21 |
@@ -1,53 +0,0 @@ |
22 |
-# Copyright 1999-2019 Gentoo Authors |
23 |
-# Distributed under the terms of the GNU General Public License v2 |
24 |
- |
25 |
-EAPI=7 |
26 |
- |
27 |
-inherit toolchain-funcs |
28 |
- |
29 |
-DESCRIPTION="Daemon providing access to the kernel sysrq functions via network" |
30 |
-HOMEPAGE="https://github.com/jd/sysrqd" |
31 |
-SRC_URI="https://github.com/jd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
32 |
- |
33 |
-LICENSE="GPL-2" |
34 |
-SLOT="0" |
35 |
-KEYWORDS="~amd64 ~x86" |
36 |
- |
37 |
-PATCHES=( |
38 |
- "${FILESDIR}"/${PN}-config.patch |
39 |
- "${FILESDIR}"/${P}-fix-build-system.patch |
40 |
-) |
41 |
- |
42 |
-src_configure() { |
43 |
- tc-export CC |
44 |
-} |
45 |
- |
46 |
-src_install() { |
47 |
- dosbin sysrqd |
48 |
- newinitd "${FILESDIR}/sysrqd.init" sysrqd |
49 |
- |
50 |
- local bindip='127.0.0.1' secret |
51 |
- declare -i secret |
52 |
- let secret="${RANDOM}*${RANDOM}*${RANDOM}*${RANDOM}" |
53 |
- echo "${bindip}" > sysrqd.bind || die |
54 |
- echo "${secret}" > sysrqd.secret || die |
55 |
- |
56 |
- diropts -m 0700 -o root -g root |
57 |
- dodir /etc/sysrqd |
58 |
- insinto /etc/sysrqd |
59 |
- insopts -m 0600 -o root -g root |
60 |
- doins sysrqd.bind |
61 |
- doins sysrqd.secret |
62 |
- |
63 |
- einstalldocs |
64 |
-} |
65 |
- |
66 |
-pkg_postinst() { |
67 |
- elog |
68 |
- elog "Be sure to change the initial secret in /etc/sysrqd/sysrqd.secret !" |
69 |
- elog "As a security precaution, sysrqd is configured to only listen on" |
70 |
- elog "127.0.0.1 by default. Change the content of /etc/sysrqd/sysrqd.bind" |
71 |
- elog "to an IPv4 address you want it to listen on or remove the file" |
72 |
- elog "to make it listen on any IP address (0.0.0.0)." |
73 |
- elog |
74 |
-} |