[arch-commits] Commit in dhcpcd/trunk (4 files)

2020-10-23 Thread Giancarlo Razzolini via arch-commits
Date: Friday, October 23, 2020 @ 11:56:15
  Author: grazzolini
Revision: 398751

upgpkg: dhcpcd 9.3.1-1

Fix for FS#67844 implemented by using the dhcpcd.install file.
This should be removed on an upcoming release.

Added:
  dhcpcd/trunk/dhcpcd.install
Modified:
  dhcpcd/trunk/PKGBUILD
  dhcpcd/trunk/dhcpcd.sysusers
  dhcpcd/trunk/dhcpcd.tmpfiles

-+
 PKGBUILD|   11 +++
 dhcpcd.install  |7 +++
 dhcpcd.sysusers |2 +-
 dhcpcd.tmpfiles |3 +--
 4 files changed, 16 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===
--- PKGBUILD2020-10-23 08:32:29 UTC (rev 398750)
+++ PKGBUILD2020-10-23 11:56:15 UTC (rev 398751)
@@ -4,7 +4,7 @@
 # Contributor: Judd Vinet 
 
 pkgname=dhcpcd
-pkgver=9.2.0
+pkgver=9.3.1
 pkgrel=1
 pkgdesc="RFC2131 compliant DHCP client daemon"
 url="https://roy.marples.name/projects/dhcpcd/;
@@ -14,18 +14,21 @@
 optdepends=('openresolv: resolvconf support')
 provides=('dhcp-client')
 backup=('etc/dhcpcd.conf')
+install='dhcpcd.install'
 options=('emptydirs')  # We Need the Empty /var/lib/dhcpcd Directory
 source=("https://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.xz;
+dhcpcd.install
 dhcpcd_.service
 dhcpcd.service
 dhcpcd.sysusers
 dhcpcd.tmpfiles)
 validpgpkeys=('A785ED2755955D9E93EA59F6597F97EA9AD45549')  # Roy Marples 
(NetBSD) 
-sha256sums=('fcb2d19672d445bbfd38678fdee4f556ef967a3ea6bd81092d10545df2cb9666'
+sha256sums=('a0843233fdaecee971c38ceda53ad1450bb7b83aefbf1fa9642213224a9c415e'
+'8ff069a78f0b7e323fced311d653bc1d5dfb68dfc17f996c45cb4a7ee692ca69'
 '37acd53a589711f5e1db2fcaebb4ccf1c90dc4bcd309626bde25beb7b630a545'
 '20bccbf8a05b1bc2be365c8b4b526c38c752f48229ba53c3be113ac5b634f210'
-'df33c69a79fb30895217db8fe6a46ad0658a70b32a280bc91fc04a09b584fa62'
-'e0cef3b7cbe047393e4ecb60369f67d2d73e616b56cea9401070f2aff28a7434')
+'06788ad9f5f7ccb5d2a2da6f0322ff5771f8de82cfbe8b9ad954f2c38265e21b'
+'55d57b958f6b7e4d4a538ee88b0fcc1a522050c2d38efb5d680139f618234b35')
 # prepare () {
 #   cd ${pkgname}-${pkgver}
 # }

Added: dhcpcd.install
===
--- dhcpcd.install  (rev 0)
+++ dhcpcd.install  2020-10-23 11:56:15 UTC (rev 398751)
@@ -0,0 +1,7 @@
+pre_upgrade() {
+if [ "$1" = "9.3.1-1" -a "$2" = "9.2.0-1" ]; then
+# match permissions with upstream
+chown root:root /var/lib/dhcpcd
+chmod 0750 /var/lib/dhcpcd
+fi
+}

Modified: dhcpcd.sysusers
===
--- dhcpcd.sysusers 2020-10-23 08:32:29 UTC (rev 398750)
+++ dhcpcd.sysusers 2020-10-23 11:56:15 UTC (rev 398751)
@@ -1 +1 @@
-u dhcpcd - "dhcpcd privilege separation" /var/lib/dhcpcd
+u dhcpcd - "dhcpcd privilege separation" -

Modified: dhcpcd.tmpfiles
===
--- dhcpcd.tmpfiles 2020-10-23 08:32:29 UTC (rev 398750)
+++ dhcpcd.tmpfiles 2020-10-23 11:56:15 UTC (rev 398751)
@@ -1,2 +1 @@
-d /var/lib/dhcpcd 0700 dhcpcd dhcpcd -
-d /run/dhcpcd 0755 dhcpcd dhcpcd -
+d /run/dhcpcd 0755 root root -


[arch-commits] Commit in dhcpcd/trunk (4 files)

2013-06-25 Thread Dave Reisner
Date: Tuesday, June 25, 2013 @ 15:46:43
  Author: dreisner
Revision: 188916

upgpkg: dhcpcd 6.0.2-1

- drop unneeded patches and hacks

Modified:
  dhcpcd/trunk/PKGBUILD
Deleted:
  dhcpcd/trunk/0001-Set-hostname-via-proc-if-file-is-available.patch
  dhcpcd/trunk/0001-set-MTU-via-sysfs-if-file-is-available.patch
  dhcpcd/trunk/remove_ifconfig.patch

