Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonid Pliushch committed Sep 9, 2018
0 parents commit c2c29a4
Show file tree
Hide file tree
Showing 520 changed files with 286,384 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve

---

<!-- Important note: Refusing to provide needed information may result in issue closing. -->

**Problem description**
A clear and concise description of what the problem is. You may post screenshots in addition to description.

**Steps to reproduce**
Steps to reproduce the behavior. If problem is related to command line programs, please post all necessary commands to reproduce the issue or even better - attach the script.

**Expected behavior**
A clear and concise description of what you expected to happen.

**Additional information**
Post output of command `termux-info`.

Depending on problem, additional information may be requested:

1. Android warning/error log: `logcat -d "*:W"`.
2. Output of strace: `strace -fv -s 2048 -o strace.log {program name}`.
3. If program write it's own log files, you may need to attach them.
14 changes: 14 additions & 0 deletions .github/ISSUE_TEMPLATE/package-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
name: Package request
about: Suggest us a new package

---

<!-- Important note: If you don't provide information 'why this package is needed' then it's importance will be determined by repository owner ;) -->

**Package description**
Describe what this package do and why it should be available.

**Link to home page and sources**
1. Home page:
2. Source code:
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Termux X11 Packages

Here are located build scripts and patches for X11 packages for Termux.

