mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-21 04:53:07 -04:00
net-misc/can-utils: unconditionally install small files
Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
33
net-misc/can-utils/can-utils-2020.12.0-r1.ebuild
Normal file
33
net-misc/can-utils/can-utils-2020.12.0-r1.ebuild
Normal file
@@ -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
|
||||||
|
}
|
||||||
@@ -14,9 +14,6 @@ HOMEPAGE="https://github.com/linux-can/"
|
|||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS=""
|
KEYWORDS=""
|
||||||
IUSE="systemd"
|
|
||||||
|
|
||||||
DEPEND=""
|
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
eautoreconf
|
eautoreconf
|
||||||
@@ -29,11 +26,8 @@ src_install() {
|
|||||||
|
|
||||||
einstalldocs
|
einstalldocs
|
||||||
|
|
||||||
if use systemd ; then
|
systemd_dounit "${FILESDIR}/slcan.service"
|
||||||
systemd_dounit "${FILESDIR}/slcan.service"
|
systemd_install_serviced "${FILESDIR}/slcan.service.conf"
|
||||||
systemd_install_serviced "${FILESDIR}/slcan.service.conf"
|
newconfd "${FILESDIR}/slcand.confd" slcand
|
||||||
else
|
newinitd "${FILESDIR}/slcand.initd" slcand
|
||||||
newconfd "${FILESDIR}/slcand.confd" slcand
|
|
||||||
newinitd "${FILESDIR}/slcand.initd" slcand
|
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user