From 6d4615712031ac6def85102ff955d4926b28d086 Mon Sep 17 00:00:00 2001 From: Fredrik Fornwall Date: Fri, 4 Sep 2015 18:11:55 -0400 Subject: [PATCH] Add libtalloc and proot as disabled packages --- disabled-packages/libtalloc/build.sh | 43 +++++++++++++++++++++++++++ disabled-packages/proot/build.sh | 12 ++++++++ disabled-packages/proot/src-GNUmakefile.patch | 21 +++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 disabled-packages/libtalloc/build.sh create mode 100644 disabled-packages/proot/build.sh create mode 100644 disabled-packages/proot/src-GNUmakefile.patch diff --git a/disabled-packages/libtalloc/build.sh b/disabled-packages/libtalloc/build.sh new file mode 100644 index 00000000..f972a43a --- /dev/null +++ b/disabled-packages/libtalloc/build.sh @@ -0,0 +1,43 @@ +# Compiles, but unused (proot will perhaps use it) +TERMUX_PKG_HOMEPAGE=https://talloc.samba.org/talloc/doc/html/index.html +TERMUX_PKG_DESCRIPTION="Hierarchical, reference counted memory pool system with destructors" +TERMUX_PKG_VERSION=2.1.3 +TERMUX_PKG_SRCURL=https://www.samba.org/ftp/talloc/talloc-${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_BUILD_IN_SRC="yes" + +termux_step_configure () { + cd $TERMUX_PKG_SRCDIR + + cat < cross-answers.txt +Checking uname sysname type: "Linux" +Checking uname machine type: "dontcare" +Checking uname release type: "dontcare" +Checking uname version type: "dontcare" +Checking simple C program: OK +building library support: OK +Checking for large file support: OK +Checking for -D_FILE_OFFSET_BITS=64: OK +Checking for WORDS_BIGENDIAN: OK +Checking for C99 vsnprintf: OK +Checking for HAVE_SECURE_MKSTEMP: OK +rpath library support: OK +-Wl,--version-script support: OK +Checking correct behavior of strtoll: OK +Checking correct behavior of strptime: OK +Checking for HAVE_IFACE_GETIFADDRS: OK +Checking for HAVE_IFACE_IFCONF: OK +Checking for HAVE_IFACE_IFREQ: OK +Checking getconf LFS_CFLAGS: OK +Checking for large file support without additional flags: OK +Checking for working strptime: OK +Checking for HAVE_SHARED_MMAP: OK +Checking for HAVE_MREMAP: OK +Checking for HAVE_INCOHERENT_MMAP: OK +Checking getconf large file support flags work: OK +EOF + + ./configure --prefix=$TERMUX_PREFIX \ + --disable-rpath \ + --cross-compile \ + --cross-answers=cross-answers.txt +} diff --git a/disabled-packages/proot/build.sh b/disabled-packages/proot/build.sh new file mode 100644 index 00000000..c537b299 --- /dev/null +++ b/disabled-packages/proot/build.sh @@ -0,0 +1,12 @@ +# Fails to build with __ptrace_request being undefined +TERMUX_PKG_HOMEPAGE=http://proot.me/ +TERMUX_PKG_DESCRIPTION="Emulate chroot, bind mount and binfmt_misc for non-root users" +TERMUX_PKG_VERSION=5.1.0 +TERMUX_PKG_SRCURL=https://github.com/proot-me/PRoot/archive/v${TERMUX_PKG_VERSION}.tar.gz +TERMUX_PKG_FOLDERNAME=PRoot-${TERMUX_PKG_VERSION} + +termux_step_make_install () { + cd $TERMUX_PKG_SRCDIR/src + make + make install +} diff --git a/disabled-packages/proot/src-GNUmakefile.patch b/disabled-packages/proot/src-GNUmakefile.patch new file mode 100644 index 00000000..133bb311 --- /dev/null +++ b/disabled-packages/proot/src-GNUmakefile.patch @@ -0,0 +1,21 @@ +diff -u -r ../PRoot-5.1.0/src/GNUmakefile ./src/GNUmakefile +--- ../PRoot-5.1.0/src/GNUmakefile 2014-12-15 09:18:11.000000000 -0500 ++++ ./src/GNUmakefile 2015-09-04 17:36:29.967980524 -0400 +@@ -8,8 +8,6 @@ + GIT = git + RM = rm + INSTALL = install +-CC = $(CROSS_COMPILE)gcc +-LD = $(CC) + STRIP = $(CROSS_COMPILE)strip + OBJCOPY = $(CROSS_COMPILE)objcopy + OBJDUMP = $(CROSS_COMPILE)objdump +@@ -222,7 +220,7 @@ + ###################################################################### + # PHONY targets + +-PREFIX = /usr/local ++PREFIX = @TERMUX_PREFIX@ + DESTDIR = $(PREFIX)/bin + + .PHONY: clean distclean install install-care uninstall -- 2.11.0