mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/boypt/openssh-deb.git
synced 2026-09-20 08:03:46 +08:00
- pullsrc.sh fetches debhelper/libdebhelper-perl 14.3 (pinned DEBHELPER_SIDPKG
in version.env, empty = auto-detect latest sid) into gitignored builddep/
- install_deps.sh installs builddep/*.deb and adds compat sed hacks for sid
debhelper >= 13.27: rewrite Dh_Lib.pm bucket 'cp --update=none' to '-n' on
coreutils < 9.3 (buster/bionic/bookworm), downgrade use v5.28 pragmas in
Dh_Lib.pm/dh_assistant for perl < 5.28, handle ${tmpdir} brace form in the
non-merged-usr hack; drop the dead sid-apt-source _DEBIAN_DEBHELPER
- Dockerfile.deps: BuildKit bind mounts instead of COPY (nothing in layers)
- CI deps-image build runs ./pullsrc.sh debhelper first to populate context
24 lines
1.3 KiB
Bash
24 lines
1.3 KiB
Bash
OPENSSLVER=3.5.8
|
|
OPENSSLMIR=https://github.com/openssl/openssl/releases/download/openssl-${OPENSSLVER}/
|
|
OPENSSLSRC=openssl-${OPENSSLVER}.tar.gz
|
|
|
|
DEBMIRROR=${APT_MIRROR:+http://${APT_MIRROR}/debian/}
|
|
DEBMIRROR=${DEBMIRROR:-http://deb.debian.org/debian/}
|
|
OPENSSH_SIDPKG=10.5p1-1
|
|
[[ -z $OPENSSH_SIDPKG ]] && \
|
|
OPENSSH_SIDPKG=$(wget -qO- http://deb.debian.org/debian/pool/main/o/openssh/ | grep -oP 'openssh_\K[0-9]+\.[0-9]+p[0-9]+-[0-9]+(?:~bpo[0-9]+(?:\+[0-9]+)?)?' | sort -V | tail -n 1)
|
|
# OPENSSH_SIDPKG=$(wget --no-check-certificate -qO- https://packages.debian.org/sid/openssh-server | sed -n '/vcurrent/s/ *<[^>]*> *//gp' | head -n1 | cut -d: -f2)
|
|
|
|
OPENSSHVER=$(echo $OPENSSH_SIDPKG|cut -d- -f1)
|
|
|
|
# debhelper .debs for old distros: pullsrc.sh downloads them on the host into
|
|
# builddep/, install_deps.sh installs them there (old distros cannot build the
|
|
# sid OpenSSH source with their own debhelper: dh-sequence-movetousr needs
|
|
# >= 13.11.7). The sid pool only keeps the current version, so bump this pin
|
|
# when it drifts; leave empty to auto-detect the latest from the pool.
|
|
DEBHELPER_SIDPKG=14.3
|
|
if [[ -z $DEBHELPER_SIDPKG ]]; then
|
|
DEBHELPER_SIDPKG=$(wget -qO- $DEBMIRROR/pool/main/d/debhelper/ | grep -oP 'debhelper_\K[0-9][0-9.]+(?=_all\.deb)' | sort -V | tail -n 1)
|
|
fi
|
|
|