net-misc/openvpn-update-resolv-conf - 9999 (nest)

Search

Package Information

Description:
Updates DNS settings are pushed by the OpenVPN server
Homepage:
https://github.com/alfredopalhares/openvpn-update-resolv-conf
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit git-r3 readme.gentoo-r1 tmpfiles

DESCRIPTION="Updates DNS settings are pushed by the OpenVPN server"
HOMEPAGE="https://github.com/alfredopalhares/openvpn-update-resolv-conf"
EGIT_REPO_URI="https://github.com/alfredopalhares/${PN}.git"

LICENSE="GPL-2"
SLOT="0"

RDEPEND="net-dns/openresolv
	net-vpn/openvpn"

DOC_CONTENTS="Add the following lines to your client configuration:\\n
script-security 2\\n
up /usr/bin/update-resolv-conf\\n
down /usr/bin/update-resolv-conf\\n
down-pre\\n
Adjust ACLs for openvpn user:\\n
setfacl -Rm u:openvpn:rwx /run/resolvconf\\n
setfacl -m u:openvpn:rw /etc/resolv.conf\\n\\n"

src_install() {
	default

	newbin update-resolv-conf.sh update-resolv-conf
	newbin update-systemd-network.sh update-systemd-network
	newbin update-systemd-resolve.sh update-systemd-resolve
	newtmpfiles "${FILESDIR}"/openvpn-update-resolv-conf.tmpfile openvpn-update-resolv-conf.conf

	readme.gentoo_create_doc
}

pkg_postinst() {
	tmpfiles_process openvpn-update-resolv-conf.conf
	readme.gentoo_print_elog
}

Dependencies

RDEPEND

net-dns/openresolv
	net-vpn/openvpn