mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-09 23:23:00 -04:00
net-misc/brickd: fix service file installation
- fix automagic systemd service installation - install OpenRC service instead of SysVinit one Closes: https://bugs.gentoo.org/952034 Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
@@ -10,6 +10,8 @@ S="${WORKDIR}/${P}/src/${PN}"
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="systemd"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libusb-1.0.27:1
|
||||
>=dev-libs/libgpiod-1.6.4:="
|
||||
@@ -29,3 +31,13 @@ src_configure() {
|
||||
# reference: https://github.com/Tinkerforge/brickd
|
||||
ln -s "${WORKDIR}/daemonlib-${P}" "${WORKDIR}/${P}/src/daemonlib" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
local myemakeargs=(
|
||||
prefix="${EPREFIX}/usr"
|
||||
DESTDIR="${D}"
|
||||
WITH_SYSTEMD="$(usex systemd)"
|
||||
)
|
||||
emake "${myemakeargs[@]}" install
|
||||
newinitd "${WORKDIR}/${P}"/src/build_data/alpine/brickd/brickd.initd brickd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user