diff options
author | ryoon <ryoon@pkgsrc.org> | 2021-10-03 13:41:11 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2021-10-03 13:41:11 +0000 |
commit | dce2e3a2e608234e77c1de6e4a1c2794c8b16bb2 (patch) | |
tree | dc5236607483c5174404505ea1c779670aecd473 /net | |
parent | 72b9600dfacb4fc1339a9086a51b89a0e3a1354c (diff) | |
download | pkgsrc-dce2e3a2e608234e77c1de6e4a1c2794c8b16bb2.tar.gz |
net/wget2: import wget2-2.0.0
GNU Wget2 is the successor of GNU Wget, a file and recursive website
downloader. Designed and written from scratch it wraps around
libwget, that provides the basic functions needed by a web client.
Wget2 works multi-threaded and uses many features to allow fast
operation.
Diffstat (limited to 'net')
-rw-r--r-- | net/wget2/DESCR | 5 | ||||
-rw-r--r-- | net/wget2/Makefile | 32 | ||||
-rw-r--r-- | net/wget2/PLIST | 56 | ||||
-rw-r--r-- | net/wget2/distinfo | 7 | ||||
-rw-r--r-- | net/wget2/options.mk | 64 | ||||
-rw-r--r-- | net/wget2/patches/patch-configure | 15 |
6 files changed, 179 insertions, 0 deletions
diff --git a/net/wget2/DESCR b/net/wget2/DESCR new file mode 100644 index 00000000000..7438dd500cf --- /dev/null +++ b/net/wget2/DESCR @@ -0,0 +1,5 @@ +GNU Wget2 is the successor of GNU Wget, a file and recursive website +downloader. Designed and written from scratch it wraps around +libwget, that provides the basic functions needed by a web client. +Wget2 works multi-threaded and uses many features to allow fast +operation. diff --git a/net/wget2/Makefile b/net/wget2/Makefile new file mode 100644 index 00000000000..a8966662a02 --- /dev/null +++ b/net/wget2/Makefile @@ -0,0 +1,32 @@ +# $NetBSD: Makefile,v 1.1 2021/10/03 13:41:11 ryoon Exp $ + +DISTNAME= wget2-2.0.0 +CATEGORIES= net +MASTER_SITES= ${MASTER_SITE_GNU:=wget/} +EXTRACT_SUFX= .tar.lz + +MAINTAINER= ryoon@NetBSD.org +HOMEPAGE= https://www.gnu.org/software/wget/ +COMMENT= Retrieving files using HTTP, HTTPS, FTP and FTPS +LICENSE= gnu-gpl-v3 AND gnu-lgpl-v3 + +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_TOOLS+= gmake pkg-config +USE_PKGLOCALEDIR= yes + +CONFIGURE_ARGS+= --disable-doc # Needs pandoc + +PKGCONFIG_OVERRIDE+= libwget.pc.in + +.include "options.mk" + +post-install: + ${RM} -f ${DESTDIR}${PREFIX}/bin/wget2_noinstall + +.include "../../archivers/bzip2/buildlink3.mk" +.include "../../archivers/xz/buildlink3.mk" +.include "../../devel/gettext-lib/buildlink3.mk" +.include "../../devel/pcre2/buildlink3.mk" +.include "../../devel/zlib/buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/net/wget2/PLIST b/net/wget2/PLIST new file mode 100644 index 00000000000..b23034952f8 --- /dev/null +++ b/net/wget2/PLIST @@ -0,0 +1,56 @@ +@comment $NetBSD: PLIST,v 1.1 2021/10/03 13:41:11 ryoon Exp $ +bin/wget2 +include/wget.h +include/wgetver.h +lib/libwget.la +lib/libwget_alloc.la +lib/libwget_common.la +lib/libwget_css.la +lib/libwget_decompress.la +lib/libwget_dns.la +lib/libwget_dnscache.la +lib/libwget_encoding.la +lib/libwget_hashfile.la +lib/libwget_hpkp_db.la +lib/libwget_hsts.la +lib/libwget_http_parse.la +lib/libwget_io.la +lib/libwget_ip.la +lib/libwget_iri.la +lib/libwget_logger.la +lib/libwget_metalink.la +lib/libwget_netrc.la +lib/libwget_ocsp.la +lib/libwget_progress.la +lib/libwget_robots.la +lib/libwget_thread.la +lib/libwget_tls_session.la +lib/libwget_xml.la +lib/pkgconfig/libwget.pc +share/locale/ca/LC_MESSAGES/wget2.mo +share/locale/cs/LC_MESSAGES/wget2.mo +share/locale/de/LC_MESSAGES/wget2.mo +share/locale/eo/LC_MESSAGES/wget2.mo +share/locale/es/LC_MESSAGES/wget2.mo +share/locale/et/LC_MESSAGES/wget2.mo +share/locale/fi/LC_MESSAGES/wget2.mo +share/locale/fr/LC_MESSAGES/wget2.mo +share/locale/ga/LC_MESSAGES/wget2.mo +share/locale/hr/LC_MESSAGES/wget2.mo +share/locale/hu/LC_MESSAGES/wget2.mo +share/locale/id/LC_MESSAGES/wget2.mo +share/locale/it/LC_MESSAGES/wget2.mo +share/locale/ja/LC_MESSAGES/wget2.mo +share/locale/nb/LC_MESSAGES/wget2.mo +share/locale/nl/LC_MESSAGES/wget2.mo +share/locale/pl/LC_MESSAGES/wget2.mo +share/locale/pt_BR/LC_MESSAGES/wget2.mo +share/locale/ro/LC_MESSAGES/wget2.mo +share/locale/ru/LC_MESSAGES/wget2.mo +share/locale/sk/LC_MESSAGES/wget2.mo +share/locale/sr/LC_MESSAGES/wget2.mo +share/locale/sv/LC_MESSAGES/wget2.mo +share/locale/tr/LC_MESSAGES/wget2.mo +share/locale/uk/LC_MESSAGES/wget2.mo +share/locale/vi/LC_MESSAGES/wget2.mo +share/locale/zh_CN/LC_MESSAGES/wget2.mo diff --git a/net/wget2/distinfo b/net/wget2/distinfo new file mode 100644 index 00000000000..917b7c24d3c --- /dev/null +++ b/net/wget2/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2021/10/03 13:41:11 ryoon Exp $ + +SHA1 (wget2-2.0.0.tar.lz) = 06edd7eabea3c5837d79c78ef71dbadda4cf507a +RMD160 (wget2-2.0.0.tar.lz) = d803a6dd63602e2f8e7643efc7990ff285817a97 +SHA512 (wget2-2.0.0.tar.lz) = 0e58b05cc6ddc8e9e573beacd5e493d266c58d10e13d81967d2509b73f4bee0ef88a0c09e979f223530189b2bfde593eeb68d38c4fa8702761fa2779174004b3 +Size (wget2-2.0.0.tar.lz) = 1956207 bytes +SHA1 (patch-configure) = 8ab41d49dca4b508081d5465fbfafe6f2087558b diff --git a/net/wget2/options.mk b/net/wget2/options.mk new file mode 100644 index 00000000000..660eb0d82cc --- /dev/null +++ b/net/wget2/options.mk @@ -0,0 +1,64 @@ +# $NetBSD: options.mk,v 1.1 2021/10/03 13:41:11 ryoon Exp $ + +PKG_OPTIONS_VAR= PKG_OPTIONS.wget2 +PKG_SUPPORTED_OPTIONS= gpgme http2 idn psl +PKG_OPTIONS_OPTIONAL_GROUPS= ssl +PKG_OPTIONS_GROUP.ssl= gnutls openssl +PKG_SUGGESTED_OPTIONS= http2 idn openssl psl + +.include "../../mk/bsd.options.mk" + +### +### Support IDN +### +.if !empty(PKG_OPTIONS:Midn) +.include "../../devel/libidn2/buildlink3.mk" +.include "../../converters/libiconv/buildlink3.mk" +CONFIGURE_ARGS+= --with-libidn2 +.else +CONFIGURE_ARGS+= --without-libidn2 +.endif + +### +### Support SSL +### Current configuration of security/wolfssl is not compatible. +### +.if !empty(PKG_OPTIONS:Mgnutls) +. include "../../security/gnutls/buildlink3.mk" +CONFIGURE_ARGS+=--with-ssl=gnutls +.elif !empty(PKG_OPTIONS:Mopenssl) +. include "../../security/openssl/buildlink3.mk" +CONFIGURE_ARGS+=--with-ssl=openssl +.else +CONFIGURE_ARGS+=--with-ssl=no +.endif + +### +### Support signature verification with gpgme +### +.if !empty(PKG_OPTIONS:Mgpgme) +. include "../../security/gpgme/buildlink3.mk" +CONFIGURE_ARGS+=--with-gpgme +.else +CONFIGURE_ARGS+=--without-gpgme +.endif + +### +### Support HTTP/2 +### +.if !empty(PKG_OPTIONS:Mhttp2) +. include "../../www/nghttp2/buildlink3.mk" +CONFIGURE_ARGS+=--with-libnghttp2 +.else +CONFIGURE_ARGS+=--without-libnghttp2 +.endif + +### +### Support Public Suffix List +### +.if !empty(PKG_OPTIONS:Mpsl) +. include "../../www/libpsl/buildlink3.mk" +CONFIGURE_ARGS+=--with-libpsl +.else +CONFIGURE_ARGS+=--without-libpsl +.endif diff --git a/net/wget2/patches/patch-configure b/net/wget2/patches/patch-configure new file mode 100644 index 00000000000..0ff4e99f335 --- /dev/null +++ b/net/wget2/patches/patch-configure @@ -0,0 +1,15 @@ +$NetBSD: patch-configure,v 1.1 2021/10/03 13:41:11 ryoon Exp $ + +* Improve POSIX shell compatibility. + +--- configure.orig 2021-09-12 11:37:49.000000000 +0000 ++++ configure +@@ -60016,7 +60016,7 @@ else $as_nop + if test "$with_ssl" != "none" + then : + +- if test "$with_ssl" == "yes" ++ if test "$with_ssl" = "yes" + then : + as_fn_error $? "*** No SSL/TLS library not found." "$LINENO" 5 + else $as_nop |