PATCH_LIST= FILE_LIST= SRC_FETCH_METHOD=http SRC_FETCH_PATH="http://swupdate.openvpn.org/community/releases/openvpn-${PKGVER}.tar.gz" MAKEDEPENDS=( "openssl-*:::*.h *.so *.so.*" "lzo-*:::*.h *.a" ) function do_config { # Sometimes, broken packages will need LD="$CC" CC="$CC" CXX="$CXX" LD="$LD" \ RANLIB="$RANLIB" AR="$AR" AS="$AS" NM="$NM" OBJDUMP="$OBJDUMP" \ CFLAGS="$GCC_ARCH_SMALL $GCC_CPU_SMALL $GCC_OPT_SMALL" \ ./configure --enable-iproute2 --with-iproute-path=/sbin/ip \ --prefix=/usr --sysconfdir=/etc/openvpn \ --disable-plugin-auth-pam \ --host=$FLXTARG --build=$FLXHOST } function do_compile_only { # parallel make $FLXPMAKE } function do_prepack { $FLXMAKE install DESTDIR=$ROOTDIR set_default_perm $ROOTDIR mkdir -p $EXAMPLEDIR/$PKGRADIX/${PKGVER%.*} mkdir -p $ROOTDIR/etc/openvpn cp sample-config-files/* $EXAMPLEDIR/$PKGRADIX/${PKGVER%.*}/ mkdir -p $ROOTDIR/sbin/init.d cp $PKGDIR/add-ons/openvpn $ROOTDIR/sbin/init.d/ chmod 755 $ROOTDIR/sbin/init.d/openvpn set_default_perm $ROOTDIR chgrp adm $ROOTDIR/etc/openvpn chmod 750 $ROOTDIR/etc/openvpn }