# $Id$ PNAME="openvpn" PVER="2.3.2" PBUILD="r2" PCAT="net-vpn" DESCRIPTION="openvpn - an OpenSource SSL-VPN client." HOMEPAGE="http://openvpn.net/" DEPEND=">= dev-libs/lzo-2 >= dev-libs/openssl-1.0.1f >= sys-apps/iproute2-3.9 >= sys-libs/pam-1.1" SDEPEND=">= virtual/kernel-headers" SRCFILE="${PNAME}-${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" sminclude mbuild mtools systemd SRC_URI=( http://swupdate.openvpn.org/community/releases/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/openvpn.service ) # no _alpha, _beta, _RC UP2EXCLUDE="_[a-Z]" UP2DATE="updatecmd http://openvpn.net/index.php/open-source/downloads.html | grep ${PNAME}-[0-9] | firsttarball gz" src_compile() { cd ${SRCDIR} mconfigure \ --enable-lzo \ --enable-crypto \ --enable-ssl \ --enable-pthread \ --enable-iproute2 \ --enable-plugin-auth-pam \ --enable-plugin-down-root \ || die mmake || die } src_install() { cd ${SRCDIR} mmake DESTDIR=${BINDIR} install || die minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die minstallfile sample/sample-config-files/\* /usr/share/doc/${PNAME}-${PVER}/sample-config-files || die minstalldir /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die minstallfile sample/sample-scripts/\* /usr/share/doc/${PNAME}-${PVER}/sample-scripts || die # initscript stuff mkeepdir /etc/openvpn || die minstallunit openvpn.service 'openvpn@.service' || die minstalldocs AUTHORS COPYING COPYRIGHT.GPL ChangeLog NEWS PORTS README || die }