termux-packages/packages/apt
Leonid Pliushch c061024982
apt: update patches
***

This commit contains further changes to user agent string in addition
to introduced in fd66e2fe29.

Now it will send installation prefix obtained by /proc/self/exe. It
should resist patching `apt` with sed or in other way. Reminding that
installation prefix provided in user agent http header is intended for
distinguishing Termux from derivatives.

Here are sample lines from my mirror logs showing usage of Termux repo
by third-party projects:
```
162.158.103.43 - - [21/Jan/2021:09:46:43 +0200] "GET /dists/stable/Release HTTP/1.1" 304 0 "-" "Termux-PKG/1.0 mirror-checker (termux-tools 0.104) Termux (pl.sviete.dom; install-prefix:/data/data/pl.sviete.dom/files/usr)"
162.158.210.8 - - [20/Jan/2021:06:24:54 +0200] "GET /dists/stable/InRelease HTTP/1.1" 404 146 "-" "Debian APT-HTTP/1.3 (2.1.15) Termux (vn.vhn.vsc; install-prefix:/data/data/vn.vhn.vsc/files/usr)"
162.158.210.142 - - [20/Jan/2021:06:24:54 +0200] "GET /dists/stable/Release.gpg HTTP/1.1" 304 0 "-" "Debian APT-HTTP/1.3 (2.1.15) Termux (vn.vhn.vsc; install-prefix:/data/data/vn.vhn.vsc/files/usr)"
```

***

CloudFlare firewall for termux.org and termux-mirror.ml hosts would be
adjusted to block all requests which do not have install-prefix set or
if the latter doesn't match one of the Termux.
2021-02-03 22:33:22 +02:00
..
man apt: add man pages 2019-09-23 20:37:00 +03:00
0000-cmake-fix.patch apt: fix patch 2020-12-11 18:11:51 +02:00
0001-no-macro-redef.patch apt: update to 2.1.11 2020-11-05 17:17:56 +02:00
0002-no-locales.patch apt: update to 2.1.11 2020-11-05 17:17:56 +02:00
0003-no-srv-records.patch apt: update patches 2021-02-03 22:33:22 +02:00
0004-no-hardcoded-paths.patch apt: update to 2.1.11 2020-11-05 17:17:56 +02:00
0005-http2-fix.patch apt: update to 2.1.11 2020-11-05 17:17:56 +02:00
0006-no-init-arch-tuple.patch apt: update to 2.1.11 2020-11-05 17:17:56 +02:00
0007-aptkey-no-root.patch apt: update to 2.1.11 2020-11-05 17:17:56 +02:00
0008-fix-function-args.patch apt: fix arguments for getsockopt causing errors on i686 2020-11-05 18:29:01 +02:00
0009-update-error-messages.patch apt: fix arguments for getsockopt causing errors on i686 2020-11-05 18:29:01 +02:00
0010-prevent-usage-as-root.patch apt: fix arguments for getsockopt causing errors on i686 2020-11-05 18:29:01 +02:00
0011-keep-downloaded-packages.patch apt: fix arguments for getsockopt causing errors on i686 2020-11-05 18:29:01 +02:00
0012-termux-id.patch apt: update patches 2021-02-03 22:33:22 +02:00
apt-ftparchive.subpackage.sh apt: add apt-ftparchive and libapt-pkg subpackages 2019-11-20 21:12:44 +01:00
apt-transport-tor.subpackage.sh apt: fix subpackage script 2019-08-20 14:50:17 +03:00
build.sh apt: update to 2.1.18 2021-02-03 21:08:41 +02:00
trusted.gpg