1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 DESCRIPTION="Brings up/down ethernet ports automatically with cable detection"
7 HOMEPAGE="http://0pointer.de/lennart/projects/ifplugd/"
8 SRC_URI="http://0pointer.de/lennart/projects/ifplugd/${P}.tar.gz"
12 KEYWORDS="amd64 ~arm ~arm64 hppa ppc x86"
15 DEPEND="virtual/pkgconfig
16 doc? ( www-client/lynx )
17 >=dev-libs/libdaemon-0.5"
18 RDEPEND=">=dev-libs/libdaemon-0.5
19 >=sys-apps/baselayout-1.12
20 selinux? ( sec-policy/selinux-ifplugd )"
23 "${FILESDIR}/${P}-nlapi.diff"
24 "${FILESDIR}/${P}-interface.patch"
25 "${FILESDIR}/${P}-strictalias.patch"
26 "${FILESDIR}/${P}-noip.patch"
27 "${FILESDIR}/${P}-musl.patch"
28 "${FILESDIR}/${P}-gcc10-compatibility.patch"
31 DOCS=( doc/README doc/SUPPORTED_DRIVERS )
32 HTML_DOCS=( doc/README.html doc/style.css )
36 $(use_enable doc lynx) \
37 --with-initdir=/etc/init.d \
45 # Remove init.d configuration as we no longer use it
46 rm -rf "${ED}/etc/ifplugd" "${ED}/etc/init.d/${PN}" || die
49 newexe "${FILESDIR}/${PN}.action" "${PN}.action"