mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Add dhcpcd package
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
56e13307e5
commit
d458890335
3 changed files with 37 additions and 0 deletions
|
@ -7,3 +7,4 @@ iana-etc
|
|||
btrfs-progs
|
||||
dosfstools
|
||||
nftables
|
||||
dhcpcd
|
||||
|
|
|
@ -9,3 +9,4 @@ dosfstools
|
|||
nftables
|
||||
kbd
|
||||
firmware-rpi3
|
||||
dhcpcd
|
||||
|
|
35
pkg/dhcpcd/build
Executable file
35
pkg/dhcpcd/build
Executable file
|
@ -0,0 +1,35 @@
|
|||
VERSION="7.0.1"
|
||||
SRCDIR="dhcpcd-${VERSION}"
|
||||
TARBALL="${SRCDIR}.tar.xz"
|
||||
URL="https://roy.marples.name/downloads/dhcpcd"
|
||||
SHA256SUM="8b36537fbcc00771b9a6c9ccd71b5011df27b3f892e926b199a195fad2f3f3c8"
|
||||
DEPENDS="toolchain"
|
||||
|
||||
prepare() {
|
||||
return
|
||||
}
|
||||
|
||||
build() {
|
||||
local SOURCE="$1"
|
||||
local DEPLOY="$2"
|
||||
|
||||
cp -r $SOURCE/* $PKGBUILDDIR
|
||||
|
||||
./configure --prefix="" --host="$TARGET" --sbindir=/bin \
|
||||
--datadir=/share --disable-static
|
||||
|
||||
make -j $NUMJOBS
|
||||
}
|
||||
|
||||
deploy() {
|
||||
local SOURCE="$1"
|
||||
local DEPLOY="$2"
|
||||
|
||||
make DESTDIR="$DEPLOY" install
|
||||
|
||||
chmod 755 $DEPLOY/bin/*
|
||||
strip_files $DEPLOY/bin/*
|
||||
cat_file_override "dhcpcd.conf" > "$DEPLOY/etc/dhcpcd.conf"
|
||||
|
||||
rm -rf "$DEPLOY/usr"
|
||||
}
|
Loading…
Reference in a new issue