2018-08-24 21:57:32 +02:00
|
|
|
VERSION="7.0.8"
|
2018-02-25 00:47:14 +01:00
|
|
|
SRCDIR="dhcpcd-${VERSION}"
|
|
|
|
TARBALL="${SRCDIR}.tar.xz"
|
|
|
|
URL="https://roy.marples.name/downloads/dhcpcd"
|
2018-08-24 21:57:32 +02:00
|
|
|
SHA256SUM="96968e883369ab4afd11eba9dfd9bb109f5dfff65b2814ce6c432f36362dc9b5"
|
2018-02-25 00:47:14 +01:00
|
|
|
DEPENDS="toolchain"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
return
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
local SOURCE="$1"
|
|
|
|
local DEPLOY="$2"
|
|
|
|
|
|
|
|
cp -r $SOURCE/* $PKGBUILDDIR
|
|
|
|
|
2018-09-02 14:19:23 +02:00
|
|
|
run_configure "."
|
2018-02-25 00:47:14 +01:00
|
|
|
make -j $NUMJOBS
|
|
|
|
}
|
|
|
|
|
|
|
|
deploy() {
|
|
|
|
local SOURCE="$1"
|
|
|
|
local DEPLOY="$2"
|
|
|
|
|
|
|
|
make DESTDIR="$DEPLOY" install
|
|
|
|
|
|
|
|
chmod 755 $DEPLOY/bin/*
|
|
|
|
cat_file_override "dhcpcd.conf" > "$DEPLOY/etc/dhcpcd.conf"
|
2018-06-16 17:46:17 +02:00
|
|
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
2018-02-25 00:47:14 +01:00
|
|
|
}
|
2018-05-06 17:23:31 +02:00
|
|
|
|
|
|
|
check_update() {
|
|
|
|
curl --silent -L "$URL" | grep -o ">dhcpcd-[0-9.]*tar.xz<" | \
|
|
|
|
sed 's/>dhcpcd-//g' | sed 's/.tar.xz<//g' | \
|
|
|
|
verson_find_greatest "$VERSION"
|
|
|
|
}
|