net-misc/can-utils: Fixed shebang for /etc/init.d/slcand

Closes: https://bugs.gentoo.org/781686
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Hans Fredrik Nordhaug <hansfn@gmail.com>
This commit is contained in:
Hans Fredrik Nordhaug
2021-04-09 09:11:49 +02:00
parent 4164c7276e
commit 1730a6fdb8
3 changed files with 3 additions and 44 deletions

View File

@@ -5,8 +5,8 @@ EAPI=7
inherit autotools systemd
DESCRIPTION="CAN userspace utilities and tools"
HOMEPAGE="https://github.com/linux-can/"
DESCRIPTION="SocketCAN userspace utilities and tools"
HOMEPAGE="https://github.com/linux-can/can-utils"
SRC_URI="https://github.com/linux-can/can-utils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"

View File

@@ -1,39 +0,0 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools systemd
DESCRIPTION="CAN userspace utilities and tools"
HOMEPAGE="https://github.com/linux-can/"
SRC_URI="https://github.com/linux-can/can-utils/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="systemd"
DEPEND=""
src_prepare() {
default
eautoreconf
}
# Default src_install + newconfd and newinitd
src_install() {
emake DESTDIR="${D}" install
einstalldocs
if use systemd ; then
systemd_dounit "${FILESDIR}/slcan.service"
systemd_install_serviced "${FILESDIR}/slcan.service.conf"
else
newconfd "${FILESDIR}/slcand.confd" slcand
newinitd "${FILESDIR}/slcand.initd" slcand
fi
}

View File

@@ -1,6 +1,4 @@
#!/sbin/runscript
# Copyright 2013 Brunvoll AS
#!/sbin/openrc-run
start() {