forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net-vpn/openvpn: fix installation of systemd units and tmpfiles
- Loading branch information
Showing
2 changed files
with
4 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) \ | ||
|
@@ -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() { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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' '' '') \ | ||
|
@@ -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() { | ||
|