Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 686314
Collapse All | Expand All

(-)a/app-admin/sysrqd/Manifest (-1 / +2 lines)
Line 1 Link Here
1
DIST sysrqd-14.tar.gz 4759 BLAKE2B 3ef8b2f5092a899753da487d0a82a71d2d93d0c6a70689b5923fa900f2766de15fa2e416cb667d800dac19499218a0246941b8c52bfe4421af774ccecc62222e SHA512 efad48be3974923ec14d0958e788115c9273bc29b4f03853e6e087f6af872299ea57d42f885be19ff4eeaffa577ecf1c53ea2adb2f84e1487bb2511597b89cb2
1
DIST sysrqd-14.tar.gz 4879 BLAKE2B e6653b1bbb4b1f5521d3bb6f525f725378c9f854499ae9574e222164740a5c30c29d089b8fd96f65b50ebc825ce7fbd585af5e457030e734e48648414c98f46c SHA512 9507d44a0b43b999f37d43b52b41b1990d22835dbfb10b4ccc312542f1b4c1f94e62a7f0a141f502e98018561f842252f01c2921eff11eb5a5acc2941ee22b7d
2
DIST sysrqd-17.tar.gz 5232 BLAKE2B 4fd3baf7bce45b43577db7cd4a383161a8d69bd88e041afe20c33d3812235829729c57b748321195c2bccea819827655080199c0167bafad7252ca29b2a3a27c SHA512 fd0e42d2edd5e8548510aa823b2fef6339b2dc1dde1fe387585b9f2611e7d944fa6d73447e3f58a0aa00d45a88459c6e9cbb619428282abf367f62a8270e5d54
(-)a/app-admin/sysrqd/sysrqd-14.ebuild (-5 / +5 lines)
Line 0 Link Here
1
--- sysrqd-17/Makefile	2019-04-08 15:37:16.000000000 +0200
Lines 1-14 Link Here
1
# Copyright 1999-2017 Gentoo Foundation
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
3
4
EAPI=6
4
EAPI=6
5
5
6
inherit toolchain-funcs
6
inherit toolchain-funcs
7
7
8
DESCRIPTION="daemon providing access to the kernel sysrq functions via network"
8
DESCRIPTION="Daemon providing access to the kernel sysrq functions via network"
9
HOMEPAGE="http://julien.danjou.info/projects/sysrqd"
9
HOMEPAGE="https://github.com/jd/sysrqd"
10
#SRC_URI="http://julien.danjou.info/${PN}/${P}.tar.gz"
10
SRC_URI="https://github.com/jd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11
SRC_URI="https://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${P}.tar.gz"
12
11
13
LICENSE="GPL-2"
12
LICENSE="GPL-2"
14
SLOT="0"
13
SLOT="0"
(-)a/app-admin/sysrqd/sysrqd-17.ebuild (+53 lines)
Line 0 Link Here
1
# Copyright 1999-2019 Gentoo Authors
2
# Distributed under the terms of the GNU General Public License v2
3
4
EAPI=7
5
6
inherit toolchain-funcs
7
8
DESCRIPTION="Daemon providing access to the kernel sysrq functions via network"
9
HOMEPAGE="https://github.com/jd/sysrqd"
10
SRC_URI="https://github.com/jd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
11
12
LICENSE="GPL-2"
13
SLOT="0"
14
KEYWORDS="~amd64 ~x86"
15
16
PATCHES=(
17
	"${FILESDIR}"/${PN}-config.patch
18
	"${FILESDIR}"/${P}-fix-build-system.patch
19
)
20
21
src_configure() {
22
	tc-export CC
23
}
24
25
src_install() {
26
	dosbin sysrqd
27
	newinitd "${FILESDIR}/sysrqd.init" sysrqd
28
29
	local bindip='127.0.0.1' secret
30
	declare -i secret
31
	let secret="${RANDOM}*${RANDOM}*${RANDOM}*${RANDOM}"
32
	echo "${bindip}" > sysrqd.bind || die
33
	echo "${secret}" > sysrqd.secret || die
34
35
	diropts -m 0700 -o root -g root
36
	dodir /etc/sysrqd
37
	insinto /etc/sysrqd
38
	insopts -m 0600 -o root -g root
39
	doins sysrqd.bind
40
	doins sysrqd.secret
41
42
	einstalldocs
43
}
44
45
pkg_postinst() {
46
	elog
47
	elog "Be sure to change the initial secret in /etc/sysrqd/sysrqd.secret !"
48
	elog "As a security precaution, sysrqd is configured to only listen on"
49
	elog "127.0.0.1 by default. Change the content of /etc/sysrqd/sysrqd.bind"
50
	elog "to an IPv4 address you want it to listen on or remove the file"
51
	elog "to make it listen on any IP address (0.0.0.0)."
52
	elog
53
}

Return to bug 686314