浏览代码

Ports: Add port for wget

Tim Schumacher 4 年之前
父节点
当前提交
040d2479bf
共有 3 个文件被更改,包括 26 次插入0 次删除
  1. 1 0
      Ports/AvailablePorts.md
  2. 13 0
      Ports/wget/package.sh
  3. 12 0
      Ports/wget/patches/configure.patch

+ 1 - 0
Ports/AvailablePorts.md

@@ -126,6 +126,7 @@ Please make sure to keep this list up to date when adding and updating ports. :^
 | [`vim`](vim/)                          | Vim                                                        | 8.2.2772                 | https://www.vim.org/                                                           |
 | [`vitetris`](vitetris/)                | vitetris                                                   | 0.59.1                   | https://github.com/vicgeralds/vitetris                                         |
 | [`vttest`](vttest/)                    | vttest                                                     | 20210210                 | https://invisible-island.net/vttest/                                           |
+| [`wget`](wget/)                        | GNU Wget                                                   | 1.21.1                   | https://www.gnu.org/software/wget/                                             |
 | [`xz`](xz/)                            | xz                                                         | 5.2.5                    | https://tukaani.org/xz/                                                        |
 | [`yasm`](yasm/)                        | Yasm Modular Assembler                                     | 1.3.0                    | https://yasm.tortall.net/                                                      |
 | [`zlib`](zlib/)                        | zlib                                                       | 1.2.11                   | https://www.zlib.net/                                                          |

+ 13 - 0
Ports/wget/package.sh

@@ -0,0 +1,13 @@
+#!/usr/bin/env -S bash ../.port_include.sh
+port=wget
+version=1.21.1
+useconfigure="true"
+depends="openssl"
+files="https://ftpmirror.gnu.org/gnu/wget/wget-${version}.tar.gz wget-${version}.tar.gz
+https://ftpmirror.gnu.org/gnu/wget/wget-${version}.tar.gz.sig wget-${version}.tar.gz.sig
+https://ftpmirror.gnu.org/gnu/gnu-keyring.gpg gnu-keyring.gpg"
+auth_type="sig"
+auth_opts="--keyring ./gnu-keyring.gpg wget-${version}.tar.gz.sig"
+configopts="--with-ssl=openssl --disable-ipv6"
+
+export OPENSSL_LIBS="-lssl -lcrypto -ldl"

+ 12 - 0
Ports/wget/patches/configure.patch

@@ -0,0 +1,12 @@
+diff -ur a/build-aux/config.sub b/build-aux/config.sub
+--- a/build-aux/config.sub	2021-01-09 10:57:19.000000000 +0100
++++ b/build-aux/config.sub	2021-04-19 14:45:56.132333538 +0200
+@@ -1691,7 +1691,7 @@
+ 	# Now accept the basic system types.
+ 	# The portable systems comes first.
+ 	# Each alternative MUST end in a * to match a version number.
+-	gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \
++	gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | serenity* | irix* \
+ 	     | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \
+ 	     | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \
+ 	     | sym* |  plan9* | psp* | sim* | xray* | os68k* | v88r* \