1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
8 if [[ ${PV} == 9999 ]]; then
9 inherit autotools git-r3
10 EGIT_REPO_URI="https://github.com/virtualsqaure/MY_PN"
12 elif [[ ${PV} = *_p* ]]; then
15 COMMIT="c7b36a57831a9067c8619c3e17a03e595623b3eb"
16 SRC_URI="https://github.com/virtualsquare/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
19 S="${WORKDIR}/${MY_PN}-${COMMIT}"
22 SRC_URI="mirror://sourceforge/vde/${MY_P}.tar.bz2"
23 KEYWORDS="~amd64 ~arm64 ~ppc ~ppc64 ~x86"
24 S="${WORKDIR}/${MY_P}"
27 DESCRIPTION="Virtual distributed ethernet emulator for emulators like qemu, bochs, and uml"
28 HOMEPAGE="https://virtualsquare.org"
32 #IUSE="pcap selinux ssl libressl static-libs"
33 # upstream switched to wolfssl
34 IUSE="pcap selinux static-libs"
36 COMMON_DEPS="pcap? ( net-libs/libpcap )"
37 # upstream switched to wolfssl
39 # !libressl? ( dev-libs/openssl:0= )
40 # libressl? ( dev-libs/libressl:0= )
42 DEPEND="${COMMON_DEPS}"
43 RDEPEND="${COMMON_DEPS}
45 selinux? ( sec-policy/selinux-vde )"
47 # upstream switched to wolfssl
50 if [[ ${PV} == 9999 ]] || [[ ${PV} == *_p* ]]; then
53 # upstream switched to wolfssl
54 # has_version ">=dev-libs/openssl-1.1.0" && \
55 # eapply "${FILESDIR}/${PN}-2.3.2-openssl-1.1.patch"
60 # upstream switched to wolfssl
61 # $(use_enable ssl cryptcab) \
66 $(use_enable static-libs static)
70 # https://github.com/virtualsquare/vde-2/issues/6
76 find "${D}" -name '*.la' -type f -delete || die
78 newinitd "${FILESDIR}"/vde.init-r1 vde
79 newconfd "${FILESDIR}"/vde.conf-r1 vde
83 einfo "To start vde automatically add it to the default runlevel:"
84 einfo "# rc-update add vde default"
85 einfo "You need to setup tap0 in /etc/conf.d/net"
86 einfo "To use it as an user be sure to set a group in /etc/conf.d/vde"