Commit Graph

60 Commits

Author SHA1 Message Date
Fredrik Fornwall
14cf6763fa openssh: Mark ssh(d)_config as configuration
This avoids silently overwriting any local changes. Fixes #2866.
2018-09-20 23:08:52 +02:00
Fredrik Fornwall
540102f2eb openssl: Update from 1.0.2 to 1.1.1 (#2775) 2018-09-11 22:43:19 +02:00
Fredrik Fornwall
88d13a5771 openssh: Update from 7.7p1 to 7.8p1 2018-08-25 23:37:40 +02:00
Fredrik Fornwall
4802979213 openssh: Bump revision after set(res)gid patch 2018-08-09 23:28:37 +02:00
Gerben Meijer
62d02fa725 Don't use setresgid or setgid in ssh-agent
Fixes it for Android Pie, see #2714
2018-08-09 23:03:48 +02:00
Fredrik Fornwall
2c89aec36d openssh: Bump revision after 'SendEnv LANG' 2018-07-03 13:26:49 +02:00
Lauri Tirkkonen
1f2f1df33c openssh: SendEnv LANG by default
many distributions use "AcceptEnv LANG LC_*" by default for sshd. this
fixes UTF-8 output from such servers that do not happen to set LANG or
LC_CTYPE to UTF-8 by default server-side (termux env already sets
LANG=en_US.UTF-8)
2018-07-03 11:56:47 +02:00
Tom Yan
9fd6e5b5f4 make PS1 dynamic and shell-specific
PS1 is not supposed to be an environment variable (i.e. will not
be listed in `printenv` but only in `set`). Its value should also
be shell-specific.

With this commit we can stop exporting a static PS1 as env var on
the java side.

The prompt would now indicate whether the current user is root.
2018-06-22 01:11:37 +02:00
Tom Yan
a263cc6bc3 openssh: keep TMPDIR and PS1 2018-05-14 18:07:42 +02:00
Fredrik Fornwall
e18c260e49 dropbear: Add back scp
Make openssh conflict with dropbear as it also contains scp.
2018-04-23 01:37:15 +02:00
Fredrik Fornwall
1ff10e5c36 openssh: Update from 7.6 to 7.7 2018-04-04 00:09:47 +02:00
Fredrik Fornwall
6eeaf55131 Avoid hard-coded paths in some more places
The plan is to allow other apps to build packages by changing the
prefix.
2017-11-16 23:37:57 +01:00
Leonid Plyushch
bbfa4e7a8b openssh: update to 7.6p1 (#1613) 2017-10-05 08:32:07 +02:00
Fredrik Fornwall
da5a358623 openssh: Configure with --with-mantype=man 2017-09-20 20:34:36 +02:00
Fredrik Fornwall
87566986d2 openssh: Verify that we have packaged up man pages 2017-09-20 01:49:50 +02:00
Fredrik Fornwall
683caaa166 openssh: Rebuild to get man pages (#1538) 2017-09-20 01:37:41 +02:00
Fredrik Fornwall
8773737eac openssh: Remove showing motd 2017-09-17 21:03:46 +02:00
Fredrik Fornwall
9c0b9e8910 openssh: Bump revision after getpwd() patch update 2017-09-17 15:55:59 +02:00
Leonid Plyushch
7504beccfd openssh: fix hardcoded paths 2017-09-14 16:20:41 +02:00
its-pointless
aa605e8901 put shebang in scripts 2017-08-17 00:26:27 +02:00
Fredrik Fornwall
68db79daf2 openssh: Bump revision after package changes 2017-08-11 13:31:20 +02:00
deed02392
d8425dcd52 Set up home structure for authorized_keys
Since password auth is disabled by default, we depend on keys in our home dir but they're not created for us and the perms are wrong by default. This commit sets it up correctly for the user to simply add their key to the empty authorized_keys file
2017-08-11 13:19:00 +02:00
Fredrik Fornwall
2173f7301d Drop -D_FILE_OFFSET_BITS=64 support for now
32-bit android uses 32-bit off_t by default. When building with
-D_FILE_OFFSET_BITS=64 with unified headers off_t are promoted
to 64-bit, but there are bugs in the toolchain and spotty support
for it in the platform (not all functions are available until
android-24, and the platform zlib is compiled with 32-bit off_t).

Also, unless every library&program is rebuilt with 64-bit off_t,
including user-built ones, we risk a mismatch between programs and
libraries which can cause serious (but sometimes subtle) runtime
failures.

As -D_FILE_OFFSET_BITS=64 is not that important for most users
(with mariadb requiring it as an exception), we drop the support
for now by patching it away in <sys/cdefs.h>.
2017-07-07 03:52:46 +02:00
Fredrik Fornwall
bfd13ca3dd openssh: Bump revision with unified headers
Fixes #902 as _FILE_OFFSET_BITS=64 is now supported in the unified
headers.
2017-07-03 01:28:56 +02:00
Fredrik Fornwall
c7ce60b78b openssh: Fix building with unified headers 2017-06-30 22:55:31 +02:00
Fredrik Fornwall
ca7699c169 Stand in srcdir for termux_step_pre_configure 2017-05-11 01:01:20 +02:00
Fredrik Fornwall
1ee955a142 openssh: Enable libedit in sftp 2017-04-17 23:03:46 +02:00
Fredrik Fornwall
b79434aa72 openssh: Disable privilege separation by patching
The UsePrivilegeSeparation option is no longer supported, so we
need to disable privilege separation by a code patch.
2017-03-24 00:14:08 +01:00
Fredrik Fornwall
cff3a76b91 openssh: Update from 7.4 to 7.5 2017-03-23 17:15:17 +01:00
Fredrik Fornwall
52192d2e5e ldns: Update from 1.6.17 to 1.7.0 2017-01-29 17:41:33 +01:00
Fredrik Fornwall
7b1f1bd35d build-package.sh: Cleanup a bit
- Put everything into shell functions.
- Start fixing shellcheck warnings.
- Run a hostbuild before setting up an android toolchain (fixes #657).

It was quite a hasty rewrite, so things could be broken. Let me know!
2017-01-05 20:37:45 -05:00
Fredrik Fornwall
a8b61adf91 openssh: Update from 7.3p1 to 7.4p1 2016-12-20 20:33:53 -05:00
Fredrik Fornwall
955627f667 openssh: Bump build revision, new source-ssh-agent 2016-11-20 16:06:52 -05:00
Fredrik Fornwall
2f5fc7139b openssh: Update the source-ssh-agent script 2016-10-28 16:50:39 -04:00
Fredrik Fornwall
7ce5638519 Cleanup of more packages 2016-09-03 18:45:08 -04:00
Fredrik Fornwall
e239964bac Make it possible to specify checksum for src 2016-08-24 06:34:43 -04:00
Fredrik Fornwall
fd2a269e6a openssh: Update from 7.2p2 to 7.3p1 2016-08-08 16:38:50 -04:00
Fredrik Fornwall
194d5509d7 openssh: Keep PREFIX environment variable 2016-07-04 18:15:00 -04:00
Fredrik Fornwall
7edb3deecb openssh: Retain LANG in sshd (closes #343) 2016-06-27 10:51:42 -04:00
Fredrik Fornwall
dd9da8b3ad openssh: Fix sshd env setup
The previous patched session.c just took the existing environment
and kept it. The new copies over a few specific variables needed
but otherwise does the normal setup.

Fixes #341 (TERM being ignored).
Fixes #290 (SSH_CONNECTION/SSH_CLIENT/SSH_TTY not setup).
Fixes https://github.com/termux/termux-app/issues/108 (SSH agent
forwarding not working).
2016-06-26 17:56:11 -04:00
Fredrik Fornwall
d8052afc19 openssh: Disable password auth in sshd_config
Password authentication is not supported, so no point in prompting
for a password.

See #315.
2016-06-13 09:19:43 -04:00
Fredrik Fornwall
98c7df17fe openssh: Do not try link(2) for sftp-server rename
Hard links are not supported on Android from 6.0 on.

Fixes #293.
2016-06-06 18:23:11 -04:00
Fredrik Fornwall
3e10e2182a openssh: Bump after paths.h ndk patch 2016-05-30 18:05:08 -04:00
Germán L. Osella Massa
1d9054468f Wrong _PATH_PRIVSEP_CHROOT_DIR: "/var/empty"
The default directory used for privilege separation is not inside the
Termux file system.
2016-05-12 16:01:56 -03:00
Fredrik Fornwall
24cdd7d1fc Build bash&openssh with the NDK r12 beta on i686
This allows exploring the Android N preview in the emulator a bit.
Fixes #223.
2016-04-22 20:00:34 -04:00
Fredrik Fornwall
ba991d9ad2 openssh: Update from 7.2p1 to 7.2p2 2016-03-12 15:42:31 -05:00
Fredrik Fornwall
8c37ff6bd0 openssh: Update from 7.1p2 to 7.2p1 2016-02-29 02:47:00 -05:00
Nicholas Penree
88a11b0e8a Enable SFTP subsystem in openssh package 2016-02-20 22:19:28 -05:00
Fredrik Fornwall
bfde043371 openssh: Update from 7.1p1 to 7.1p2 2016-01-14 18:37:43 -05:00
Fredrik Fornwall
b6cc859c74 openssh: Avoid linking to libutil 2015-12-19 18:01:04 -05:00