configure: http => https

This commit is contained in:
Thomas Bernard 2023-06-27 01:00:07 +02:00
parent 8381867faf
commit 3a6feb49c0
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 22 additions and 22 deletions

44
miniupnpd/configure vendored
View File

@ -1,10 +1,10 @@
#! /bin/sh
# $Id: configure,v 1.120 2022/05/18 07:50:48 nanard Exp $
# $Id: configure,v 1.122 2023/06/26 23:08:15 nanard Exp $
# vim: tabstop=4 shiftwidth=4 noexpandtab
#
# miniupnp daemon
# http://miniupnp.free.fr or https://miniupnp.tuxfamily.org/
# (c) 2006-2022 Thomas Bernard
# (c) 2006-2023 Thomas Bernard
# This software is subject to the conditions detailed in the
# LICENCE file provided within the distribution
@ -163,7 +163,7 @@ ${RM} ${CONFIGFILE}
echo "/* MiniUPnP Project" >> ${CONFIGFILE}
echo " * http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/" >> ${CONFIGFILE}
echo " * (c) 2006-2022 Thomas Bernard" >> ${CONFIGFILE}
echo " * (c) 2006-2023 Thomas Bernard" >> ${CONFIGFILE}
echo " * generated by $0 on `date`" >> ${CONFIGFILE}
echo " * `uname -a`" >> ${CONFIGFILE}
if [ -z "$*" ] ; then
@ -238,7 +238,7 @@ case $OS_NAME in
fi
FW=pf
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
OS_URL=http://www.openbsd.org/
OS_URL=https://www.openbsd.org/
# net.inet6.ip6.v6only has been removed in recent OpenBSD versions
# Default to 1 in that case
if [ "$CROSSBUILD" != "1" ] && [ -z "$V6SOCKETS_ARE_V6ONLY" ] ; then
@ -264,7 +264,7 @@ case $OS_NAME in
fi
HAVE_IP_MREQN=1
# new way to see which one to use PF or IPF.
# see http://miniupnp.tuxfamily.org/forum/viewtopic.php?p=957
# see https://miniupnp.tuxfamily.org/forum/viewtopic.php?p=957
if [ "$CROSSBUILD" != "1" ] && [ -z $FW ] && [ -f /etc/rc.subr ] && [ -f /etc/defaults/rc.conf ] ; then
# source file with handy subroutines like checkyesno
. /etc/rc.subr
@ -293,7 +293,7 @@ case $OS_NAME in
echo "!!! see https://github.com/miniupnp/miniupnp/issues/596 !!!"
fi
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
OS_URL=http://www.freebsd.org/
OS_URL=https://www.freebsd.org/
if [ "$CROSSBUILD" != "1" ] && [ -z "$V6SOCKETS_ARE_V6ONLY" ] ; then
V6SOCKETS_ARE_V6ONLY=`sysctl -n net.inet6.ip6.v6only`
fi
@ -303,7 +303,7 @@ case $OS_NAME in
# we need to detect if PFRULE_INOUT_COUNTS macro is needed
FW=pf
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
OS_URL=http://www.pfsense.com/
OS_URL=https://www.pfsense.com/
if [ "$CROSSBUILD" != "1" ] && [ -z "$V6SOCKETS_ARE_V6ONLY" ] ; then
V6SOCKETS_ARE_V6ONLY=`sysctl -n net.inet6.ip6.v6only`
fi
@ -326,7 +326,7 @@ case $OS_NAME in
FW=pf
fi
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
OS_URL=http://www.netbsd.org/
OS_URL=https://www.netbsd.org/
;;
DragonFly)
MAKEFILE=Makefile.bsd
@ -352,7 +352,7 @@ case $OS_NAME in
# net.inet6.ip6.v6only has been on by default for many years
# and this sysctl node has been removed
V6SOCKETS_ARE_V6ONLY=1
OS_URL=http://www.dragonflybsd.org/
OS_URL=https://www.dragonflybsd.org/
;;
SunOS)
MAKEFILE=Makefile.bsd
@ -363,10 +363,10 @@ case $OS_NAME in
# solaris 10 does not define u_int64_t ?
# but it does define uint64_t
echo "typedef uint64_t u_int64_t;" >> ${CONFIGFILE}
OS_URL=http://www.sun.com/solaris/
OS_URL=https://www.oracle.com/solaris/
;;
Linux)
OS_URL=http://www.kernel.org/
OS_URL=https://www.kernel.org/
KERNVERA=`echo $OS_VERSION | awk -F. '{print $1}'`
KERNVERB=`echo $OS_VERSION | awk -F. '{print $2}'`
KERNVERC=`echo $OS_VERSION | awk -F. '{print $3}'`
@ -381,13 +381,13 @@ case $OS_NAME in
if [ -f /etc/debian_version ]; then
OS_NAME=Debian
OS_VERSION=`cat /etc/debian_version`
OS_URL=http://www.debian.org/
OS_URL=https://www.debian.org/
fi
# same thing for Gentoo linux
if [ -f /etc/gentoo-release ]; then
OS_NAME=Gentoo
OS_VERSION=`cat /etc/gentoo-release`
OS_URL=http://www.gentoo.org/
OS_URL=https://www.gentoo.org/
fi
# ClearOS special case
if [ -f /etc/clearos-release ]; then
@ -402,18 +402,18 @@ case $OS_NAME in
OS_VERSION=`${LSB_RELEASE} -r -s`
case $OS_NAME in
Debian)
OS_URL=http://www.debian.org/
OS_URL=https://www.debian.org/
OS_VERSION=`${LSB_RELEASE} -c -s`
;;
Ubuntu)
OS_URL=http://www.ubuntu.com/
OS_URL=https://ubuntu.com/
OS_VERSION=`${LSB_RELEASE} -c -s`
;;
Gentoo)
OS_URL=http://www.gentoo.org/
OS_URL=https://www.gentoo.org/
;;
arch)
OS_URL=http://www.archlinux.org/
OS_URL=https://archlinux.org/
OS_VERSION=`uname -r`
;;
esac
@ -436,17 +436,17 @@ case $OS_NAME in
fi
;;
OpenWrt)
OS_URL=http://www.openwrt.org/
OS_URL=https://www.openwrt.org/
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
GETIFADDRS=1
;;
OpenEmbedded)
OS_URL=http://www.openembedded.org/
OS_URL=https://www.openembedded.org/
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
FW=iptables
;;
AstLinux)
OS_URL=http://www.astlinux.org/
OS_URL=https://www.astlinux-project.org/
echo "#define USE_IFACEWATCHER 1" >> ${CONFIGFILE}
FW=iptables
;;
@ -477,14 +477,14 @@ case $OS_NAME in
else
FW=ipfw
fi
OS_URL=http://developer.apple.com/macosx
OS_URL=https://developer.apple.com/macos/
;;
*)
echo "Unknown OS : $OS_NAME"
echo "Supported OS_NAME / --host-os values : "
# find all the cases in this "case $OS_NAME in" statement :
awk '/# OS Specific stuff/{if(b>0){b=0}else{b=NR}} (b>0&&NR>b){print}' "$0" | grep '^ [^\(]*)$' | grep -v '*)' | tr ')|' " \n" | tr -d '\t ' | sort | tr "\n" " " ; echo ""
echo "Please contact the author at http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/."
echo "Please contact the author at https://miniupnp.tuxfamily.org/ or http://miniupnp.free.fr/."
exit 1
;;
esac