wget: added two build options: gnutls (off), ssl (on).
This commit is contained in:
parent
4cb344b653
commit
896189a65e
|
@ -1,11 +1,12 @@
|
||||||
# Template file for 'wget'
|
# Template file for 'wget'
|
||||||
pkgname=wget
|
pkgname=wget
|
||||||
version=1.16.3
|
version=1.16.3
|
||||||
revision=4
|
revision=5
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--with-ssl=openssl"
|
configure_args="$(vopt_if ssl '--with-ssl=openssl') $(vopt_if gnutls '--with-ssl=gnutls')"
|
||||||
hostmakedepends="perl pkg-config"
|
hostmakedepends="perl pkg-config"
|
||||||
makedepends="libressl-devel libidn-devel libuuid-devel pcre-devel"
|
makedepends="$(vopt_if ssl libressl-devel) $(vopt_if gnutls gnutls-devel)
|
||||||
|
libidn-devel libuuid-devel pcre-devel"
|
||||||
depends="ca-certificates"
|
depends="ca-certificates"
|
||||||
conf_files="/etc/wgetrc"
|
conf_files="/etc/wgetrc"
|
||||||
short_desc="The GNU wget download utility"
|
short_desc="The GNU wget download utility"
|
||||||
|
@ -15,6 +16,10 @@ license="GPL-3"
|
||||||
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
|
distfiles="${GNU_SITE}/$pkgname/$pkgname-$version.tar.xz"
|
||||||
checksum=67f7b7b0f5c14db633e3b18f53172786c001e153d545cfc85d82759c5c2ffb37
|
checksum=67f7b7b0f5c14db633e3b18f53172786c001e153d545cfc85d82759c5c2ffb37
|
||||||
|
|
||||||
|
build_options="gnutls ssl"
|
||||||
|
build_options_default="ssl"
|
||||||
|
vopt_conflict gnutls ssl
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
echo "ca_certificate=/etc/ssl/certs/ca-certificates.crt" >> ${DESTDIR}/etc/wgetrc
|
echo "ca_certificate=/etc/ssl/certs/ca-certificates.crt" >> ${DESTDIR}/etc/wgetrc
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue