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

Antonio Rojas arojas at archlinux.org
Thu Nov 7 19:51:13 UTC 2019


    Date: Thursday, November 7, 2019 @ 19:51:11
  Author: arojas
Revision: 367141

archrelease: copy trunk to testing-x86_64

Added:
  dhcpcd/repos/testing-x86_64/
  dhcpcd/repos/testing-x86_64/PKGBUILD
    (from rev 367140, dhcpcd/trunk/PKGBUILD)
  dhcpcd/repos/testing-x86_64/dhcpcd.service
    (from rev 367140, dhcpcd/trunk/dhcpcd.service)
  dhcpcd/repos/testing-x86_64/dhcpcd_.service
    (from rev 367140, dhcpcd/trunk/dhcpcd_.service)

-----------------+
 PKGBUILD        |   77 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 dhcpcd.service  |   13 +++++++++
 dhcpcd_.service |   15 ++++++++++
 3 files changed, 105 insertions(+)

Copied: dhcpcd/repos/testing-x86_64/PKGBUILD (from rev 367140, dhcpcd/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2019-11-07 19:51:11 UTC (rev 367141)
@@ -0,0 +1,77 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: Tom Killian <tom.archlinux.org>
+# Contributor: Judd Vinet <jvinet.zeroflux.org>
+
+pkgname=dhcpcd
+pkgver=8.1.1
+pkgrel=2
+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')
+options=('emptydirs')  # We Need the Empty /var/lib/dhcpcd Directory
+source=("https://roy.marples.name/downloads/$pkgname/$pkgname-$pkgver.tar.xz"
+        'dhcpcd_.service'
+        'dhcpcd.service'
+         fix-ipv4-corruption.patch::https://roy.marples.name/cgit/dhcpcd.git/patch/?id=73ac1843
+         validate-ipv6.patch::https://roy.marples.name/cgit/dhcpcd.git/patch/?id=b2b6541f
+         validate-ipv4.patch::https://roy.marples.name/cgit/dhcpcd.git/patch/?id=69e2b6c4)
+validpgpkeys=('A785ED2755955D9E93EA59F6597F97EA9AD45549')  # Roy Marples (NetBSD) <roy at NetBSD.org>
+sha256sums=('485d308fe10febd36b6f936e4260e4ab34a146e4f00a9f7a5509c4377ad5ea82'
+            '72dba5d6e7a99cf6d9a796f79ee395e2434af12d6d4e76573d428c6d0c2986ed'
+            '782ba5fc31518e6f499d119120efe5ea68ce29ebbb797306d5e17b2a545c2f9e'
+            'b0b09efc99ffa952f859f6b86e04c05da8726f55415cf975d8fc13aa1895a4ce'
+            '758ec179a4e20958a37dd7d2bd6184b9526cbd45b443bb5ca8531b30356a10ec'
+            '8b4258b1dd82ac9399c5c5fc7519a8b90421a68eb8aa5ca3034e0e7d938ad734')
+
+prepare() {
+  cd $pkgname-$pkgver
+  # Backport fixes FS#64398 FS#64413
+  patch -p1 -i ../fix-ipv4-corruption.patch
+  patch -p1 -i ../validate-ipv6.patch
+  patch -p1 -i ../validate-ipv4.patch
+}
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  # configure variables
+  ./configure \
+      --prefix=/usr \
+      --sysconfdir=/etc \
+      --sbindir=/usr/bin \
+      --libexecdir=/usr/lib/dhcpcd \
+      --dbdir=/var/lib/dhcpcd \
+      --rundir=/run
+
+  # Build
+  make
+}
+
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+
+  make test
+}
+
+
+package() {
+  cd "${srcdir}/${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
+}

Copied: dhcpcd/repos/testing-x86_64/dhcpcd.service (from rev 367140, dhcpcd/trunk/dhcpcd.service)
===================================================================
--- testing-x86_64/dhcpcd.service	                        (rev 0)
+++ testing-x86_64/dhcpcd.service	2019-11-07 19:51:11 UTC (rev 367141)
@@ -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_.service (from rev 367140, dhcpcd/trunk/dhcpcd_.service)
===================================================================
--- testing-x86_64/dhcpcd_.service	                        (rev 0)
+++ testing-x86_64/dhcpcd_.service	2019-11-07 19:51:11 UTC (rev 367141)
@@ -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