Created attachment 380034 [details, diff] openvpn-2.3.4-r1.ebuild.patch openvpn upstream added following patch: http://sourceforge.net/p/openvpn/openvpn-testing/ci/9449e6a9eba30c9ed054f57d630a88c9f087080f/ We need to enable this feature for systemd otherwise it is really hacky to allow systemd to ask for certificate password (see for example https://bbs.archlinux.org/viewtopic.php?id=150440). With this patch systemd on start will request for password and starts service after that. Please review and apply or give me ok and I'll add it to the tree.
Looks ok to me but, are you sure a USE flag is needed? Looks like it will test for systemd to be running to not break if not :/
It won't work with our systemd package; it is invoking /bin/systemd-ask-password, but we install it as /usr/bin/systemd-ask-password.
(In reply to Mike Gilbert from comment #2) > it is invoking /bin/systemd-ask-password, but we install it as > /usr/bin/systemd-ask-password. This is fixed in ebuild patch :) BTW, do you know, are there any reasons why we do this way? (In reply to Pacho Ramos from comment #1) > Looks ok to me but, are you sure a USE flag is needed? Looks like it will > test for systemd to be running to not break if not :/ Yes, I prefer to be able to build system without systemd traces when needed. Since upstream maintains ./configure switch I see no problems here. That said committed.
(In reply to Peter Volkov from comment #3) [...] > (In reply to Pacho Ramos from comment #1) > > Looks ok to me but, are you sure a USE flag is needed? Looks like it will > > test for systemd to be running to not break if not :/ > > Yes, I prefer to be able to build system without systemd traces when needed. > Since upstream maintains ./configure switch I see no problems here. > > > That said committed. The idea of avoiding systemd USE flags when possible is to not force people to rebuild a lot of packages when switching between inits and, also, to let them boot "better" on either system :)
(In reply to Peter Volkov from comment #3) > This is fixed in ebuild patch :) BTW, do you know, are there any reasons why > we do this way? All of systemd was moved to /usr due to some confusion by Gentoo's udev maintainer. Moving it back to / would be somewhat painful at this point.
I sent a patch to detect this path in configure. http://sourceforge.net/p/openvpn/mailman/message/32561896/