blob: 06a8a8618cf38f3e858bc4962cd61d279f73d1d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit autotools bash-completion-r1 systemd
DESCRIPTION="Multiple spanning tree protocol daemon"
HOMEPAGE="https://github.com/mstpd/mstpd"
SRC_URI="https://github.com/mstpd/mstpd/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
--with-bashcompletiondir="$(get_bashcompdir)" \
--with-systemdunitdir="$(systemd_get_systemunitdir)" \
--localstatedir="${EPREFIX}"/var
}
src_install() {
default
dosym ../../sbin/bridge-stp /lib/mstpctl-utils/mstpctl_restart_config
dosym bridge-stp /sbin/mstp_restart
}
|