This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
lsts_glued/rules/openvpn/default.bash

51 lines
734 B
Bash
Raw Normal View History

2015-09-04 17:46:53 +01:00
version=\
(
'2.3.7'
)
url=\
(
"https://swupdate.openvpn.org/community/releases/openvpn-$version.tar.xz"
)
md5=\
(
'5b819f7cd0b875f55f20a947224967aa'
)
maintainer=\
(
"Ricardo Martins <rasm@fe.up.pt>"
)
requires=\
(
'openssl/default'
'lzo/default'
)
configure()
{
"../openvpn-$version/configure" \
--prefix="$cfg_dir_toolchain_sysroot/usr" \
--target="$cfg_target_canonical" \
--host="$cfg_target_canonical" \
--build="$cfg_host_canonical" \
--disable-plugin-auth-pam
}
build()
{
$cmd_make
}
host_install()
{
$cmd_make install
}
target_install()
{
$cmd_target_strip "$cfg_dir_toolchain_sysroot/usr/sbin/openvpn" -o "$cfg_dir_rootfs/bin/openvpn"
}