apache2: compile host tool in termux_step_host_build
Instead of in termux_step_post_configure.
This commit is contained in:
parent
239ae0c5fc
commit
22ecf22438
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="Apache Web Server"
|
|||||||
TERMUX_PKG_LICENSE="Apache-2.0"
|
TERMUX_PKG_LICENSE="Apache-2.0"
|
||||||
TERMUX_PKG_MAINTAINER="@termux"
|
TERMUX_PKG_MAINTAINER="@termux"
|
||||||
TERMUX_PKG_VERSION=1:2.4.51
|
TERMUX_PKG_VERSION=1:2.4.51
|
||||||
|
TERMUX_PKG_REVISION=1
|
||||||
TERMUX_PKG_SRCURL=https://www.apache.org/dist/httpd/httpd-${TERMUX_PKG_VERSION:2}.tar.bz2
|
TERMUX_PKG_SRCURL=https://www.apache.org/dist/httpd/httpd-${TERMUX_PKG_VERSION:2}.tar.bz2
|
||||||
TERMUX_PKG_SHA256=20e01d81fecf077690a4439e3969a9b22a09a8d43c525356e863407741b838f4
|
TERMUX_PKG_SHA256=20e01d81fecf077690a4439e3969a9b22a09a8d43c525356e863407741b838f4
|
||||||
TERMUX_PKG_DEPENDS="apr, apr-util, pcre, openssl, libcrypt, libandroid-support, libnghttp2, libexpat, libuuid, zlib"
|
TERMUX_PKG_DEPENDS="apr, apr-util, pcre, openssl, libcrypt, libandroid-support, libnghttp2, libexpat, libuuid, zlib"
|
||||||
@ -72,7 +73,12 @@ TERMUX_PKG_BUILD_IN_SRC=true
|
|||||||
TERMUX_PKG_RM_AFTER_INSTALL="share/apache2/manual etc/apache2/original share/man/man8/suexec.8 libexec/httpd.exp"
|
TERMUX_PKG_RM_AFTER_INSTALL="share/apache2/manual etc/apache2/original share/man/man8/suexec.8 libexec/httpd.exp"
|
||||||
TERMUX_PKG_EXTRA_MAKE_ARGS="-s"
|
TERMUX_PKG_EXTRA_MAKE_ARGS="-s"
|
||||||
TERMUX_PKG_SERVICE_SCRIPT=("httpd" 'exec httpd -DNO_DETACH 2>&1')
|
TERMUX_PKG_SERVICE_SCRIPT=("httpd" 'exec httpd -DNO_DETACH 2>&1')
|
||||||
|
TERMUX_PKG_HOSTBUILD=true
|
||||||
|
|
||||||
|
termux_step_host_build() {
|
||||||
|
gcc -O2 -DCROSS_COMPILE $TERMUX_PKG_SRCDIR/server/gen_test_char.c \
|
||||||
|
-o gen_test_char
|
||||||
|
}
|
||||||
|
|
||||||
termux_step_pre_configure() {
|
termux_step_pre_configure() {
|
||||||
# Certain packages are not safe to build on device because their
|
# Certain packages are not safe to build on device because their
|
||||||
@ -98,8 +104,8 @@ termux_step_pre_configure() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
termux_step_post_configure() {
|
termux_step_post_configure() {
|
||||||
# thanks to @JetBalsa
|
install -m700 $TERMUX_PKG_HOSTBUILD_DIR/gen_test_char \
|
||||||
gcc -O2 -DCROSS_COMPILE $TERMUX_PKG_SRCDIR/server/gen_test_char.c -o $TERMUX_PKG_BUILDDIR/server/gen_test_char
|
$TERMUX_PKG_BUILDDIR/server/gen_test_char
|
||||||
touch -d "1 hour" $TERMUX_PKG_BUILDDIR/server/gen_test_char
|
touch -d "1 hour" $TERMUX_PKG_BUILDDIR/server/gen_test_char
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user