[arch-commits] Commit in dhcpcd/repos (7 files)

Giancarlo Razzolini grazzolini at archlinux.org
Mon Nov 23 12:26:53 UTC 2020


    Date: Monday, November 23, 2020 @ 12:26:52
  Author: grazzolini
Revision: 401756

archrelease: copy trunk to testing-x86_64

Added:
  dhcpcd/repos/testing-x86_64/
  dhcpcd/repos/testing-x86_64/PKGBUILD
    (from rev 401755, dhcpcd/trunk/PKGBUILD)
  dhcpcd/repos/testing-x86_64/dhcpcd.install
    (from rev 401755, dhcpcd/trunk/dhcpcd.install)
  dhcpcd/repos/testing-x86_64/dhcpcd.service
    (from rev 401755, dhcpcd/trunk/dhcpcd.service)
  dhcpcd/repos/testing-x86_64/dhcpcd.sysusers
    (from rev 401755, dhcpcd/trunk/dhcpcd.sysusers)
  dhcpcd/repos/testing-x86_64/dhcpcd.tmpfiles
    (from rev 401755, dhcpcd/trunk/dhcpcd.tmpfiles)
  dhcpcd/repos/testing-x86_64/dhcpcd_.service
    (from rev 401755, dhcpcd/trunk/dhcpcd_.service)

-----------------+
 PKGBUILD        |   77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 dhcpcd.install  |    7 ++++
 dhcpcd.service  |   13 +++++++++
 dhcpcd.sysusers |    1 
 dhcpcd.tmpfiles |    1 
 dhcpcd_.service |   15 ++++++++++
 6 files changed, 114 insertions(+)

Copied: dhcpcd/repos/testing-x86_64/PKGBUILD (from rev 401755, dhcpcd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2020-11-23 12:26:52 UTC (rev 401756)
@@ -0,0 +1,77 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Maintainer: Giancarlo Razzolini <grazzolini at archlinux.org>
+# Contributor: Tom Killian <tom.archlinux.org>
+# Contributor: Judd Vinet <jvinet.zeroflux.org>
+
+pkgname=dhcpcd
+pkgver=9.3.3
+pkgrel=1
+pkgdesc="RFC2131 compliant DHCP client daemon"
+url="https://roy.marples.name/projects/dhcpcd/"
+arch=('x86_64')
+license=('BSD')
+depends=('glibc' 'sh' 'udev' 'systemd-libs')
+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) <roy at NetBSD.org>
+sha256sums=('2d49f00b233832e12b6cb0b033be0c6fdff20e019dfae5bda2b87d7551e2c4c1'
+            'd40d51367fcf7e9596e42cd2bab59404633bedbab4d0a3183e7246b4677937b7'
+            '37acd53a589711f5e1db2fcaebb4ccf1c90dc4bcd309626bde25beb7b630a545'
+            '20bccbf8a05b1bc2be365c8b4b526c38c752f48229ba53c3be113ac5b634f210'
+            '06788ad9f5f7ccb5d2a2da6f0322ff5771f8de82cfbe8b9ad954f2c38265e21b'
+            '55d57b958f6b7e4d4a538ee88b0fcc1a522050c2d38efb5d680139f618234b35')
+# prepare () {
+#   cd ${pkgname}-${pkgver}
+# }
+
+build() {
+  cd ${pkgname}-${pkgver}
+
+  # configure variables
+  ./configure \
+      --prefix=/usr \
+      --sysconfdir=/etc \
+      --sbindir=/usr/bin \
+      --libexecdir=/usr/lib/dhcpcd \
+      --dbdir=/var/lib/dhcpcd \
+      --runstatedir=/run \
+      --privsepuser=dhcpcd
+
+  # Build
+  make
+}
+
+
+check() {
+  cd ${pkgname}-${pkgver}
+
+  make test
+}
+
+
+package() {
+  cd ${pkgname}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+
+  # Install License
+  install -Dm644 "${srcdir}/${pkgname}-${pkgver}/LICENSE" \
+	  "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+
+  # Set Options in /etc/dhcpcd.conf
+  echo noipv4ll >> "${pkgdir}/etc/dhcpcd.conf" # Disable ip4vall
+
+  # install systemd files
+  install -Dm644 "${srcdir}/dhcpcd_.service" "${pkgdir}/usr/lib/systemd/system/dhcpcd at .service"
+  install -Dm644 "${srcdir}/dhcpcd.service" "${pkgdir}/usr/lib/systemd/system/dhcpcd.service" # FS#31543
+  install -Dm644 "${srcdir}/dhcpcd.sysusers" "${pkgdir}/usr/lib/sysusers.d/dhcpcd.conf"
+  install -Dm644 "${srcdir}/dhcpcd.tmpfiles" "${pkgdir}/usr/lib/tmpfiles.d/dhcpcd.conf"
+}

