| 19 |
19 |
https://build.openvpn.net/downloads/releases/${P}.tar.gz
|
| 20 |
20 |
verify-sig? ( https://build.openvpn.net/downloads/releases/${P}.tar.gz.asc )
|
| 21 |
21 |
"
|
| 22 |
|
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~mips ~ppc ppc64 ~riscv ~sparc x86"
|
|
22 |
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86"
|
| 23 |
23 |
fi
|
| 24 |
24 |
|
| 25 |
25 |
LICENSE="GPL-2"
|
| ... | ... | |
| 77 |
77 |
BDEPEND+=" verify-sig? ( >=sec-keys/openpgp-keys-openvpn-202600704 )"
|
| 78 |
78 |
fi
|
| 79 |
79 |
|
|
80 |
PATCHES=(
|
|
81 |
# Paired with LTO hack in src_configure, don't drop!
|
|
82 |
"${FILESDIR}"/${PN}-2.7.7-tests-no-lto.patch
|
|
83 |
)
|
|
84 |
|
| 80 |
85 |
pkg_setup() {
|
| 81 |
86 |
local CONFIG_CHECK="~TUN"
|
| 82 |
87 |
if use kernel-ovpn; then
|
| ... | ... | |
| 137 |
142 |
elog "Running top-level tests"
|
| 138 |
143 |
emake check
|
| 139 |
144 |
|
| 140 |
|
pushd tests/unit_tests &>/dev/null || die
|
| 141 |
145 |
elog "Running unit tests"
|
| 142 |
|
emake check
|
| 143 |
|
popd &>/dev/null || die
|
|
146 |
emake -C tests/unit_tests check
|
| 144 |
147 |
}
|
| 145 |
148 |
|
| 146 |
149 |
src_install() {
|
| ... | ... | |
| 148 |
151 |
|
| 149 |
152 |
find "${ED}/usr" -type f -name '*.la' -delete || die
|
| 150 |
153 |
|
| 151 |
|
# install documentation
|
| 152 |
|
dodoc AUTHORS ChangeLog PORTS README
|
| 153 |
|
|
| 154 |
154 |
# Install some helper scripts
|
| 155 |
155 |
keepdir /etc/openvpn
|
| 156 |
156 |
exeinto /etc/openvpn
|
| ... | ... | |
| 158 |
158 |
doexe "${FILESDIR}/down.sh"
|
| 159 |
159 |
|
| 160 |
160 |
# Install the init script and config file
|
| 161 |
|
newinitd "${FILESDIR}/${PN}-2.1.init" openvpn
|
|
161 |
newinitd "${FILESDIR}/${PN}-2.2.init" openvpn
|
| 162 |
162 |
newconfd "${FILESDIR}/${PN}-2.1.conf" openvpn
|
| 163 |
163 |
|
| 164 |
164 |
# install examples, controlled by the respective useflag
|
| 165 |
165 |
if use examples ; then
|
| 166 |
|
# (is the below comment relevant anymore?)
|
| 167 |
|
## dodoc does not supportly support directory traversal, #15193
|
| 168 |
166 |
docinto examples
|
| 169 |
167 |
dodoc -r sample contrib
|
| 170 |
168 |
fi
|
| 171 |
169 |
|
| 172 |
|
# https://bugs.gentoo.org/755680#c3
|
| 173 |
|
doman doc/openvpn.8
|
| 174 |
|
|
| 175 |
170 |
# https://github.com/OpenVPN/openvpn/issues/482 (bug #857648)
|
| 176 |
171 |
newtmpfiles distro/systemd/tmpfiles-openvpn.conf openvpn.conf
|
| 177 |
172 |
}
|