commit 3769b70
chld
·
2026-08-30 20:29:07 +0000 UTC
parent 97c9699
openssh: fix destdir
1 files changed,
+5,
-3
+5,
-3
1@@ -5,7 +5,8 @@ RELEASE=1
2 SOURCE="https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/${NAME}-${VERSION}.tar.gz"
3
4 build(){
5- LDFLAGS='-L . -static' PREFIX="$PREFIX" CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' ./configure \
6+ export DESTDIR="$PKG"
7+ LDFLAGS='-L . -static' PREFIX="$PREFIX" DESTDIR="$PKG" CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' ./configure \
8 --prefix="$PREFIX" \
9 --bindir=/bin \
10 --sbindir=/bin \
11@@ -25,9 +26,10 @@ build(){
12 --without-xauth \
13 --without-kerberos5 \
14 --without-bsd-auth || die "configure failed"
15+ sed -i "s#DESTDIR=#DESTDIR=$PKG#" Makefile
16
17- LDFLAGS='-L . -static' CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' gmake || die "gmake failed"
18- LDFLAGS='-L . -static' CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' PREFIX="$PREFIX" DESTDIR="$PKG" gmake install || die "gmake install failed"
19+ LDFLAGS='-L . -static' DESTDIR="$PKG" PREFIX="$PREFIX" CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' gmake || die "gmake failed"
20+ LDFLAGS='-L . -static' CPPFLAGS='-L .' CFLAGS='-L . -static -Oz' DESTDIR="$PKG" gmake install || die "gmake install failed"
21 }
22
23 . ${0%/*}/../../libsh/libdmake.sh