2014-07-13 18:25:38 +08:00
|
|
|
#
|
2016-06-14 02:19:42 +08:00
|
|
|
# Copyright (C) 2007-2016 OpenWrt.org
|
2014-07-13 18:25:38 +08:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
#
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=wget
|
2021-01-20 07:13:39 +08:00
|
|
|
PKG_VERSION:=1.21.1
|
|
|
|
PKG_RELEASE:=1
|
2014-07-13 18:25:38 +08:00
|
|
|
|
2017-10-30 02:34:53 +08:00
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
2014-07-13 18:25:38 +08:00
|
|
|
PKG_SOURCE_URL:=@GNU/$(PKG_NAME)
|
2021-01-20 07:13:39 +08:00
|
|
|
PKG_HASH:=59ba0bdade9ad135eda581ae4e59a7a9f25e3a4bde6a5419632b31906120e26e
|
|
|
|
|
2017-11-02 05:24:07 +08:00
|
|
|
PKG_MAINTAINER:=Peter Wagner <tripolar@gmx.at>
|
2019-09-02 21:15:08 +08:00
|
|
|
PKG_LICENSE:=GPL-3.0-or-later
|
2014-12-14 19:04:20 +08:00
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2019-04-09 18:44:30 +08:00
|
|
|
PKG_CPE_ID:=cpe:/a:gnu:wget
|
|
|
|
|
2021-01-20 07:13:39 +08:00
|
|
|
PKG_INSTALL:=1
|
|
|
|
PKG_BUILD_PARALLEL:=1
|
|
|
|
|
2014-07-13 18:25:38 +08:00
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
|
|
|
|
define Package/wget/Default
|
|
|
|
SECTION:=net
|
|
|
|
CATEGORY:=Network
|
2016-07-24 19:00:01 +08:00
|
|
|
DEPENDS:=+libpcre +zlib
|
2014-07-13 18:25:38 +08:00
|
|
|
SUBMENU:=File Transfer
|
|
|
|
TITLE:=Non-interactive network downloader
|
2018-11-18 12:00:55 +08:00
|
|
|
URL:=https://www.gnu.org/software/wget/index.html
|
2020-10-09 16:38:39 +08:00
|
|
|
PROVIDES:=gnu-wget wget
|
2014-07-13 18:25:38 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wget/Default/description
|
|
|
|
Wget is a network utility to retrieve files from the Web using http
|
|
|
|
and ftp, the two most widely used Internet protocols. It works
|
|
|
|
non-interactively, so it will work in the background, after having
|
|
|
|
logged off. The program supports recursive retrieval of web-authoring
|
|
|
|
pages as well as ftp sites -- you can use wget to make mirrors of
|
|
|
|
archives and home pages or to travel the Web like a WWW robot.
|
|
|
|
endef
|
|
|
|
|
2020-10-09 16:38:39 +08:00
|
|
|
define Package/wget-ssl
|
2014-07-13 18:25:38 +08:00
|
|
|
$(call Package/wget/Default)
|
|
|
|
DEPENDS+= +libopenssl +librt
|
|
|
|
TITLE+= (with SSL support)
|
|
|
|
VARIANT:=ssl
|
2020-10-08 20:22:51 +08:00
|
|
|
ALTERNATIVES:=300:/usr/bin/wget:/usr/libexec/wget-ssl
|
2014-07-13 18:25:38 +08:00
|
|
|
endef
|
|
|
|
|
2020-12-23 23:07:31 +08:00
|
|
|
define Package/wget-ssl/description
|
2014-07-13 18:25:38 +08:00
|
|
|
$(call Package/wget/Default/description)
|
|
|
|
This package is built with SSL support.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wget-nossl
|
|
|
|
$(call Package/wget/Default)
|
|
|
|
TITLE+= (without SSL support)
|
|
|
|
VARIANT:=nossl
|
2020-10-08 20:22:51 +08:00
|
|
|
ALTERNATIVES:=300:/usr/bin/wget:/usr/libexec/wget-nossl
|
2014-07-13 18:25:38 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wget-nossl/description
|
|
|
|
$(call Package/wget/Default/description)
|
|
|
|
This package is built without SSL support.
|
|
|
|
endef
|
|
|
|
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-rpath \
|
2014-12-11 19:13:52 +08:00
|
|
|
--disable-iri \
|
2018-12-06 03:58:21 +08:00
|
|
|
--disable-pcre2 \
|
2017-10-28 16:34:36 +08:00
|
|
|
--with-included-libunistring \
|
2018-07-24 20:18:00 +08:00
|
|
|
--without-libuuid \
|
|
|
|
--without-libpsl
|
2014-07-13 18:25:38 +08:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_header_uuid_uuid_h=no
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),ssl)
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--with-ssl=openssl \
|
|
|
|
--with-libssl-prefix="$(STAGING_DIR)/usr"
|
2019-01-06 14:45:32 +08:00
|
|
|
|
|
|
|
CONFIGURE_VARS += \
|
|
|
|
ac_cv_libssl=yes
|
2014-07-13 18:25:38 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VARIANT),nossl)
|
|
|
|
CONFIGURE_ARGS+= \
|
|
|
|
--disable-ntlm \
|
|
|
|
--without-ssl
|
|
|
|
endif
|
|
|
|
|
2020-12-23 23:07:31 +08:00
|
|
|
define Package/wget-ssl/install
|
2020-10-08 20:22:51 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/libexec
|
2021-01-20 07:13:39 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wget $(1)/usr/libexec/wget-ssl
|
2014-07-13 18:25:38 +08:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/wget-nossl/install
|
2020-10-08 20:22:51 +08:00
|
|
|
$(INSTALL_DIR) $(1)/usr/libexec
|
2021-01-20 07:13:39 +08:00
|
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/wget $(1)/usr/libexec/wget-nossl
|
2014-07-13 18:25:38 +08:00
|
|
|
endef
|
|
|
|
|
2020-10-09 16:38:39 +08:00
|
|
|
$(eval $(call BuildPackage,wget-ssl))
|
2014-07-13 18:25:38 +08:00
|
|
|
$(eval $(call BuildPackage,wget-nossl))
|