Commit Graph

68 Commits

Author SHA1 Message Date
Lucy Phipps 9294069374
bash: bump revision 2021-11-29 08:23:30 +00:00
Lucy Phipps ac21a02504
bash: bump revision 2021-11-29 08:00:39 +00:00
Lucinda May Phipps 15f9d29901
bash: update to 5.1.p12 2021-11-29 04:18:15 +00:00
Leonid Pliushch 7fb96d2ea2
bash: update to 5.1.8 2021-05-05 11:52:53 +00:00
Leonid Pliushch 96a05a7dfd
bash: update to 5.1.4 2021-01-07 13:57:54 +02:00
Leonid Pliushch fd66e2fe29
get rid of verify-prefix.patch.txt
Switching to a more "soft" solution which will be focused on apt only.

Apt will now send an application package name (com.termux) and prefix
(/data/data/com.termux/files/usr) as part of user-agent string. That
will allow to distinguish real Termux users from parties which download
our packages and binary-patching them for the custom prefix.

Note that this will disable user's possibility to set custom User-Agent
for apt.
2020-12-24 16:42:32 +02:00
Leonid Pliushch 37375312b9
explicitly set maintainer for each package
In issue https://github.com/termux/termux-packages/issues/6160 I have found
that community repo "its-pointless.github.io" specifies us as maintainer
for its packages. This is NOT TRUE and potentially misleads people using
these packages.

Now TERMUX_PKG_MAINTAINER will contain a default value which is neutral
and not specify maintainer. So all packages now have to override it to
the correct value.

[skip ci]
%ci:no-build
2020-12-20 15:16:34 +02:00
Leonid Pliushch b8f03e6ec4
bash: bump revision 2020-12-11 22:12:58 +02:00
Leonid Pliushch a50528e9af
bash: bump revision 2020-12-11 18:31:54 +02:00
Leonid Pliushch 51f499969e
bash: update to 5.1 2020-12-07 20:14:08 +00:00
Leonid Pliushch 7e89e130ce apply prefix verification patches again - now shouldn't cause crash 2020-09-28 02:54:13 +03:00
Leonid Pliushch a6102de687 Revert "add patches for prefix verification"
This reverts commit 2703e4f68f856bb816c695ab53118306ba8104a4.

https://github.com/termux/termux-packages/issues/5858 - seem to be buffer overflow...
2020-09-28 01:37:34 +03:00
Leonid Pliushch 9d92a7360c add patches for prefix verification - prevent use of prebuilt packages by third parties
Add a small stub which verifies whether /data/data/com.termux/files/usr is readable
into few important packages such like Bash or APT. If this check fails, e.g.
in case if binary was executed in program with different package name (non-Termux),
program will print warning and exit with error status immediately.

This should prevent use of prebuilt packages by third-party applications.

NOTE: for now it uses /data/data/com.termux/files/usr in reversed order to
prevent automatic "blind" patching with sed. Will replace with randomized
XOR-based variant in case if that measure won't be enough.
2020-09-28 00:10:00 +03:00
Henrik Grimler 46e46767fc bash: update to patch level 18 2020-07-20 21:22:34 +02:00
Leonid Pliushch b6aa249557 bash: bump revision 2020-07-09 01:08:27 +03:00
Leonid Pliushch d1a3bece8e bash: bump revision 2020-07-07 19:33:13 +03:00
Leonid Pliushch fc3fca79be bash: update to 5.0.17 2020-04-26 14:51:03 +03:00
Leonid Pliushch ac5f0c642b bash: update to 5.0.16 2020-02-10 13:08:55 +02:00
Fredrik Fornwall 8911a515d7 bash: Update from 5.0.9 to 5.0.11 2019-09-03 05:45:05 +02:00
Fredrik Fornwall 99fd365beb bash: Update from 5.0.7 to 5.0.9 2019-08-15 17:45:58 +02:00
Leonid Pliushch 76eaf460e2 bash: make "command-not-found" optional
Though, it will be pre-installed via bootstraps as previously.
Possible after changes to bashrc introduced in b45da7b8ba.

