Commit Graph

51 Commits

Author SHA1 Message Date
Leonid Pliushch 253dd58201
fix(main/dropbear): don't handle motd internally
MOTD will be shown by Termux login utility.

Fixes https://github.com/termux/termux-packages/issues/16684
2023-05-22 23:24:31 +03:00
Tee KOBAYASHI 1f96f22189 dropbear: Bump to 2022.83 2022-11-15 12:23:07 +00:00
Tee KOBAYASHI b5565a351b dropbear: Bump to 2022.82 2022-10-11 00:29:07 +09:00
Tee KOBAYASHI f8e833c90b dropbear: Suggest openssh-sftp-server 2022-04-19 21:35:19 +09:00
Tee KOBAYASHI b84034eb0e dropbear: Do not allow login if login name is NULL 2021-12-19 11:56:50 +02:00
Tee KOBAYASHI a016a0d6ae dropbear: Do not use `getpwnam()` 2021-12-19 11:56:50 +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 253c1f0896 dropbear: don't check for "multiple usernames"
Issue described here https://www.reddit.com/r/termux/comments/jqbg2g/termux_dropbear_ssh_server_not_working/

However I was not able to reproduce it.
2020-11-09 15:03:03 +02:00
Henrik Grimler e3247d0fca dropbear: update to 2020.81 2020-11-04 21:13:02 +01:00
Henrik Grimler ba2c72a1e7 dropbear: update to 2020.80 2020-07-20 21:36:23 +02:00
Leonid Pliushch 6b6b0b0097 dropbear: bump revision 2020-07-09 01:10:30 +03:00
Leonid Pliushch 870616573c dropbear: remove /bin/applets from PATH 2020-07-09 01:10:21 +03:00
Henrik Grimler dcb926abd4 Copy LICENSE file for some licenses instead of using generic one (#5478)
* termux-licenses: remove licenses that contain copyright information

These licenses cannot be taken from the common termux-licenses package as the copyright information needs to be distributed with the package as well.

271 packages in the main repository needs to be rebuilt after this change.

* termux_step_install_license: remove duplicated comment

* Bump packages that has a license with copyright information

We need to include this copyright information in the package so need
to rebuild them now that termux_step_install_license has been
modified.

The affected licenses are: MIT, ISC, PythonPL, Openfont-1.1, ZLIB,
Libpng, BSD, BSD 2-Clause, BSD 3-Clause.

* zlib: extract license file from zlib.h

* xorgproto: include all individual license files in package

* libgcrypt: include LICENSE file in package

It contains some copyright information so needs to be included in package

* libcrypt: add a dummy BSD 2-Clause license

According to homepage it is suppose to be BSD 2-Clause, but original
project did not include a license file

* libandroid-spawn: add LICENSE file to package

* libandroid-glob: add license file to package

* licenses: allow for comma separated TERMUX_PKG_LICENSE_FILE

%ci:no-build

* libicu: fix so that termux_step_install_license finds license file

%ci:no-build

* termux_step_install_license: check for license file as "License"

%ci:no-build

* libtiff: specify TERMUX_PKG_LICENSE_FILE

%ci:no-build

* asciidoctor: install license to standard location

* krb5: specify license file

* libdb: specify path to license file

%ci:no-build

* libprotobuf: specify path to license file

* darkhttpd: extract license file from darkhttpd.c

* w3m: ensure host libraries are not picked up

* w3m: extract LICENSE file from dock/README

* liblua{,52}: extract license files from doc/readme.html

* termux_step_install_license: look for License.txt as well

* dart: specify path to LICENSE file

* nim: specify license file

* runit: specify license file

* termux_step_install_license: look for LICENSE.TXT as well

* ossp-uuid: extract LICENSE from README

* pigz: extract LICENSE from pigz.c

* ttyrec: extract LICENSE from ttyrec.c

%ci:no-build

* bmon: specify license files

Most of the source files are licensed under MIT, it is not clear (to me) which
parts that are licensed under BSD 2-Clause.

%ci:no-build

* wordgrinder: specify license files

* fdupes: add LICENSE

* autossh: add LICENSE patch

* cmake: specify LICENSE file

* dos2unix: specify LICENSE file

* gnuplot: specify LICENSE file

* termux_step_install_license: look for variants of "copyright" also

* picolisp: specify LICENSE file

* lua-lpeg: extract license file

* tidy: specify license file

* gflags: specify LICENSE file

* timewarrior: fix src url

It seems to have been changed.

* postgresql: specify license file

* ttyrec: fix license patch header

* fossil: specify license file

* fmt: specify license file

* i2pd: specify license file

* leptonica: specify license file

* imgflo: add license file patch

* ired: add license file from ired github repo

* libzen: specify license file

* libmediainfo: specify license file

* mediainfo: specify license file

* tty-clock: add license patch

* samefile: add license patch

* quickjs: add license patch

* docbook-xml: add LICENSE patch

* docbook-xsl: specify LICENSE files

* gnuplot: configure with --without-latex

* timewarrior: add libshared to SRCURL as well

The non-release archives does not contain gitsubmodules so we need to
download it manually.

* restic: switch back to using 0.9.6 archive

* dart: revert revision bump

dart's SDK does not fully support python3 yet, and trying to solve
that is not entirely trivial. We save the dart bump (and upgrade to
2.8.4) for another day.

%ci:no-build
2020-07-07 18:45:45 +02:00
Henrik Grimler f8f9a21ebf dropbear: update to 2020.79 2020-06-23 21:32:59 +02:00
Leonid Pliushch 5123b0cffa fix formatting of some build.sh 2020-01-13 03:00:07 +02:00
Leonid Pliushch c352216c63 packages: standardize values of several control variables for build.sh
Variables

 TERMUX_PKG_PLATFORM_INDEPENDENT
 TERMUX_DEBUG
 TERMUX_PKG_HAS_DEBUG
 TERMUX_PKG_ESSENTIAL
 TERMUX_SUBPKG_ESSENTIAL
 TERMUX_PKG_NO_STATICSPLIT
 TERMUX_PKG_BUILD_IN_SRC
 TERMUX_PKG_FORCE_CMAKE
 TERMUX_PKG_HOSTBUILD

should not accept arbitrary values for marking them "enabled". Instead
they should accept boolean values which makes them easier to handle and
also makes their meaning clear.

build-package.sh should make decision based on variable's value but not on
whether it is set or empty.

%ci:no-build
2019-08-12 18:49:13 +03:00
Leonid Pliushch 1759dfe5e2 dropbear: do not link binaries statically 2019-07-29 18:45:22 +03:00
Leonid Pliushch 0f05595ff9 dropbear: depend on zlib 2019-07-29 18:09:12 +03:00
Fredrik Fornwall d7b7a3cdee dropbear: Update from 2019.77 to 2019.78 2019-03-30 00:38:51 +01:00
Fredrik Fornwall 994d993472 dropbear: Update from 2018.76 to 2019.77 2019-03-25 00:03:23 +01:00
Leonid Pliushch c9b80cf42d libutil: remove package - replaced by libc from Android 7 or newer 2019-03-10 15:42:58 +02:00
Wetitpig d50c847f11 Shell script compliance 2019-02-15 18:01:09 +02:00
Wetitpig 5f8864c10d Improve formatting of parantheses for functions 2019-02-09 21:06:31 +02:00
Leonid Pliushch 6a3865aa08 fix licenses where possible
Some packages have license set to "custom" and this
should be fixed.
2019-01-21 17:17:53 +02:00
Leonid Pliushch 361d8c519f [incomplete] set licenses for packages 2019-01-20 22:41:50 +01:00
Fredrik Fornwall 759396912e dropbear: Fix duplicated TERMUX_PKG_DEPENDS assignment 2018-11-23 02:20:40 +01:00
Leonid Pliushch bb7dcf52c4 dropbear: enable progress information for utility 'scp' 2018-11-23 00:33:02 +01:00
Leonid Pliushch 0c79d1cc56 dropbear: enable password auth 2018-11-23 00:33:02 +01:00
Leonid Pliushch 6d33f94a5f fix packages that require getpass()
Changed packages:

  * alpine
  * dropbear
  * emacs
  * isync
  * lftp
  * msmtp
  * newsboat
  * rsync
  * screen
  * texlive-bin
  * unrar
  * w3m
2018-09-11 00:55:00 +02:00
Henrik Grimler d403a32391 dropbear: remove no longer needed debug patch 2018-08-13 22:13:09 +02:00
Leonid Pliushch c678bf0b4c dropbear: provide command 'ssh' 2018-06-21 22:00:26 +02:00
Henrik Grimler c1b82abd09 Add fixes for debug builds (#2296)
* build-package.sh: add possibility for debug patches and TERMUX_PKG_HAS_DEBUG

Setting TERMUX_PKG_HAS_DEBUG=no disables attempt to build debug build of
package.
Useful for example if a debug build doesn't make sense, as for python-packages
and texlive.

* aapt: skip D_FORTIFY_SOURCE=2 for libandroid-cutils when doing debug build

* lftp: skip D_FORTIFY_SOURCE=2 for debug build

* libflac: don't use -g3 for debug build

Configure script removes it otherwise.

* nano: skip -D_FORTIFY_SOURCE=2 for debug build

* vifm: skip -D_FORTIFY_SOURCE=2 for debug build

* mc: skip -D_FORTIFY_SOURCE=2 for debug build

* dropbear: add __attribute__((overloadable)) to XMEMSET and XMEMCPY if debug

* gdb: add __attribute__((overloadable)) to strchr if debug

* gnuit: add __attribute__((overloadable)) to strchr and strcpy if debug

* gperf: add __attribute__((overloadable)) to strlen if debug

* inetutils: add __attribute__((overloadable)) to strrchr and strchr if debug

* readline: add __attribute__((overloadable)) to strchr if debug

* tsocks: add __attribute__((overloadable)) to poll if debug

* units: add __attribute__((overloadable)) to strchr if debug

* liblua: fix bug in loslib.c that emerged in debug build

Use strncpy instead of strcpy.
Original error message:
loslib.c:169:3: error: 'strcpy' called with string bigger than buffer
  lua_tmpnam(buff, err);
  ^
loslib.c:122:37: note: expanded from macro 'lua_tmpnam'
       strcpy(b, LUA_TMPNAMTEMPLATE); \
                                   ^

* alpine: include our getpass.h in imap's mtest.c to declare getpass

Debug build complained about the previous implicit declaration.

* nginx: use --with-debug instead of --debug

* cboard: skip -D_FORTIFY_SOURCE=2 for debug build

* gettext: add __attribute__((overloadable)) to getcwd if debug

* oathtool: skip -D_FORTIFY_SOURCE=2 for debug build

* php: add __attribute__((overloadable)) to strlcpy and strlcat if debug

* expect: add __attribute__((overloadable)) to strchr if debug

* texlive: set TERMUX_PKG_HAS_DEBUG=no

* asciinema: set TERMUX_PKG_HAS_DEBUG=no

* libllvm: set TERMUX_PKG_HAS_DEBUG=no

Debug build fails with:
home/builder/.termux-build/libllvm/src/lib/Support/Unix/Path.inc:740:19: error: no matching function for call to 'RetryAfterSignal'                                                                                                      if ((ResultFD = sys::RetryAfterSignal(-1, open, P.begin(), OpenFlags)) < 0)

* build-package.sh: set TERMUX_PKG_REPLACES=package if debug build

Hopefully allows us to install debug packages without breaking dependecies.

Should be looked over and be made more similar to how debian does this in any case

* Update build.sh
2018-06-13 02:12:36 +02:00
Vishal Biswas 160d3aeb06 update ndk to 17 and switch some packages to clang build (#2415)
* update ndk to 17

* bump NDK version in setup-android script

* libnl: fix for ndk r17

* libpixman: use clang's __builtin_shufflevector instead of __builtin_shuffle (#1)

Required to make package build with ndk17.

* fix as for arm

* ndk17 still uses ld.bfd on aarch64

* use -fno-integrated-as for clang only

* glib: remove patch unnecessary after ndk17

* torsocks: remove unneeded patch after ndk17

* subversion: fix build as clang++ now errors out for mismatched flags

* libpulseaudio: fix build with ndk17

https://github.com/termux/termux-packages/pull/2415#issuecomment-388296684

* gst-plugins-good: disable video4linux2

ioctl is defined as __overloadable in ndk17 headers which
  conflicts with v4l2object's member ioctl

* libzmq: disable Werror to build with ndk17

* ltrace: hardcode symbol not available in ndk17

* busybox: build with clang for all arches except arm

* dropbear: build with clang instead of gcc

* gnupg: build with clang instead of gcc

* openssl: use clang for all arches except arm

* picolisp: build with clang instead of gcc

* valgrind: use clang on all arches except aarch64

* Revert "gst-plugins-good: disable video4linux2"

This reverts commit 43850b81cc.
Already applied on base branch.

* libllvm: use default arm triple
2018-05-27 14:55:20 +02:00
Fredrik Fornwall 906659a06b dropbear: Add back scp
Make openssh conflict with dropbear as it also contains scp.
2018-04-23 01:37:15 +02:00
Fredrik Fornwall cb73157041 dropbear: Do not build scp
Building scp as part of dropbear causes it to conflict with openssh.
2018-04-22 23:39:49 +02:00
Leonid Plyushch c4061e081f dropbear: update to 2018.76 (#2356)
* dropbear: update to 2018.76

* dropbear: fix hardcoded paths

* dropbear: enable scp
2018-04-22 21:22:48 +02:00
Fredrik Fornwall b310956fb1 dropbear: Fix path to sftp-server (fixes #2059) 2018-01-24 11:03:11 +01:00
its-pointless c2a0bc2bab put shebang in scripts 2017-08-17 00:26:27 +02:00
Fredrik Fornwall 7f77886824 dropbear: Patch away hard link usage
Fixes #1082.
2017-06-14 00:02:36 +02:00
Fredrik Fornwall 6deb0abec1 dropbear: Update from 2016.74 to 2017.75 2017-05-23 00:13:15 +02:00
Fredrik Fornwall b8352277e3 Use more source checksums 2017-03-04 21:54:30 +01:00
Fredrik Fornwall cc8e46c852 dropbear: Fix src url and update to 2016.74 2016-08-14 07:21:37 -04:00
Fredrik Fornwall bb27a0ec42 Various package updates
Many of them cascading from the update of glib.
2016-05-04 08:54:30 -04:00
Fredrik Fornwall 688f6133e7 dropbear: Use working tar url 2016-01-04 22:17:18 -05:00
Fredrik Fornwall 31d77226ca dropbear: Switch back to main site 2015-12-15 05:25:00 -05:00
Fredrik Fornwall 651173d642 dropbear: Update from 2015.68 to 2015.71 2015-12-03 11:50:40 -05:00
Fredrik Fornwall 09ede9b077 Rebuild some packages and fix dependencies 2015-11-08 02:23:57 -05:00
Fredrik Fornwall 8bf3f3f075 Minor version bumps 2015-11-08 01:02:27 -05:00
Fredrik Fornwall 02b55df699 Use bash as login shell by default 2015-07-30 19:47:00 -04:00
Fredrik Fornwall 0eb41b83a7 Switch over to mirror for dropbear 2015-06-12 20:47:12 -04:00