---+
 0001-Set-hostname-via-proc-if-file-is-available.patch |   33 
 0001-set-MTU-via-sysfs-if-file-is-available.patch |   61 
 PKGBUILD  |   23 ++
 remove_ifconfig.patch |   20 -
 4 files changed, 11 insertions(+), 126 deletions(-)

Deleted: 0001-Set-hostname-via-proc-if-file-is-available.patch
===
--- 0001-Set-hostname-via-proc-if-file-is-available.patch   2013-06-25 
11:50:23 UTC (rev 188915)
+++ 0001-Set-hostname-via-proc-if-file-is-available.patch   2013-06-25 
13:46:43 UTC (rev 188916)
@@ -1,33 +0,0 @@
-From d345b36b483fec8fb2def5f3acdc2d3c5faa94eb Mon Sep 17 00:00:00 2001
-From: Dan McGee d...@archlinux.org
-Date: Sun, 19 Jun 2011 16:04:25 -0500
-Subject: [PATCH] Set hostname via /proc if file is available
-
-On Linux, the hostname can be set via this file if available, precluding
-the need for a `hostname` binary.
-
-Signed-off-by: Dan McGee d...@archlinux.org

- dhcpcd-hooks/30-hostname |6 +-
- 1 files changed, 5 insertions(+), 1 deletions(-)
-
-diff --git a/dhcpcd-hooks/30-hostname b/dhcpcd-hooks/30-hostname
-index 65d1a13..af94262 100644
 a/dhcpcd-hooks/30-hostname
-+++ b/dhcpcd-hooks/30-hostname
-@@ -21,7 +21,11 @@ need_hostname()
- try_hostname()
- {
-   if valid_domainname $1; then
--  hostname $1
-+  if [ -w /proc/sys/kernel/hostname ]; then
-+  echo $1  /proc/sys/kernel/hostname
-+  else
-+  hostname $1
-+  fi
-   else
-   syslog err Invalid hostname: $1
-   fi
--- 
-1.7.5.4
-

Deleted: 0001-set-MTU-via-sysfs-if-file-is-available.patch
===
--- 0001-set-MTU-via-sysfs-if-file-is-available.patch   2013-06-25 11:50:23 UTC 
(rev 188915)
+++ 0001-set-MTU-via-sysfs-if-file-is-available.patch   2013-06-25 13:46:43 UTC 
(rev 188916)
@@ -1,61 +0,0 @@
-From 950c00d1b183796034d227ef47a90eb248d79b72 Mon Sep 17 00:00:00 2001
-From: Dave Reisner d...@falconindy.com
-Date: Tue, 21 Jun 2011 09:32:47 -0400
-Subject: [PATCH] set MTU via sysfs if file is available
-
-On Linux, a network interface's MTU can be set by writing to
-/sys/class/net/$interface/mtu, which removes the dependency on ifconfig.
-
-Signed-off-by: Dave Reisner d...@falconindy.com

- dhcpcd-hooks/10-mtu |4 ++--
- dhcpcd-run-hooks.in |   11 +++
- 2 files changed, 13 insertions(+), 2 deletions(-)
-
-diff --git a/dhcpcd-hooks/10-mtu b/dhcpcd-hooks/10-mtu
-index 639697c..8763930 100644
 a/dhcpcd-hooks/10-mtu
-+++ b/dhcpcd-hooks/10-mtu
-@@ -7,7 +7,7 @@ if [ $reason = PREINIT -a -e $mtu_dir/$interface ]; then
- elif [ -n $new_interface_mtu ]  $if_up; then
-   # The smalled MTU dhcpcd can work with is 576
-   if [ $new_interface_mtu -ge 576 ]; then
--  if ifconfig $interface mtu $new_interface_mtu; then
-+  if set_mtu $interface $new_interface_mtu; then
-   syslog info $interface: MTU set to $new_interface_mtu
-   # Save the MTU so we can restore it later
-   if [ ! -e $mtu_dir/$interface ]; then
-@@ -21,7 +21,7 @@ elif [ -e $mtu_dir/$interface ]; then
-   # No MTU in this state, so restore the prior MTU
-   mtu=$(cat $mtu_dir/$interface)
-   syslog info $interface: MTU restored to $mtu
--  ifconfig $interface mtu $mtu
-+  set_mtu $interface $mtu
-   rm $mtu_dir/$interface
-   fi
- fi
-diff --git a/dhcpcd-run-hooks.in b/dhcpcd-run-hooks.in
-index 0e60338..843f3ca 100644
 a/dhcpcd-run-hooks.in
-+++ b/dhcpcd-run-hooks.in
-@@ -215,6 +215,17 @@ service_condcommand()
-   service_exists $1  service_status $1  service_cmd $1 $2
- }
- 
-+# Set MTU for an interface
-+set_mtu() {
-+  local interface=$1 mtu=$2
-+
-+  if [ -e /sys/class/net/$interface/mtu ]; then
-+  echo $mtu  /sys/class/net/$interface/mtu
-+  else
-+  ifconfig $interface mtu $mtu
-+  fi
-+}
-+
- # We source each script into this one so that scripts run earlier can
- # remove variables from the environment so later scripts don't see them.
- # Thus, the user can create their dhcpcd.enter/exit-hook script to configure
--- 
-1.7.5.4
-

Modified: PKGBUILD
===
--- PKGBUILD2013-06-25 11:50:23 UTC (rev 188915)
+++ PKGBUILD