diff options
Diffstat (limited to 'core/dhcpcd/MAKEPKG')
| -rw-r--r-- | core/dhcpcd/MAKEPKG | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/core/dhcpcd/MAKEPKG b/core/dhcpcd/MAKEPKG new file mode 100644 index 0000000..9edba6d --- /dev/null +++ b/core/dhcpcd/MAKEPKG @@ -0,0 +1,66 @@ +#!/bin/mkpkg +# description: An RFC2131-compliant DHCP client daemon +# url: https://roy.marples.name/projects/dhcpcd/ + +name=dhcpcd +version=10.5.2 +release=3 +depends=(udevd libseccomp) +groups=(dhcpcd:user:dhcpcd:/var/lib/dhcpcd:700:900:900) +services=(dhcpcd) +source=(https://github.com/NetworkConfiguration/dhcpcd/releases/download/v$version/$name-$version.tar.xz) +sha256sums=( + "3e476657fdb6eeb38b277da3a48d0ac0113ecce5858ebdcddff2b629faed52b4" +) + +build() { + cd $name-$version + ./configure \ + --prefix=/ \ + --sbindir=/bin \ + --mandir=/usr/share/man \ + --libexecdir=/lib/dhcpcd \ + --dbdir=/var/lib/dhcpcd \ + --sysconfdir=/etc \ + --rundir=/run/dhcpcd \ + --privsepuser=dhcpcd + make + make DESTDIR=$PKG install + + # Remove optional hooks + rm -rf $PKG/share +} + +post_build() { + # runit service + install -d $PKG/etc/sv/dhcpcd/log + + printf '%s\n' \ + '#!/bin/sh' \ + 'exec 2>&1' \ + '[ -r conf ] && . ./conf' \ + 'exec dhcpcd -B ${OPTS:=-M} 1>&2' \ + > $PKG/etc/sv/dhcpcd/run + + printf '%s\n' \ + '#!/bin/sh' \ + 'mkdir -p /var/log/dhcpcd' \ + 'exec svlogd -tt /var/log/dhcpcd' \ + > $PKG/etc/sv/dhcpcd/log/run + + chmod 755 $PKG/etc/sv/dhcpcd/run + chmod 755 $PKG/etc/sv/dhcpcd/log/run + + printf '%s\n' \ + '#!/bin/sh' \ + 'rm -rf /run/dhcpcd' \ + > $PKG/etc/sv/dhcpcd/finish + chmod 755 $PKG/etc/sv/dhcpcd/finish +} + +signify() { + untrusted comment: public key + RWTZ9IduCSQ/mL8337TEUinPwT92xFEUpD92hkS7IxcOnzTt9QdpohT3 +} + +# vim: filetype=sh |
