public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysrqd/, app-admin/sysrqd/files/
@ 2019-06-12 13:39 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2019-06-12 13:39 UTC (permalink / raw
  To: gentoo-commits

commit:     a90d9d3b1693bc62713321ba40b48d3e4c6996c1
Author:     Michael Mair-Keimberger <m.mairkeimberger <AT> gmail <DOT> com>
AuthorDate: Sun May 19 17:30:37 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Jun 12 13:34:04 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a90d9d3b

app-admin/sysrqd: version bump + EAPI=7

Closes: https://bugs.gentoo.org/686314
Signed-off-by: Michael Mair-Keimberger <m.mairkeimberger <AT> gmail.com>
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-admin/sysrqd/Manifest                          |  1 +
 .../sysrqd/files/sysrqd-17-fix-build-system.patch  | 13 ++++++
 app-admin/sysrqd/sysrqd-17.ebuild                  | 53 ++++++++++++++++++++++
 3 files changed, 67 insertions(+)

diff --git a/app-admin/sysrqd/Manifest b/app-admin/sysrqd/Manifest
index 66767c06ced..4c85a4aeb7f 100644
--- a/app-admin/sysrqd/Manifest
+++ b/app-admin/sysrqd/Manifest
@@ -1 +1,2 @@
 DIST sysrqd-14.tar.gz 4759 BLAKE2B 3ef8b2f5092a899753da487d0a82a71d2d93d0c6a70689b5923fa900f2766de15fa2e416cb667d800dac19499218a0246941b8c52bfe4421af774ccecc62222e SHA512 efad48be3974923ec14d0958e788115c9273bc29b4f03853e6e087f6af872299ea57d42f885be19ff4eeaffa577ecf1c53ea2adb2f84e1487bb2511597b89cb2
+DIST sysrqd-17.tar.gz 5232 BLAKE2B 4fd3baf7bce45b43577db7cd4a383161a8d69bd88e041afe20c33d3812235829729c57b748321195c2bccea819827655080199c0167bafad7252ca29b2a3a27c SHA512 fd0e42d2edd5e8548510aa823b2fef6339b2dc1dde1fe387585b9f2611e7d944fa6d73447e3f58a0aa00d45a88459c6e9cbb619428282abf367f62a8270e5d54

diff --git a/app-admin/sysrqd/files/sysrqd-17-fix-build-system.patch b/app-admin/sysrqd/files/sysrqd-17-fix-build-system.patch
new file mode 100644
index 00000000000..2118b8e682e
--- /dev/null
+++ b/app-admin/sysrqd/files/sysrqd-17-fix-build-system.patch
@@ -0,0 +1,13 @@
+--- sysrqd-17/Makefile	2019-04-08 15:37:16.000000000 +0200
++++ sysrqd-17-ng/Makefile	2019-05-20 19:55:15.842841704 +0200
+@@ -5,8 +5,9 @@
+         -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
+         -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
+         -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn \
+-        -std=gnu99 -pipe -DSYSRQD_VERSION="\"$(VERSION)\"" -O3
++        -std=gnu99
+ LDFLAGS+=-lcrypt
++CPPFLAGS+=-DSYSRQD_VERSION="\"$(VERSION)\""
+ 
+ SBINDIR=$(DESTDIR)/usr/sbin
+ #MANDIR=$(DESTDIR)/usr/share/man/man1

diff --git a/app-admin/sysrqd/sysrqd-17.ebuild b/app-admin/sysrqd/sysrqd-17.ebuild
new file mode 100644
index 00000000000..541c67095fc
--- /dev/null
+++ b/app-admin/sysrqd/sysrqd-17.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs
+
+DESCRIPTION="Daemon providing access to the kernel sysrq functions via network"
+HOMEPAGE="https://github.com/jd/sysrqd"
+SRC_URI="https://github.com/jd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-config.patch
+	"${FILESDIR}"/${P}-fix-build-system.patch
+)
+
+src_configure() {
+	tc-export CC
+}
+
+src_install() {
+	dosbin sysrqd
+	newinitd "${FILESDIR}/sysrqd.init" sysrqd
+
+	local bindip='127.0.0.1' secret
+	declare -i secret
+	let secret="${RANDOM}*${RANDOM}*${RANDOM}*${RANDOM}"
+	echo "${bindip}" > sysrqd.bind || die
+	echo "${secret}" > sysrqd.secret || die
+
+	diropts -m 0700 -o root -g root
+	dodir /etc/sysrqd
+	insinto /etc/sysrqd
+	insopts -m 0600 -o root -g root
+	doins sysrqd.bind
+	doins sysrqd.secret
+
+	einstalldocs
+}
+
+pkg_postinst() {
+	elog
+	elog "Be sure to change the initial secret in /etc/sysrqd/sysrqd.secret !"
+	elog "As a security precaution, sysrqd is configured to only listen on"
+	elog "127.0.0.1 by default. Change the content of /etc/sysrqd/sysrqd.bind"
+	elog "to an IPv4 address you want it to listen on or remove the file"
+	elog "to make it listen on any IP address (0.0.0.0)."
+	elog
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysrqd/, app-admin/sysrqd/files/
@ 2019-06-27 17:21 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2019-06-27 17:21 UTC (permalink / raw
  To: gentoo-commits

commit:     803afe2ab24506fbd856c9e807256d76960442da
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 27 12:05:52 2019 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Thu Jun 27 17:18:01 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803afe2a

app-admin/sysrqd: Drop old

Package-Manager: Portage-2.3.67, Repoman-2.3.16
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 app-admin/sysrqd/Manifest                          |  1 -
 .../sysrqd/files/sysrqd-14-fix-build-system.patch  | 21 ---------
 app-admin/sysrqd/sysrqd-14.ebuild                  | 54 ----------------------
 3 files changed, 76 deletions(-)

diff --git a/app-admin/sysrqd/Manifest b/app-admin/sysrqd/Manifest
index 4c85a4aeb7f..d4f03bf93de 100644
--- a/app-admin/sysrqd/Manifest
+++ b/app-admin/sysrqd/Manifest
@@ -1,2 +1 @@
-DIST sysrqd-14.tar.gz 4759 BLAKE2B 3ef8b2f5092a899753da487d0a82a71d2d93d0c6a70689b5923fa900f2766de15fa2e416cb667d800dac19499218a0246941b8c52bfe4421af774ccecc62222e SHA512 efad48be3974923ec14d0958e788115c9273bc29b4f03853e6e087f6af872299ea57d42f885be19ff4eeaffa577ecf1c53ea2adb2f84e1487bb2511597b89cb2
 DIST sysrqd-17.tar.gz 5232 BLAKE2B 4fd3baf7bce45b43577db7cd4a383161a8d69bd88e041afe20c33d3812235829729c57b748321195c2bccea819827655080199c0167bafad7252ca29b2a3a27c SHA512 fd0e42d2edd5e8548510aa823b2fef6339b2dc1dde1fe387585b9f2611e7d944fa6d73447e3f58a0aa00d45a88459c6e9cbb619428282abf367f62a8270e5d54

diff --git a/app-admin/sysrqd/files/sysrqd-14-fix-build-system.patch b/app-admin/sysrqd/files/sysrqd-14-fix-build-system.patch
deleted file mode 100644
index 2668c3c0c49..00000000000
--- a/app-admin/sysrqd/files/sysrqd-14-fix-build-system.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- a/Makefile
-+++ b/Makefile
-@@ -5,15 +5,15 @@
-         -Wundef -Wshadow -Wcast-align -Wwrite-strings -Wsign-compare \
-         -Wunused -Winit-self -Wpointer-arith -Wredundant-decls \
-         -Wmissing-prototypes -Wmissing-format-attribute -Wmissing-noreturn \
--        -std=gnu99 -pipe -DSYSRQD_VERSION="\"$(VERSION)\"" -O3
-+        -std=gnu99
-+CPPFLAGS += -DSYSRQD_VERSION="\"$(VERSION)\""
- 
- SBINDIR=$(DESTDIR)/usr/sbin
- #MANDIR=$(DESTDIR)/usr/share/man/man1
- INSTALL = install
- #MAN=sysrqd.1
- 
--$(BIN): $(O)
--	$(CC) $(LDFLAGS) -o $(BIN) $(O)
-+all: $(BIN)
- 
- install: $(BIN)
- 	$(INSTALL) -d -m 755 $(SBINDIR)

diff --git a/app-admin/sysrqd/sysrqd-14.ebuild b/app-admin/sysrqd/sysrqd-14.ebuild
deleted file mode 100644
index c53bc209cd1..00000000000
--- a/app-admin/sysrqd/sysrqd-14.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright 1999-2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit toolchain-funcs
-
-DESCRIPTION="Daemon providing access to the kernel sysrq functions via network"
-HOMEPAGE="https://github.com/jd/sysrqd"
-SRC_URI="https://dev.gentoo.org/~wschlich/src/${CATEGORY}/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-PATCHES=(
-	"${FILESDIR}"/${PN}-config.patch
-	"${FILESDIR}"/${PN}-14-fix-build-system.patch
-)
-
-src_configure() {
-	tc-export CC
-}
-
-src_install() {
-	dosbin sysrqd
-	newinitd "${FILESDIR}/sysrqd.init" sysrqd
-
-	local bindip='127.0.0.1' secret
-	declare -i secret
-	let secret=${RANDOM}*${RANDOM}*${RANDOM}*${RANDOM}
-	echo ${bindip} > sysrqd.bind || die
-	echo ${secret} > sysrqd.secret || die
-
-	diropts -m 0700 -o root -g root
-	dodir /etc/sysrqd
-	insinto /etc/sysrqd
-	insopts -m 0600 -o root -g root
-	doins sysrqd.bind
-	doins sysrqd.secret
-
-	einstalldocs
-}
-
-pkg_postinst() {
-	elog
-	elog "Be sure to change the initial secret in /etc/sysrqd/sysrqd.secret !"
-	elog "As a security precaution, sysrqd is configured to only listen on"
-	elog "127.0.0.1 by default. Change the content of /etc/sysrqd/sysrqd.bind"
-	elog "to an IPv4 address you want it to listen on or remove the file"
-	elog "to make it listen on any IP address (0.0.0.0)."
-	elog
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-admin/sysrqd/, app-admin/sysrqd/files/
@ 2020-03-24 16:43 Ben Kohler
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Kohler @ 2020-03-24 16:43 UTC (permalink / raw
  To: gentoo-commits

commit:     b6532717a48246c9b467595ee075fc666bdb2b7b
Author:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 24 16:38:58 2020 +0000
Commit:     Ben Kohler <bkohler <AT> gentoo <DOT> org>
CommitDate: Tue Mar 24 16:43:43 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b6532717

app-admin/sysrqd: add systemd unit

Closes: https://bugs.gentoo.org/581688
Package-Manager: Portage-2.3.95, Repoman-2.3.21
Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>

 app-admin/sysrqd/files/sysrqd.service | 11 +++++++
 app-admin/sysrqd/sysrqd-17-r1.ebuild  | 54 +++++++++++++++++++++++++++++++++++
 2 files changed, 65 insertions(+)

diff --git a/app-admin/sysrqd/files/sysrqd.service b/app-admin/sysrqd/files/sysrqd.service
new file mode 100644
index 00000000000..278226b581b
--- /dev/null
+++ b/app-admin/sysrqd/files/sysrqd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=SysRqd Telnet Daemon
+After=network.target
+
+[Service]
+Type=forking
+Restart=always
+ExecStart=-/usr/sbin/sysrqd
+
+[Install]
+WantedBy=multi-user.target

diff --git a/app-admin/sysrqd/sysrqd-17-r1.ebuild b/app-admin/sysrqd/sysrqd-17-r1.ebuild
new file mode 100644
index 00000000000..27c197001dd
--- /dev/null
+++ b/app-admin/sysrqd/sysrqd-17-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit systemd toolchain-funcs
+
+DESCRIPTION="Daemon providing access to the kernel sysrq functions via network"
+HOMEPAGE="https://github.com/jd/sysrqd"
+SRC_URI="https://github.com/jd/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-config.patch
+	"${FILESDIR}"/${P}-fix-build-system.patch
+)
+
+src_configure() {
+	tc-export CC
+}
+
+src_install() {
+	dosbin sysrqd
+	newinitd "${FILESDIR}/sysrqd.init" sysrqd
+	systemd_dounit "${FILESDIR}"/sysrqd.service
+
+	local bindip='127.0.0.1' secret
+	declare -i secret
+	let secret="${RANDOM}*${RANDOM}*${RANDOM}*${RANDOM}"
+	echo "${bindip}" > sysrqd.bind || die
+	echo "${secret}" > sysrqd.secret || die
+
+	diropts -m 0700 -o root -g root
+	dodir /etc/sysrqd
+	insinto /etc/sysrqd
+	insopts -m 0600 -o root -g root
+	doins sysrqd.bind
+	doins sysrqd.secret
+
+	einstalldocs
+}
+
+pkg_postinst() {
+	elog
+	elog "Be sure to change the initial secret in /etc/sysrqd/sysrqd.secret !"
+	elog "As a security precaution, sysrqd is configured to only listen on"
+	elog "127.0.0.1 by default. Change the content of /etc/sysrqd/sysrqd.bind"
+	elog "to an IPv4 address you want it to listen on or remove the file"
+	elog "to make it listen on any IP address (0.0.0.0)."
+	elog
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-24 16:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-03-24 16:43 [gentoo-commits] repo/gentoo:master commit in: app-admin/sysrqd/, app-admin/sysrqd/files/ Ben Kohler
  -- strict thread matches above, loose matches on Subject: below --
2019-06-27 17:21 Andreas Sturmlechner
2019-06-12 13:39 Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox