OpenVPN supports saving passwords for authentification against a server (--auth-user-pass) in a file but enabling this needs a compile time (./configure) option. Below trivial patch adds this feature, please apply. --- /usr/portage/net-misc/openvpn/openvpn-2.0.2-r3.ebuild 2005-10-15 10:05:54.000000000 +0200 +++ openvpn-2.0.2-r4.ebuild 2005-10-22 22:16:47.000000000 +0200 @@ -11,7 +11,7 @@ LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha ~amd64 ~ppc ~ppc-macos ~sparc ~x86" -IUSE="examples iproute2 minimal selinux ssl static threads" +IUSE="examples iproute2 minimal selinux ssl static threads password-save" RDEPEND=">=dev-libs/lzo-1.07 iproute2? ( sys-apps/iproute2 ) || ( sys-apps/net-tools ) @@ -36,6 +36,7 @@ $(use_enable ssl) \ $(use_enable ssl crypto) \ $(use_enable threads pthread) \ + $(use_enable password-save) \ || die "configure failed" use static && sed -e -i '/^LIBS/s/LIBS = /LIBS = -static /' Makefile
Thanks for the patch! Is in openvpn-2.0.4-r1 and r2, but the USE flag has been renamed to passwordsave