Package Details: openvpn-update-resolv-conf-git r46.2485e9d-1

Git Clone URL: https://aur.archlinux.org/openvpn-update-resolv-conf-git.git (read-only, click to copy)
Package Base: openvpn-update-resolv-conf-git
Description: OpenVPN Update resolvconf
Upstream URL: https://github.com/alfredopalhares/openvpn-update-resolv-conf
Licenses: GPL
Conflicts: openvpn-update-resolv-conf
Provides: openvpn-update-resolv-conf
Submitter: mtreinish
Maintainer: buzo
Last Packager: buzo
Votes: 54
Popularity: 0.138002
First Submitted: 2016-04-15 23:43 (UTC)
Last Updated: 2022-05-17 19:17 (UTC)

Pinned Comments

warmwaffles commented on 2017-11-15 15:07 (UTC)

I highly recommend you guys look at the README in the github repo which states: > However if you have systemd 229 or newer the better option is to use script from https://github.com/jonathanio/update-systemd-resolved which uses DBus calls instead of creating temporary *.network files. Which can be found here https://aur.archlinux.org/packages/openvpn-update-systemd-resolved/ Systemd is at 233 right now for me, so it is a much better option to use it instead.

Latest Comments

just1602 commented on 2022-05-20 14:36 (UTC) (edited on 2022-05-20 14:52 (UTC) by just1602)

buzo : the point is that since you use git:// protocol I get the following error when I run paru : error: timed out looking for devel update: git://github.com/masterkorp/openvpn-update-resolv-conf

When I try to clone manually the repo using the following url https://github.com/alfredopalhares/openvpn-update-resolv-conf it works instantly.

EDIT: it works when I manually run makepkg, I'll try to see where it bugs with paru. Sorry for the useless works. :(

buzo commented on 2022-05-17 19:23 (UTC)

just1602: I don't see the point, since the URL already contains https://. I've just appended .git to the source URL, but there is no big difference. See here and here for details.

just1602 commented on 2022-05-17 18:47 (UTC)

Hello !

Github does not support the git:// protocol anymore since it is not encrypted. You need to use the https:// protocol instead.

So in the PKGBUILD, the source url must be change from git+$url to $url.

buzo commented on 2022-03-19 20:28 (UTC)

Fixed – sorry for the delay.

svalo commented on 2022-01-11 08:25 (UTC) (edited on 2022-01-11 08:25 (UTC) by svalo)

It seems that the upstream url changed to https://github.com/alfredopalhares/openvpn-update-resolv-conf, would you consider applying the following patch?

diff --git a/PKGBUILD b/PKGBUILD
index 07580c4..aba56b0 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,8 +3,8 @@

 _pkgname=openvpn-update-resolv-conf
 pkgname="$_pkgname"-git
-pkgver=r42.43093c2
-pkgrel=2
+pkgver=r44.0288491
+pkgrel=1
 pkgdesc="OpenVPN Update resolvconf"
 arch=('any')
 url="https://github.com/masterkorp/$_pkgname"
@@ -13,7 +13,7 @@ provides=("$_pkgname")
 conflicts=("$_pkgname")
 makedepends=('git')
 depends=('openvpn' 'openresolv')
