diff options
author | Đoàn Trần Công Danh <congdanhqx@gmail.com> | 2024-03-29 14:11:36 +0000 |
---|---|---|
committer | Đoàn Trần Công Danh <sgn.danh@gmail.com> | 2024-03-30 23:21:20 +0000 |
commit | 8d67bc1c150ed4dfadaf3a4b809608c44ff6af13 (patch) | |
tree | 1a86dbd7bc2531929d2d41787b412ff5214fb4ae | |
parent | becd05b37b7c823a4b95ac55c68ff18111f0f0ba (diff) | |
download | void-packages-8d67bc1c150ed4dfadaf3a4b809608c44ff6af13.tar void-packages-8d67bc1c150ed4dfadaf3a4b809608c44ff6af13.tar.gz void-packages-8d67bc1c150ed4dfadaf3a4b809608c44ff6af13.tar.bz2 void-packages-8d67bc1c150ed4dfadaf3a4b809608c44ff6af13.tar.lz void-packages-8d67bc1c150ed4dfadaf3a4b809608c44ff6af13.tar.xz void-packages-8d67bc1c150ed4dfadaf3a4b809608c44ff6af13.tar.zst void-packages-8d67bc1c150ed4dfadaf3a4b809608c44ff6af13.zip |
modsecurity: reduce hostmakedepends
-rw-r--r-- | srcpkgs/modsecurity/template | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/srcpkgs/modsecurity/template b/srcpkgs/modsecurity/template index d0ad1b197bc..789be343f07 100644 --- a/srcpkgs/modsecurity/template +++ b/srcpkgs/modsecurity/template @@ -6,22 +6,23 @@ build_style=gnu-configure configure_args="--enable-standalone-module --enable-htaccess-config" hostmakedepends="pkg-config" makedepends="apache-devel gdbm-devel libcurl-devel libxml2-devel lua53-devel - pcre-devel yajl-devel lmdb-devel" + pcre-devel yajl-devel lmdb-devel icu-devel" depends="perl-LWP" -short_desc="Rule based web application firwall (WAF)" +short_desc="Rule based web application firewall (WAF)" maintainer="Orphaned <orphan@voidlinux.org>" license="Apache-2.0" homepage="https://www.modsecurity.org" distfiles="https://github.com/SpiderLabs/ModSecurity/releases/download/v${version}/modsecurity-v${version}.tar.gz" checksum=b4231177dd80b4e076b228e57d498670113b69d445bab86db25f65346c24db22 -if [ "$CROSS_BUILD" ]; then - hostmakedepends+=" $makedepends" -fi - pre_configure() { # Use target paths or will link against host libs vsed -e "s,\${path},${XBPS_CROSS_BASE}/usr,g" -i configure + if [ "$CROSS_BUILD" ]; then + configure_args+=" --with-curl=$XBPS_WRAPPERDIR/curl-config" + configure_args+=" --with-libxml=$XBPS_WRAPPERDIR/xml2-config" + configure_args+=" --with-pcre=$XBPS_WRAPPERDIR/pcre-config" + fi } pre_build() { |