forked from ports/contrib
27 lines
647 B
Plaintext
27 lines
647 B
Plaintext
# Description: A Secure TCP/UDP Tunneling Daemon
|
|
# URL: https://www.openvpn.net
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: linux-pam lzo
|
|
|
|
name=openvpn
|
|
version=2.5.2
|
|
release=1
|
|
source=(https://swupdate.openvpn.net/community/releases/$name-$version.tar.xz
|
|
openvpn)
|
|
|
|
build() {
|
|
cd $name-$version
|
|
|
|
sed -i '/^CONFIGURE_DEFINES=/s/set/env/g' configure.ac
|
|
autoreconf --force --install
|
|
|
|
./configure --prefix=/usr \
|
|
--enable-iproute2
|
|
make
|
|
make DESTDIR=$PKG install
|
|
|
|
rm -r $PKG/usr/share/doc
|
|
install -D -m 755 doc/openvpn.8 $PKG/usr/share/man/man8/openvpn.8
|
|
install -D -m 755 $SRC/openvpn $PKG/etc/rc.d/openvpn
|
|
}
|