Skip to content

Commit

Permalink
net-vpn/openvpn: fix installation of systemd units and tmpfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
puleglot authored and mrueg committed May 28, 2017
1 parent d8a3b2e commit a85313e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ src_prepare() {

src_configure() {
use static && append-ldflags -Xcompiler -static
SYSTEMD_UNIT_DIR=$(systemd_get_systemunitdir) \
TMPFILES_DIR="/usr/lib/tmpfiles.d" \
econf \
$(usex mbedtls '--with-crypto-library=mbedtls' '') \
$(use_enable inotify async-push) \
Expand Down Expand Up @@ -110,10 +112,6 @@ src_install() {
insinto /usr/share/doc/${PF}/examples
doins -r sample contrib
fi

systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
use systemd && systemd_newunit distro/systemd/[email protected] [email protected]
use systemd && systemd_newunit distro/systemd/[email protected] [email protected]
}

pkg_postinst() {
Expand Down
6 changes: 2 additions & 4 deletions net-vpn/openvpn/openvpn-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ src_prepare() {

src_configure() {
use static && append-ldflags -Xcompiler -static
SYSTEMD_UNIT_DIR=$(systemd_get_systemunitdir) \
TMPFILES_DIR="/usr/lib/tmpfiles.d" \
econf \
--with-plugindir="${ROOT}/usr/$(get_libdir)/$PN" \
$(usex mbedtls 'with-crypto-library' 'mbedtls' '' '') \
Expand Down Expand Up @@ -109,10 +111,6 @@ src_install() {
insinto /usr/share/doc/${PF}/examples
doins -r sample contrib
fi

systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
systemd_newunit distro/systemd/[email protected] [email protected]
systemd_newunit distro/systemd/[email protected] [email protected]
}

pkg_postinst() {
Expand Down

0 comments on commit a85313e

Please sign in to comment.