Files
guru/net-misc/can-utils/can-utils-2020.02.04.ebuild
Andrew Ammerlaan d21ed1af4d net-misc/can-utils: just call einstalldocs instead of copying it
(or call 'default' in tsrc_install)

Package-Manager: Portage-3.0.15, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
2021-02-27 22:21:31 +01:00

40 lines
762 B
Bash

# 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
}