From 56f955aca6231693fe797de4793f77ed58ab116e Mon Sep 17 00:00:00 2001 From: Bruno Cichon Date: Mon, 1 Oct 2018 01:51:03 +0200 Subject: Add some base packages for ppc64le --- libre-testing/dhcpcd/PKGBUILD | 64 ++++++++++++++++++++++++++++++++++++ libre-testing/dhcpcd/dhcpcd.service | 13 ++++++++ libre-testing/dhcpcd/dhcpcd_.service | 15 +++++++++ 3 files changed, 92 insertions(+) create mode 100644 libre-testing/dhcpcd/PKGBUILD create mode 100644 libre-testing/dhcpcd/dhcpcd.service create mode 100644 libre-testing/dhcpcd/dhcpcd_.service (limited to 'libre-testing/dhcpcd') diff --git a/libre-testing/dhcpcd/PKGBUILD b/libre-testing/dhcpcd/PKGBUILD new file mode 100644 index 000000000..02c07cf84 --- /dev/null +++ b/libre-testing/dhcpcd/PKGBUILD @@ -0,0 +1,64 @@ +# Maintainer: Ronald van Haren +# Contributor: Tom Killian +# Contributor: Judd Vinet + +pkgname=dhcpcd +pkgver=7.0.8 +pkgrel=1 +pkgdesc="RFC2131 compliant DHCP client daemon" +url="http://roy.marples.name/projects/dhcpcd/" +arch=(x86_64 ppc64le) +license=('BSD') +groups=('base') +depends=('glibc' 'sh' 'udev' 'libsystemd') +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') +validpgpkeys=('A785ED2755955D9E93EA59F6597F97EA9AD45549') # Roy Marples (NetBSD) +sha256sums=('96968e883369ab4afd11eba9dfd9bb109f5dfff65b2814ce6c432f36362dc9b5' + '72dba5d6e7a99cf6d9a796f79ee395e2434af12d6d4e76573d428c6d0c2986ed' + '782ba5fc31518e6f499d119120efe5ea68ce29ebbb797306d5e17b2a545c2f9e') + +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@.service" + install -Dm644 "${srcdir}/dhcpcd.service" "${pkgdir}/usr/lib/systemd/system/dhcpcd.service" # FS#31543 +} diff --git a/libre-testing/dhcpcd/dhcpcd.service b/libre-testing/dhcpcd/dhcpcd.service new file mode 100644 index 000000000..e7dc2890a --- /dev/null +++ b/libre-testing/dhcpcd/dhcpcd.service @@ -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 diff --git a/libre-testing/dhcpcd/dhcpcd_.service b/libre-testing/dhcpcd/dhcpcd_.service new file mode 100644 index 000000000..e7bc5caf8 --- /dev/null +++ b/libre-testing/dhcpcd/dhcpcd_.service @@ -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 -- cgit v1.2.3