Files
guru/net-misc/can-utils/can-utils-9999-r3.ebuild
Alessandro Barbieri 359b347865 net-misc/can-utils: remove keyword from live ebuild
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
2021-03-14 10:58:11 +01:00

40 lines
744 B
Bash

# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGIT_REPO_URI="https://github.com/linux-can/${PN}.git"
EGIT_BRANCH="master"
inherit autotools git-r3 systemd
DESCRIPTION="CAN userspace utilities and tools"
HOMEPAGE="https://github.com/linux-can/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="systemd"
DEPEND=""
src_prepare() {
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
}