From e1545936e8b94076199274d80db80d2b4e649d44 Mon Sep 17 00:00:00 2001 From: Alessandro Barbieri Date: Sun, 14 Mar 2021 11:01:02 +0100 Subject: [PATCH] net-misc/can-utils: unconditionally install small files Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Alessandro Barbieri --- .../can-utils/can-utils-2020.12.0-r1.ebuild | 33 +++++++++++++++++++ net-misc/can-utils/can-utils-9999-r3.ebuild | 14 +++----- 2 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 net-misc/can-utils/can-utils-2020.12.0-r1.ebuild diff --git a/net-misc/can-utils/can-utils-2020.12.0-r1.ebuild b/net-misc/can-utils/can-utils-2020.12.0-r1.ebuild new file mode 100644 index 0000000000..6313469107 --- /dev/null +++ b/net-misc/can-utils/can-utils-2020.12.0-r1.ebuild @@ -0,0 +1,33 @@ +# 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" + +src_prepare() { + default + + eautoreconf +} + +# Default src_install + newconfd and newinitd +src_install() { + + emake DESTDIR="${D}" install + + einstalldocs + + systemd_dounit "${FILESDIR}/slcan.service" + systemd_install_serviced "${FILESDIR}/slcan.service.conf" + newconfd "${FILESDIR}/slcand.confd" slcand + newinitd "${FILESDIR}/slcand.initd" slcand +} diff --git a/net-misc/can-utils/can-utils-9999-r3.ebuild b/net-misc/can-utils/can-utils-9999-r3.ebuild index 6ee6002991..e860c30876 100644 --- a/net-misc/can-utils/can-utils-9999-r3.ebuild +++ b/net-misc/can-utils/can-utils-9999-r3.ebuild @@ -14,9 +14,6 @@ HOMEPAGE="https://github.com/linux-can/" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="systemd" - -DEPEND="" src_prepare() { eautoreconf @@ -29,11 +26,8 @@ src_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 + systemd_dounit "${FILESDIR}/slcan.service" + systemd_install_serviced "${FILESDIR}/slcan.service.conf" + newconfd "${FILESDIR}/slcand.confd" slcand + newinitd "${FILESDIR}/slcand.initd" slcand }