commit:     e0333aff0166b56afe30ed1110e9a8af3e2bccdb
Author:     Austin English <wizardedit <AT> gentoo <DOT> org>
AuthorDate: Thu Apr 28 21:59:00 2016 +0000
Commit:     Austin English <wizardedit <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 21:59:32 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e0333aff

net-dialup/sercd: use #!/sbin/openrc-run instead of #!/sbin/runscript

Gentoo-Bug: https://bugs.gentoo.org/573846

Package-Manager: portage-2.2.26

 net-dialup/sercd/files/sercd.initd     |  4 ++--
 net-dialup/sercd/sercd-3.0.0-r2.ebuild | 36 ++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+), 2 deletions(-)

diff --git a/net-dialup/sercd/files/sercd.initd 
b/net-dialup/sercd/files/sercd.initd
index c36ac1f..550bdfa 100644
--- a/net-dialup/sercd/files/sercd.initd
+++ b/net-dialup/sercd/files/sercd.initd
@@ -1,5 +1,5 @@
-#!/sbin/runscript
-# Copyright 1999-2014 Gentoo Foundation
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 

diff --git a/net-dialup/sercd/sercd-3.0.0-r2.ebuild 
b/net-dialup/sercd/sercd-3.0.0-r2.ebuild
new file mode 100644
index 0000000..37af701
--- /dev/null
+++ b/net-dialup/sercd/sercd-3.0.0-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit eutils
+
+DESCRIPTION="RFC2217-compliant serial port redirector"
+HOMEPAGE="http://sourceforge.net/projects/sercd";
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="xinetd"
+
+RDEPEND="xinetd? ( virtual/inetd )"
+
+DOCS=( AUTHORS README )
+
+src_prepare() {
+       eapply_user
+}
+
+src_install () {
+       default
+
+       newinitd "${FILESDIR}/${PN}.initd" "${PN}"
+       newconfd "${FILESDIR}/${PN}.confd" "${PN}"
+       if use xinetd ; then
+               insinto /etc/xinetd.d
+               newins "${FILESDIR}/${PN}.xinetd" "${PN}"
+       fi
+}

Reply via email to