To use X11-enabled programs, you need to install [VNC Viewer](https://play.google.com/store/apps/details?id=com.realvnc.viewer.android) or [XServer XSDL](https://play.google.com/store/apps/details?id=x.org.server). If launching program from terminal, make sure that environment variable 'DISPLAY' is set to correct value, e.g. `export DISPLAY=:1` when using TigerVNC or `export DISPLAY=127.0.0.1:0` when XServer XSDL.

## External links

* Termux home page: https://termux.com/
* Termux Wiki: https://wiki.termux.com/wiki/Main_Page
* Termux App: https://github.com/termux/termux-app
* Termux Packages: https://github.com/termux/termux-packages
280 changes: 280 additions & 0 deletions disabled-packages/libseccomp/0001-arch-add-the-statx-syscall.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,280 @@
From 4793ea990ea80ee26ed63e2a20723fdb417abf5b Mon Sep 17 00:00:00 2001
From: Tobias Klauser <tklauser@distanz.ch>
Date: Fri, 20 Oct 2017 09:39:40 +0200
Subject: [PATCH] arch: add the statx syscall

Fixes #88

Removed snipped for parisc architecture, which was not available
in version 2.3.2.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
[PM: fixed the incorrect x32 definition]
Signed-off-by: Paul Moore <paul@paul-moore.com>
---
src/arch-aarch64-syscalls.c | 3 ++-
src/arch-arm-syscalls.c | 3 ++-
src/arch-mips-syscalls.c | 3 ++-
src/arch-mips64-syscalls.c | 3 ++-
src/arch-mips64n32-syscalls.c | 3 ++-
src/arch-ppc-syscalls.c | 3 ++-
src/arch-ppc64-syscalls.c | 3 ++-
src/arch-s390-syscalls.c | 3 ++-
src/arch-s390x-syscalls.c | 3 ++-
src/arch-x32-syscalls.c | 3 ++-
src/arch-x86-syscalls.c | 3 ++-
src/arch-x86_64-syscalls.c | 3 ++-
13 files changed, 26 insertions(+), 13 deletions(-)

diff --git a/src/arch-aarch64-syscalls.c b/src/arch-aarch64-syscalls.c
index d907182..157aedc 100644
--- a/src/arch-aarch64-syscalls.c
+++ b/src/arch-aarch64-syscalls.c
@@ -26,7 +26,7 @@
#include "arch.h"
#include "arch-aarch64.h"

-/* NOTE: based on Linux 4.10-rc6+ */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def aarch64_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", __PNR__newselect },
@@ -392,6 +392,7 @@ const struct arch_syscall_def aarch64_syscall_table[] = { \
{ "stat64", __PNR_stat64 },
{ "statfs", 43 },
{ "statfs64", __PNR_statfs64 },
+ { "statx", 291 },
{ "stime", __PNR_stime },
{ "stty", __PNR_stty },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-arm-syscalls.c b/src/arch-arm-syscalls.c
index 6f40caa..43e2cc5 100644
--- a/src/arch-arm-syscalls.c
+++ b/src/arch-arm-syscalls.c
@@ -37,7 +37,7 @@
#define __SCMP_NR_BASE __SCMP_NR_OABI_SYSCALL_BASE
#endif

-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def arm_syscall_table[] = { \
/* NOTE: arm_sync_file_range() and sync_file_range2() share values */
{ "_llseek", (__SCMP_NR_BASE + 140) },
@@ -404,6 +404,7 @@ const struct arch_syscall_def arm_syscall_table[] = { \
{ "stat64", (__SCMP_NR_BASE + 195) },
{ "statfs", (__SCMP_NR_BASE + 99) },
{ "statfs64", (__SCMP_NR_BASE + 266) },
+ { "statx", (__SCMP_NR_BASE + 397) },
{ "stime", __PNR_stime },
{ "stty", __PNR_stty },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-mips-syscalls.c b/src/arch-mips-syscalls.c
index e53f565..a5264c8 100644
--- a/src/arch-mips-syscalls.c
+++ b/src/arch-mips-syscalls.c
@@ -30,7 +30,7 @@
/* O32 ABI */
#define __SCMP_NR_BASE 4000

-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def mips_syscall_table[] = { \
{ "_llseek", (__SCMP_NR_BASE + 140) },
{ "_newselect", (__SCMP_NR_BASE + 142) },
@@ -396,6 +396,7 @@ const struct arch_syscall_def mips_syscall_table[] = { \
{ "stat64", (__SCMP_NR_BASE + 213) },
{ "statfs", (__SCMP_NR_BASE + 99) },
{ "statfs64", (__SCMP_NR_BASE + 255) },
+ { "statx", (__SCMP_NR_BASE + 366) },
{ "stime", (__SCMP_NR_BASE + 25) },
{ "stty", (__SCMP_NR_BASE + 31) },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-mips64-syscalls.c b/src/arch-mips64-syscalls.c
index 248acaf..bc16b1d 100644
--- a/src/arch-mips64-syscalls.c
+++ b/src/arch-mips64-syscalls.c
@@ -30,7 +30,7 @@
/* 64 ABI */
#define __SCMP_NR_BASE 5000

-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def mips64_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", (__SCMP_NR_BASE + 22) },
@@ -396,6 +396,7 @@ const struct arch_syscall_def mips64_syscall_table[] = { \
{ "stat64", __PNR_stat64 },
{ "statfs", (__SCMP_NR_BASE + 134) },
{ "statfs64", __PNR_statfs64 },
+ { "statx", (__SCMP_NR_BASE + 326) },
{ "stime", __PNR_stime },
{ "stty", __PNR_stty },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-mips64n32-syscalls.c b/src/arch-mips64n32-syscalls.c
index 1525f8b..fa89bc2 100644
--- a/src/arch-mips64n32-syscalls.c
+++ b/src/arch-mips64n32-syscalls.c
@@ -30,7 +30,7 @@
/* N32 ABI */
#define __SCMP_NR_BASE 6000

-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def mips64n32_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", (__SCMP_NR_BASE + 22) },
@@ -396,6 +396,7 @@ const struct arch_syscall_def mips64n32_syscall_table[] = { \
{ "stat64", __PNR_stat64 },
{ "statfs", (__SCMP_NR_BASE + 134) },
{ "statfs64", (__SCMP_NR_BASE + 217) },
+ { "statx", (__SCMP_NR_BASE + 330) },
{ "stime", __PNR_stime },
{ "stty", __PNR_stty },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-ppc-syscalls.c b/src/arch-ppc-syscalls.c
index c117da9..fe0cdfb 100644
--- a/src/arch-ppc-syscalls.c
+++ b/src/arch-ppc-syscalls.c
@@ -27,7 +27,7 @@
#include "arch.h"
#include "arch-ppc.h"

-/* NOTE: based on Linux 4.10-rc6+ */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def ppc_syscall_table[] = { \
{ "_llseek", 140 },
{ "_newselect", 142 },
@@ -393,6 +393,7 @@ const struct arch_syscall_def ppc_syscall_table[] = { \
{ "stat64", 195 },
{ "statfs", 99 },
{ "statfs64", 252 },
+ { "statx", 383},
{ "stime", 25 },
{ "stty", 31 },
{ "subpage_prot", 310 },
diff --git a/src/arch-ppc64-syscalls.c b/src/arch-ppc64-syscalls.c
index bbd5876..dc09610 100644
--- a/src/arch-ppc64-syscalls.c
+++ b/src/arch-ppc64-syscalls.c
@@ -27,7 +27,7 @@
#include "arch.h"
#include "arch-ppc64.h"

-/* NOTE: based on Linux 4.10-rc6+ */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def ppc64_syscall_table[] = { \
{ "_llseek", 140 },
{ "_newselect", 142 },
@@ -393,6 +393,7 @@ const struct arch_syscall_def ppc64_syscall_table[] = { \
{ "stat64", __PNR_stat64 },
{ "statfs", 99 },
{ "statfs64", 252 },
+ { "statx", 383},
{ "stime", 25 },
{ "stty", 31 },
{ "subpage_prot", 310 },
diff --git a/src/arch-s390-syscalls.c b/src/arch-s390-syscalls.c
index 959b42f..8a6cecc 100644
--- a/src/arch-s390-syscalls.c
+++ b/src/arch-s390-syscalls.c
@@ -10,7 +10,7 @@
#include "arch.h"
#include "arch-s390.h"

-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def s390_syscall_table[] = { \
{ "_llseek", 140 },
{ "_newselect", 142 },
@@ -376,6 +376,7 @@ const struct arch_syscall_def s390_syscall_table[] = { \
{ "stat64", 195 },
{ "statfs", 99 },
{ "statfs64", 265 },
+ { "statx", 379 },
{ "stime", 25 },
{ "stty", __PNR_stty },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-s390x-syscalls.c b/src/arch-s390x-syscalls.c
index f6a2759..728dfc4 100644
--- a/src/arch-s390x-syscalls.c
+++ b/src/arch-s390x-syscalls.c
@@ -10,7 +10,7 @@
#include "arch.h"
#include "arch-s390x.h"

-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def s390x_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", __PNR__newselect },
@@ -376,6 +376,7 @@ const struct arch_syscall_def s390x_syscall_table[] = { \
{ "stat64", __PNR_stat64 },
{ "statfs", 99 },
{ "statfs64", 265 },
+ { "statx", 379 },
{ "stime", __PNR_stime },
{ "stty", __PNR_stty },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-x32-syscalls.c b/src/arch-x32-syscalls.c
index 64e180a..bb3e077 100644
--- a/src/arch-x32-syscalls.c
+++ b/src/arch-x32-syscalls.c
@@ -26,7 +26,7 @@
#include "arch.h"
#include "arch-x32.h"

-/* NOTE: based on Linux 4.5-rc4 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def x32_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", __PNR__newselect },
@@ -392,6 +392,7 @@ const struct arch_syscall_def x32_syscall_table[] = { \
{ "stat64", __PNR_stat64 },
{ "statfs", (X32_SYSCALL_BIT + 137) },
{ "statfs64", __PNR_statfs64 },
+ { "statx", (X32_SYSCALL_BIT + 332) },
{ "stime", __PNR_stime },
{ "stty", __PNR_stty },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-x86-syscalls.c b/src/arch-x86-syscalls.c
index 5443095..81a52a3 100644
--- a/src/arch-x86-syscalls.c
+++ b/src/arch-x86-syscalls.c
@@ -26,7 +26,7 @@
#include "arch.h"
#include "arch-x86.h"

-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def x86_syscall_table[] = { \
{ "_llseek", 140 },
{ "_newselect", 142 },
@@ -392,6 +392,7 @@ const struct arch_syscall_def x86_syscall_table[] = { \
{ "stat64", 195 },
{ "statfs", 99 },
{ "statfs64", 268 },
+ { "statx", 383 },
{ "stime", 25 },
{ "stty", 31 },
{ "subpage_prot", __PNR_subpage_prot },
diff --git a/src/arch-x86_64-syscalls.c b/src/arch-x86_64-syscalls.c
index 6c389b8..1da2530 100644
--- a/src/arch-x86_64-syscalls.c
+++ b/src/arch-x86_64-syscalls.c
@@ -26,7 +26,7 @@
#include "arch.h"
#include "arch-x86_64.h"

-/* NOTE: based on Linux 4.9 */
+/* NOTE: based on Linux 4.14 */
const struct arch_syscall_def x86_64_syscall_table[] = { \
{ "_llseek", __PNR__llseek },
{ "_newselect", __PNR__newselect },
@@ -392,6 +392,7 @@ const struct arch_syscall_def x86_64_syscall_table[] = { \
{ "stat64", __PNR_stat64 },
{ "statfs", 137 },
{ "statfs64", __PNR_statfs64 },
+ { "statx", 332 },
{ "stime", __PNR_stime },
{ "stty", __PNR_stty },
{ "subpage_prot", __PNR_subpage_prot },
8 changes: 8 additions & 0 deletions disabled-packages/libseccomp/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"

TERMUX_PKG_HOMEPAGE=https://github.com/seccomp/libseccomp
TERMUX_PKG_DESCRIPTION="Enhanced seccomp library"
TERMUX_PKG_VERSION=2.3.2
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://github.com/seccomp/libseccomp/releases/download/v${TERMUX_PKG_VERSION}/libseccomp-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=3ddc8c037956c0a5ac19664ece4194743f59e1ccd4adde848f4f0dae7f77bca1
9 changes: 9 additions & 0 deletions disabled-packages/libssh2/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
TERMUX_PKG_MAINTAINER="Leonid Plyushch <leonid.plyushch@gmail.com> @xeffyr"

TERMUX_PKG_HOMEPAGE=https://www.libssh2.org
TERMUX_PKG_DESCRIPTION="A library implementing the SSH2 protocol as defined by Internet Drafts"
TERMUX_PKG_VERSION=1.8.0
TERMUX_PKG_REVISION=2
TERMUX_PKG_SRCURL=https://www.libssh2.org/download/libssh2-${TERMUX_PKG_VERSION}.tar.gz
TERMUX_PKG_SHA256=39f34e2f6835f4b992cafe8625073a88e5a28ba78f83e8099610a7b3af4676d4
TERMUX_PKG_DEPENDS="openssl"
Loading

0 comments on commit c2c29a4

Please sign in to comment.