Related issue: https://github.com/termux/termux-packages/issues/661
2019-08-05 14:10:55 +03:00
Leonid Pliushch 6e70277fb3 no more develsplit + provide static libraries as separate package
%ci:no-build
2019-07-28 21:17:12 +03:00
Leonid Pliushch a997e982a2 bash: do not hardcode prefix/home paths
Use @TERMUX_PREFIX@ or @TERMUX_HOME@ where needed.
2019-07-22 02:23:55 +03:00
Leonid Pliushch 4832078d86 reformat build.sh for some packages
* Packages where dependencies were sorted are bumped.
2019-07-22 01:51:28 +03:00
Fredrik Fornwall 2250a82901 bash: Bump revision to get info page 2019-07-02 00:01:00 +02:00
Leonid Pliushch b98ffcf631 add libiconv to dependencies where needed 2019-05-05 21:29:36 +02:00
Fredrik Fornwall 58bd805aa7 bash: Update from 5.0.3 to 5.0.7 2019-04-23 10:20:45 +02:00
Leonid Pliushch 0fbc145a19 bash: update to 5.0.3 2019-03-20 03:47:54 +02:00
Fredrik Fornwall fbb213434b Keep update to bash 5 and readline 8 in sync 2019-02-27 22:42:13 +01:00
Leonid Pliushch b288f14069 bash: use system readline 2019-02-24 22:42:40 +02:00
Leonid Pliushch 5c9deb6879 bash: do build in src directory
Fixes:
/usr/bin/install: cannot stat '/home/builder/.termux-build/bash/build/y.tab.h': No such file or directory
2019-02-24 22:42:40 +02:00
Yuvraj Saxena 39e65b32bc bash: Update from 4.4 to 5.0
bash 5.0 is no longer in beta or alpha stage

Signed-off-by: Yuvraj Saxena <infectedx27@gmail.com>
2019-02-24 22:42:40 +02:00
Wetitpig 7ddcce5701 No backticks 2019-02-15 18:01:09 +02:00
Leonid Pliushch f2dcc0299f specify CONFFILES for bash, nano, resolv-conf, tmux
Prevent overwriting user's configuration files if package was upgraded.
2019-02-13 22:51:28 +01:00
Wetitpig 5f07ac4eb9 Change permissions 2019-02-09 21:06:31 +02:00
Wetitpig 5f8864c10d Improve formatting of parantheses for functions 2019-02-09 21:06:31 +02:00
Leonid Pliushch 361d8c519f [incomplete] set licenses for packages 2019-01-20 22:41:50 +01:00
Leonid Pliushch 9b9793327a bash: this core package should be essential 2018-10-20 20:43:24 +02:00
Fredrik Fornwall 658011cd00 bash and zsh: Bump revision after PS1 addition 2018-06-22 01:19:16 +02:00
Leonid Pliushch 2b877693b5 bash: fix default PATH 2018-06-22 00:45:29 +02:00
Henrik Grimler 71594b6ea5 Allow TERMUX_PKG_SRCURL and TERMUX_PKG_SHA256 to be arrays (#2506)
* build-package.sh: allow for arrays in TERMUX_PKG_{SRCURL,SHA256}

Packages that require several source archives can then set these parameters to
arrays instead of downloading them "manually" in termux_step_post_extract.

Downloaded files are extracted into subfolders in TERMUX_PKG_SRCDIR.

Tested for backward compatibility in a couple of packages and the combinations
tar + tar, zip + tar, tar + zip, zip + zip.

* perl: download perl-cross through TERMUX_PKG_SRCURL

* perl: remove $PREFIX/{lib/libperl.so,include/perl} before build

Otherwise building perl twice doesn't give the same results, symlinks are
messed up.

Also remove old remnant from when there was a Kid.pm.patch.

* bash: fix tiny typo

* ecj: remove hardcoded SHA256 and pkg version

* elfutils: download argp-standalone through TERMUX_PKG_SRCURL

* ldc: download all src archives through TERMUX_PKG_SRCURL

* libgc: download libatomic_ops through TERMUX_PKG_SRCURL

* libllvm: download all src archives through TERMUX_PKG_SRCURL

* linux-man-pages: download src archives through TERMUX_PKG_SRCURL

* ncurses: download all src archives through TERMUX_PKG_SRCURL

* pngquant: download lib sources through TERMUX_PKG_SRCURL

Use .zip for lib since the downloaded archives are otherwise both named
$TERMUX_PKG_VERSION.tar.gz and replace each other. This causes caching to
not work.
2018-06-13 02:15:26 +02:00
Fredrik Fornwall cce066fb41 bash: Update from 4.4.19 to 4.4.23 2018-06-04 00:56:14 +02:00
Fredrik Fornwall 5baa01d856 bash: Update from 4.4.18 to 4.4.19 2018-02-09 15:55:25 +01:00
Fredrik Fornwall 897f4b2260 bash: Update from 4.4.12 to 4.4.18 2018-02-01 11:02:05 +01:00
Fredrik Fornwall ce92cc4c5d Stand in srcdir for termux_step_pre_configure 2017-05-11 01:01:20 +02:00
Fredrik Fornwall 80f24036a0 Use more source checksums 2017-03-27 03:29:43 +02:00
Fredrik Fornwall 0e5edc8574 bash: Add source checksum 2017-02-05 14:18:24 +01:00
Fredrik Fornwall 6a15d2bb04 bash: Update from 4.4.10 to 4.4.12 2017-01-28 16:02:16 +01:00
Fredrik Fornwall 127f27e83d bash: Update from 4.4.5 to 4.4.10 2017-01-23 13:16:08 +01:00
Fredrik Fornwall 2b8761e6a3 bash: Use termux_download instead of curl directly 2017-01-11 02:07:47 -05:00