diff options
author | Austin English <wizardedit@gentoo.org> | 2016-05-03 18:16:00 -0500 |
---|---|---|
committer | Austin English <wizardedit@gentoo.org> | 2016-05-03 19:08:37 -0500 |
commit | fb358b8c7a84f7b146cb1132ff8c709a877d2acb (patch) | |
tree | 256fa01038fa97bb88fb35df772ccf7abe63051a /net-misc/cbqinit | |
parent | net-misc/capi4hylafax: remove old versions (diff) | |
download | gentoo-fb358b8c7a84f7b146cb1132ff8c709a877d2acb.tar.gz gentoo-fb358b8c7a84f7b146cb1132ff8c709a877d2acb.tar.bz2 gentoo-fb358b8c7a84f7b146cb1132ff8c709a877d2acb.zip |
net-misc/cbqinit: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/573846
Package-Manager: portage-2.2.26
Diffstat (limited to 'net-misc/cbqinit')
-rw-r--r-- | net-misc/cbqinit/cbqinit-0.7.3-r2.ebuild | 35 | ||||
-rw-r--r-- | net-misc/cbqinit/files/rc_cbqinit | 17 | ||||
-rw-r--r-- | net-misc/cbqinit/files/rc_cbqinit-r1 | 4 |
3 files changed, 37 insertions, 19 deletions
diff --git a/net-misc/cbqinit/cbqinit-0.7.3-r2.ebuild b/net-misc/cbqinit/cbqinit-0.7.3-r2.ebuild new file mode 100644 index 000000000000..71296e34a026 --- /dev/null +++ b/net-misc/cbqinit/cbqinit-0.7.3-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +DESCRIPTION="Sets up class-based queue traffic control (QoS) with iproute2" +HOMEPAGE="http://www.sourceforge.net/projects/cbqinit" +SRC_URI="mirror://sourceforge/cbqinit/cbq.init-v${PV} -> ${P}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="alpha amd64 ~arm hppa ~mips ppc sparc x86" +IUSE="" + +RDEPEND="sys-apps/iproute2" +DEPEND="" + +S=${WORKDIR} + +src_unpack() { + cp "${DISTDIR}"/${P} "${S}"/cbqinit || die + grep '^#' cbqinit > README +} + +src_prepare() { + eapply -p0 "${FILESDIR}"/${P}-gentoo.patch + default +} + +src_install() { + dosbin cbqinit + newinitd "${FILESDIR}"/rc_cbqinit-r1 cbqinit + dodoc "${FILESDIR}"/cbq-1280.My_first_shaper.sample README +} diff --git a/net-misc/cbqinit/files/rc_cbqinit b/net-misc/cbqinit/files/rc_cbqinit deleted file mode 100644 index e4e7351d2fba..000000000000 --- a/net-misc/cbqinit/files/rc_cbqinit +++ /dev/null @@ -1,17 +0,0 @@ -#!/sbin/runscript - -depend() { - need net -} - -start() { - ebegin "Starting cbqinit" - /usr/sbin/cbqinit start - eend $? -} - -stop() { - ebegin "Stopping cbqinit" - /usr/sbin/cbqinit stop - eend $? -} diff --git a/net-misc/cbqinit/files/rc_cbqinit-r1 b/net-misc/cbqinit/files/rc_cbqinit-r1 index b6ffad898e87..2c811a54db26 100644 --- a/net-misc/cbqinit/files/rc_cbqinit-r1 +++ b/net-misc/cbqinit/files/rc_cbqinit-r1 @@ -1,5 +1,5 @@ -#!/sbin/runscript -# Copyright 1999-2005 Gentoo Foundation +#!/sbin/openrc-run +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 depend() { |