mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-21 10:37:22 -08:00
net-vpn/libreswan: [QA] call tmpfiles_process in pkg_postinst
This is needed to actually apply the tmpfiles configuration we've installed in the ebuild. See tmpfiles.eclass documentation. Revbump because the new tmpfiles inherit adds a new dependency (virtual/tmpfiles). Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
+3
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd toolchain-funcs
|
||||
inherit systemd toolchain-funcs tmpfiles
|
||||
|
||||
DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
|
||||
HOMEPAGE="https://libreswan.org/"
|
||||
@@ -107,6 +107,8 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process libreswan.conf
|
||||
|
||||
local IPSEC_CONFDIR=${ROOT}/etc/ipsec.d
|
||||
if [[ ! -f ${IPSEC_CONFDIR}/cert8.db && ! -f ${IPSEC_CONFDIR}/cert9.db ]] ; then
|
||||
ebegin "Setting up NSS database in ${IPSEC_CONFDIR} with empty password"
|
||||
+3
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd toolchain-funcs
|
||||
inherit systemd toolchain-funcs tmpfiles
|
||||
|
||||
DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
|
||||
HOMEPAGE="https://libreswan.org/"
|
||||
@@ -107,6 +107,8 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process libreswan.conf
|
||||
|
||||
local IPSEC_CONFDIR=${ROOT}/etc/ipsec.d
|
||||
if [[ ! -f ${IPSEC_CONFDIR}/cert8.db && ! -f ${IPSEC_CONFDIR}/cert9.db ]] ; then
|
||||
ebegin "Setting up NSS database in ${IPSEC_CONFDIR} with empty password"
|
||||
+3
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd toolchain-funcs
|
||||
inherit systemd toolchain-funcs tmpfiles
|
||||
|
||||
DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
|
||||
HOMEPAGE="https://libreswan.org/"
|
||||
@@ -110,6 +110,8 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process libreswan.conf
|
||||
|
||||
local IPSEC_CONFDIR=${ROOT}/var/lib/ipsec/nss
|
||||
if [[ ! -f ${IPSEC_CONFDIR}/cert8.db && ! -f ${IPSEC_CONFDIR}/cert9.db ]] ; then
|
||||
ebegin "Setting up NSS database in ${IPSEC_CONFDIR} with empty password"
|
||||
+3
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd toolchain-funcs
|
||||
inherit systemd toolchain-funcs tmpfiles
|
||||
|
||||
DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
|
||||
HOMEPAGE="https://libreswan.org/"
|
||||
@@ -110,6 +110,8 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process libreswan.conf
|
||||
|
||||
local IPSEC_CONFDIR=${ROOT}/var/lib/ipsec/nss
|
||||
if [[ ! -f ${IPSEC_CONFDIR}/cert8.db && ! -f ${IPSEC_CONFDIR}/cert9.db ]] ; then
|
||||
ebegin "Setting up NSS database in ${IPSEC_CONFDIR} with empty password"
|
||||
+3
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd toolchain-funcs
|
||||
inherit systemd toolchain-funcs tmpfiles
|
||||
|
||||
DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
|
||||
HOMEPAGE="https://libreswan.org/"
|
||||
@@ -110,6 +110,8 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process libreswan.conf
|
||||
|
||||
local IPSEC_CONFDIR=${ROOT}/var/lib/ipsec/nss
|
||||
if [[ ! -f ${IPSEC_CONFDIR}/cert8.db && ! -f ${IPSEC_CONFDIR}/cert9.db ]] ; then
|
||||
ebegin "Setting up NSS database in ${IPSEC_CONFDIR} with empty password"
|
||||
+3
-1
@@ -3,7 +3,7 @@
|
||||
|
||||
EAPI=7
|
||||
|
||||
inherit systemd toolchain-funcs
|
||||
inherit systemd toolchain-funcs tmpfiles
|
||||
|
||||
DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
|
||||
HOMEPAGE="https://libreswan.org/"
|
||||
@@ -110,6 +110,8 @@ src_install() {
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
tmpfiles_process libreswan.conf
|
||||
|
||||
local IPSEC_CONFDIR=${ROOT}/var/lib/ipsec/nss
|
||||
if [[ ! -f ${IPSEC_CONFDIR}/cert8.db && ! -f ${IPSEC_CONFDIR}/cert9.db ]] ; then
|
||||
ebegin "Setting up NSS database in ${IPSEC_CONFDIR} with empty password"
|
||||
Reference in New Issue
Block a user