🔒 Repository is read-only – file editing is disabled.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
pkgname: dhcpcd
pkgver: '10.5.0'
pkgrel: '1'
pkgdesc: Connect your computer to a network which uses DHCP to assign network addresses.
url: 'https://github.com/NetworkConfiguration/dhcpcd'
arch: x86_64
license:
- BSD-2-Clause
depends: []
makedepends:
- shadow
- git
source:
- 'https://repo.paganlinux.eu/sources/pagan-scripts-20260822.tar.gz'
- 'https://github.com/NetworkConfiguration/dhcpcd.git'
sha256sums:
- 32e0aec88cc56a8afe0b2671debe47d19357792a6ffaffaf6e3db8a021a57072
- SKIP
hooks:
post-install: "name=dhcpcd\nversion=10.5.0\nrelease=1\nINFO=\"\\033[1;36m\"\nNORMAL=\"\\033[0;39m\"\nUN=dhcpcd\nID=52\n\n\
chmod 1777 var/tmp\nchmod 700 var/lib/$UN\n\nif ! (getent group $UN > /dev/null); then\n\tprintf \"${INFO}Creating $UN\
\ group${NORMAL}\\n\"\n\tgroupadd -g $ID $UN\nfi\nif ! (getent passwd $UN > /dev/null); then\n\tprintf \"${INFO}Creating\
\ $UN user${NORMAL}\\n\"\n\tuseradd -c \"dhcpcd PrivSep\" -d /var/lib/$UN \\\n\t-g $UN -s /usr/bin/false -u $ID $UN\n\
fi\nchown $UN:$UN var/lib/dhcpcd\n"
build: |
getent group ${pkgname} >/dev/null || groupadd -g 52 ${pkgname}
getent passwd ${pkgname} >/dev/null || useradd -c 'dhcpcd PrivSep' -d /var/lib/${pkgname} \
-g ${pkgname} -s /usr/bin/false -u 52 ${pkgname}
install -v m700 -d ${PKGDIR}/var/lib/${pkgname}
cd dhcpcd
sed -i "s@mkdir@/bin/mkdir@" hooks/*
./configure --prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--libexecdir=/usr/lib/${pkgname} \
--dbdir=/var/lib/${pkgname} \
--runstatedir=/run \
--privsepuser=dhcpcd
make
make DESTDIR=${PKGDIR} install
cd ../pagan-scripts-20260822
make DESTDIR=${PKGDIR} install-sysd-dhcpcd
install -Dm644 ../dhcpcd/LICENSE ${PKGDIR}/usr/share/licenses/${pkgname}/LICENSE
package: |
true