summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2023-01-13 13:06:22 -0500
committerMike Gilbert <floppym@gentoo.org>2023-01-13 13:06:22 -0500
commit36a57c18e98b08580cecec18f3c941c1e2fed283 (patch)
treeba96e5c904b95a09a7b08b9728846d4d74663641 /net-vpn
parentnet-vpn/vpnc: use upstream systemd unit (diff)
downloadgentoo-36a57c18e98b08580cecec18f3c941c1e2fed283.tar.gz
gentoo-36a57c18e98b08580cecec18f3c941c1e2fed283.tar.bz2
gentoo-36a57c18e98b08580cecec18f3c941c1e2fed283.zip
net-vpn/vpnc: sync live ebuild
Bug: https://bugs.gentoo.org/884093 Signed-off-by: Mike Gilbert <floppym@gentoo.org>
Diffstat (limited to 'net-vpn')
-rw-r--r--net-vpn/vpnc/vpnc-9999.ebuild16
1 files changed, 10 insertions, 6 deletions
diff --git a/net-vpn/vpnc/vpnc-9999.ebuild b/net-vpn/vpnc/vpnc-9999.ebuild
index d62312b59c91..5f4e12444a64 100644
--- a/net-vpn/vpnc/vpnc-9999.ebuild
+++ b/net-vpn/vpnc/vpnc-9999.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
@@ -16,7 +16,7 @@ else
SRC_URI="
https://api.github.com/repos/streambinder/vpnc/tarball/fdd0de7 -> ${P}.tar.gz
https://dev.gentoo.org/~soap/distfiles/${PN}-0.5.3-docs.tar.xz"
- KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+ KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
fi
LICENSE="GPL-3"
@@ -54,15 +54,19 @@ src_configure() {
}
src_install() {
- emake PREFIX="${EPREFIX}"/usr DOCDIR='$(PREFIX)'/share/doc/${PF} DESTDIR="${D}" install
+ local args=(
+ PREFIX="${EPREFIX}"/usr
+ DOCDIR='$(PREFIX)'/share/doc/${PF}
+ SYSTEMDDIR="$(systemd_get_systemunitdir)"
+ DESTDIR="${D}"
+ )
+
+ emake "${args[@]}" install
keepdir /etc/vpnc/scripts.d
newinitd "${FILESDIR}"/vpnc-3.init vpnc
newconfd "${FILESDIR}"/vpnc.confd vpnc
- dotmpfiles "${FILESDIR}"/vpnc-tmpfiles.conf
- systemd_newunit "${FILESDIR}"/vpnc.service vpnc@.service
-
# LICENSE file resides here, should not be installed
rm -r "${ED}"/usr/share/licenses || die
}