mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Simplify unbound build
- Remove libevent dependency - Since we only have a single config file anyway, use it as main unbound.conf - We also need libbsd as build dependency
This commit is contained in:
parent
86120862c5
commit
2d57db89d9
2 changed files with 2 additions and 43 deletions
|
@ -1,35 +0,0 @@
|
||||||
VERSION="2.1.8"
|
|
||||||
SRCDIR="libevent-${VERSION}-stable"
|
|
||||||
TARBALL="${SRCDIR}.tar.gz"
|
|
||||||
URL="https://github.com/libevent/libevent/releases/download/release-2.1.8-stable/"
|
|
||||||
SHA256SUM="965cc5a8bb46ce4199a47e9b2c9e1cae3b137e8356ffdad6d94d3b9069b71dc2"
|
|
||||||
DEPENDS="toolchain"
|
|
||||||
|
|
||||||
prepare() {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
build() {
|
|
||||||
$1/configure --prefix="" --host="$TARGET" --disable-static
|
|
||||||
|
|
||||||
make -j $NUMJOBS
|
|
||||||
}
|
|
||||||
|
|
||||||
deploy() {
|
|
||||||
local SOURCE="$1"
|
|
||||||
local DEPLOY="$2"
|
|
||||||
local DEVDEPLOY="$3"
|
|
||||||
|
|
||||||
make DESTDIR="$DEPLOY" install
|
|
||||||
|
|
||||||
rm -r "$DEPLOY/bin"
|
|
||||||
|
|
||||||
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
|
||||||
strip_files ${DEPLOY}/lib/*
|
|
||||||
}
|
|
||||||
|
|
||||||
check_update() {
|
|
||||||
curl --silent -L https://github.com/libevent/libevent/releases | \
|
|
||||||
grep -o "libevent-[0-9.]*-stable" | grep -o "[0-9.]*" | \
|
|
||||||
verson_find_greatest "$VERSION"
|
|
||||||
}
|
|
|
@ -3,7 +3,7 @@ SRCDIR="unbound-${VERSION}"
|
||||||
TARBALL="${SRCDIR}.tar.gz"
|
TARBALL="${SRCDIR}.tar.gz"
|
||||||
URL="https://www.unbound.net/downloads"
|
URL="https://www.unbound.net/downloads"
|
||||||
SHA256SUM="56e085ef582c5372a20207de179d0edb4e541e59f87be7d4ee1d00d12008628d"
|
SHA256SUM="56e085ef582c5372a20207de179d0edb4e541e59f87be7d4ee1d00d12008628d"
|
||||||
DEPENDS="libevent openssl expat"
|
DEPENDS="openssl expat libbsd"
|
||||||
|
|
||||||
prepare() {
|
prepare() {
|
||||||
return
|
return
|
||||||
|
@ -27,15 +27,9 @@ deploy() {
|
||||||
|
|
||||||
rm -r "$DEPLOY/share"
|
rm -r "$DEPLOY/share"
|
||||||
|
|
||||||
mkdir -p "$DEPLOY/etc/unbound/unbound.conf.d"
|
|
||||||
mkdir -p "$DEPLOY/var/lib/unbound"
|
mkdir -p "$DEPLOY/var/lib/unbound"
|
||||||
|
|
||||||
cat > "$DEPLOY/etc/unbound/unbound.conf" << _EOF
|
cat_file_override "unbound.conf" > "$DEPLOY/etc/unbound/unbound.conf"
|
||||||
include: "/etc/unbound/unbound.conf.d/*.conf"
|
|
||||||
_EOF
|
|
||||||
|
|
||||||
cat_file_override "unbound.conf" > \
|
|
||||||
"$DEPLOY/etc/unbound/unbound.conf.d/server.conf"
|
|
||||||
|
|
||||||
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
split_dev_deploy "$DEPLOY" "$DEVDEPLOY"
|
||||||
strip_files ${DEPLOY}/{bin,lib}/*
|
strip_files ${DEPLOY}/{bin,lib}/*
|
||||||
|
|
Loading…
Reference in a new issue