-source=("git://github.com/masterkorp/$_pkgname")
+source=("git+https://github.com/alfredopalhares//$_pkgname.git")
 sha256sums=('SKIP')

 pkgver() {

buzo commented on 2018-09-17 15:19 (UTC)

Thanks, sebstar – fixed.

sebstar commented on 2018-09-17 14:46 (UTC)

shouldn't the mode of the script file be 755? it currently is installed with 655, which is inconsistent. either 755 or 644 (makes less sense, since this is an executable script). thanks!

ekkelett commented on 2017-11-17 10:30 (UTC)

@archerie what'd you have in mind? @warmwaffles that does require that you use systemd-resolved -- I haven't looked into how well it works with a netctl-based or dhcpcd-based workflow however.

warmwaffles commented on 2017-11-15 15:07 (UTC)

I highly recommend you guys look at the README in the github repo which states: > However if you have systemd 229 or newer the better option is to use script from https://github.com/jonathanio/update-systemd-resolved which uses DBus calls instead of creating temporary *.network files. Which can be found here https://aur.archlinux.org/packages/openvpn-update-systemd-resolved/ Systemd is at 233 right now for me, so it is a much better option to use it instead.

noraj commented on 2017-06-20 21:06 (UTC)

@sebstar I send the patch via mail to the maintainer. @mtreinish you may add me as co-maintainer

noraj commented on 2017-06-20 20:24 (UTC)

hi mtreinish, can you name co-maintainer ?

sebstar commented on 2017-03-21 16:36 (UTC) (edited on 2017-03-21 17:13 (UTC) by sebstar)

Please install script into /etc/openvpn/client/ and fix '-m755' to set the correct mode.

sebstar commented on 2017-03-21 16:33 (UTC) (edited on 2017-03-21 16:36 (UTC) by sebstar)

Please install script into /etc/openvpn/client/ and fix '-m755' to set the correct mode.

giovannicandido commented on 2017-03-19 22:22 (UTC)

solution for '-x command not found' Edit /etc/openvpn/update-resolv-conf change RESOLVCONF=$(which resolvconf) to RESOLVCONF=/usr/bin/resolvconf

cb474 commented on 2017-03-06 02:30 (UTC) (edited on 2017-03-06 02:31 (UTC) by cb474)

/etc/openvpn/update-resolv-conf: line 56: -x: command not found /etc/openvpn/update-resolv-conf: line 56: echo: write error: Broken pipe

lothar_m commented on 2017-01-08 15:51 (UTC)

I confirm archerie findings. As is, this PKGBUILD requires manual chmod.

archerie commented on 2016-09-17 19:48 (UTC)

This packages creates /etc/openvpn/update-resolv-conf but on my system that file has permissions created as 0655. It should be 0755 so that openvpn doesn't fail with this error: Options error: --up script fails with '/etc/openvpn/update-resolv-conf': Permission denied

Skullcrasher commented on 2016-04-26 07:33 (UTC) (edited on 2016-04-26 07:34 (UTC) by Skullcrasher)

After updating the script did not update resolv.conf anymore. A possible fix is described here https://github.com/masterkorp/openvpn-update-resolv-conf/issues/15

mtreinish commented on 2016-04-21 17:04 (UTC)

@flamusdiu I've updated the PKGBUILD for both packages now to properly mark the conflict and the provides relationship between them.

flamusdiu commented on 2016-04-21 16:49 (UTC)

@mtereinish: You need to add 'provides' and 'conflicts' for both this and openvpn-update-resolv-conf-git packages. It would allow people to use either package to satisfy the requirement.

mtreinish commented on 2016-04-15 23:48 (UTC)

Sorry for the delay, I was on vacation followed by some work travel and didn't get a chance to update it prior today. I've switched this package to be a fixed version per the pacaur bug and created a separate vcs package openvpn-update-resolv-conf-git which pulls it from git. I'll try to be more prompt on updating this package when someone marks it out-of-date. @Mertcan that's an issue with the script being packaged here. I suggest you file a bug or a pull request to the upstream git repo: https://github.com/masterkorp/openvpn-update-resolv-conf we can update this package once a fix has been applied.

Mertcan commented on 2016-04-11 19:05 (UTC) (edited on 2016-04-11 19:06 (UTC) by Mertcan)

###which: no resolvconf in ((null))### ################################ RESOLVCONF=$(which resolvconf) Change RESOLVCONF=$(type -p resolvconf) or find and replace resolvconf location

jugs commented on 2016-04-03 19:44 (UTC)

I've emailed the package maintainer, hopefully he replies otherwise we might have to wait for package orphan to take it over and get it working again...

archerie commented on 2016-02-19 09:34 (UTC) (edited on 2016-03-03 11:06 (UTC) by archerie)

This package can no longer be installed using pacaur AUR helper. Could the maintainer please see this comment from the pacaur creator https://github.com/rmarquis/pacaur/issues/426#issuecomment-185283930 about a solution to fix it? The package should be renamed to a '-git' package according to https://wiki.archlinux.org/index.php/VCS_package_guidelines.

Ptolom commented on 2016-01-28 22:03 (UTC)

The resolvconf issue is fixed now.

mtreinish commented on 2016-01-21 22:27 (UTC)

@weirddan455 That's a good call I'll push out a new revision of this to include it @Ptolom that sounds like a good suggestion but since this package just clones the script from github you should propose the change there. Feel free to push a pull request to: https://github.com/masterkorp/openvpn-update-resolv-conf After it's merged when you rebuild this package it will be applied @jpala hmm, I've never used pacaur before I'm gonna respin this with the missing makedepends, if it's still an issue with pacaur after that let me know and I'll investigate more deeply.

Ptolom commented on 2016-01-16 16:03 (UTC)

There is a bug in this script which causes DNS leaks. "resolvconf -a "${dev}.inet" retains the old nameservers in resolv.conf, leading to dns leaks. I suggest adding the -x flag (for exclusive) to resolvconf to only use the nameservers supplied by openvpn

weirddan455 commented on 2016-01-15 08:18 (UTC)

git should probably be added as a makedepend.

jpala commented on 2016-01-01 10:43 (UTC)

I had issues trying to install this package with pacaur. $ pacaur -Sy openvpn-update-resolv-conf This runs without error but the 'update-resolv-conf' script is not copied into /etc/openvpn and I can't see it anyware using find / -name update-resolv-conf. However, everything worked as expected when I simply downloaded the PKGBUILD and then built it with makepkg. $ makepkg $ makepkg -i Seeing as the PKGBUILD works fine with makepkg, I assume there is some error in the way pacaur is handling it but I'm not sure what it is.