Copied: dhcpcd/repos/testing-x86_64/dhcpcd.install (from rev 401755, dhcpcd/trunk/dhcpcd.install)
===================================================================
--- testing-x86_64/dhcpcd.install	                        (rev 0)
+++ testing-x86_64/dhcpcd.install	2020-11-23 12:26:52 UTC (rev 401756)
@@ -0,0 +1,7 @@
+pre_upgrade() {
+        if [ -d /var/lib/dhcpcd ]; then
+                # match permissions with upstream
+                chown root:root /var/lib/dhcpcd
+                chmod 0750 /var/lib/dhcpcd
+        fi
+}

Copied: dhcpcd/repos/testing-x86_64/dhcpcd.service (from rev 401755, dhcpcd/trunk/dhcpcd.service)
===================================================================
--- testing-x86_64/dhcpcd.service	                        (rev 0)
+++ testing-x86_64/dhcpcd.service	2020-11-23 12:26:52 UTC (rev 401756)
@@ -0,0 +1,13 @@
+[Unit]
+Description=dhcpcd on all interfaces
+Wants=network.target
+Before=network.target
+
+[Service]
+Type=forking
+PIDFile=/run/dhcpcd/pid
+ExecStart=/usr/bin/dhcpcd -q -b
+ExecStop=/usr/bin/dhcpcd -x
+
+[Install]
+WantedBy=multi-user.target

Copied: dhcpcd/repos/testing-x86_64/dhcpcd.sysusers (from rev 401755, dhcpcd/trunk/dhcpcd.sysusers)
===================================================================
--- testing-x86_64/dhcpcd.sysusers	                        (rev 0)
+++ testing-x86_64/dhcpcd.sysusers	2020-11-23 12:26:52 UTC (rev 401756)
@@ -0,0 +1 @@
+u dhcpcd - "dhcpcd privilege separation" -

Copied: dhcpcd/repos/testing-x86_64/dhcpcd.tmpfiles (from rev 401755, dhcpcd/trunk/dhcpcd.tmpfiles)
===================================================================
--- testing-x86_64/dhcpcd.tmpfiles	                        (rev 0)
+++ testing-x86_64/dhcpcd.tmpfiles	2020-11-23 12:26:52 UTC (rev 401756)
@@ -0,0 +1 @@
+d /run/dhcpcd 0755 root root -

Copied: dhcpcd/repos/testing-x86_64/dhcpcd_.service (from rev 401755, dhcpcd/trunk/dhcpcd_.service)
===================================================================
--- testing-x86_64/dhcpcd_.service	                        (rev 0)
+++ testing-x86_64/dhcpcd_.service	2020-11-23 12:26:52 UTC (rev 401756)
@@ -0,0 +1,15 @@
+[Unit]
+Description=dhcpcd on %I
+Wants=network.target
+Before=network.target
+BindsTo=sys-subsystem-net-devices-%i.device
+After=sys-subsystem-net-devices-%i.device
+
+[Service]
+Type=forking
+PIDFile=/run/dhcpcd/%I.pid
+ExecStart=/usr/bin/dhcpcd -q -w %I
+ExecStop=/usr/bin/dhcpcd -x %I
+
+[Install]
+WantedBy=multi-user.target



More information about the arch-commits mailing list