# Created by Tobias Powalowski <tpowa@archlinux.org>

install ()
{
    MODULES=""
    BINARIES="openvpn"
    FILES=""
    SCRIPT=""
    add_dir "/etc/openvpn"
    add_file "/etc/rc.d/openvpn"
    add_file "/etc/rc.d/openvpn-tapdev"
    add_file "/usr/share/archboot/openvpn/etc/conf.d/openvpn-tapdev" "/etc/conf.d/openvpn-tapdev"
    # add examples
    for i in /usr/share/openvpn/examples/*; do
        add_file "$i"
    done
    # add easy rsa
    for i in /usr/share/openvpn/easy-rsa/*; do
        add_file "$i"
    done
    # add plugins
    for i in /usr/lib/openvpn/*; do
        add_file "$i"
    done
    # fix licenses
    add_file "/usr/share/licenses/openvpn/COPYING"
}

help ()
{
cat<<HELPEOF
  This hook includes openvpn on an arch boot image.
HELPEOF
} 
