Browse Source

new packages: gatling + libowfat

Requested in https://github.com/termux/termux-packages/issues/4386.
build-on-device
Leonid Plyushch 5 years ago
parent
commit
ca2404d0f9
No known key found for this signature in database GPG Key ID: 45F2964132545795
  1. 35
      packages/gatling/GNUmakefile.patch
  2. 19
      packages/gatling/build.sh
  3. 12
      packages/libowfat/GNUmakefile.patch
  4. 17
      packages/libowfat/build.sh

35
packages/gatling/GNUmakefile.patch

@ -0,0 +1,35 @@
diff -uNr gatling-0.13/GNUmakefile gatling-0.13.mod/GNUmakefile
--- gatling-0.13/GNUmakefile 2012-04-19 19:42:36.000000000 +0300
+++ gatling-0.13.mod/GNUmakefile 2020-01-01 22:51:56.671981273 +0200
@@ -6,7 +6,7 @@
man1dir=$(MANDIR)/man1
TARGETS=gatling httpbench bindbench dl ioerr bench tlsgatling_nofail \
-pthreadbench cgi ptlsgatling_nofail
+pthreadbench cgi
TARGETS2=mktestdata mmapbench manymapbench forkbench forksbench
ALLTARGETS=$(TARGETS) acc hcat referrer hitprofile matchiprange getlinks \
rellink $(TARGETS2)
@@ -16,8 +16,7 @@
CROSS=
#CROSS=i686-mingw32-
CC=$(CROSS)gcc
-CFLAGS=-pipe -Wall
-LDFLAGS=
+CFLAGS=-pipe -Wall $(CPPFLAGS)
#CFLAGS+=-DSTATE_DEBUG -DMOREDEBUG -DDEBUG_EVENTS -DSMDEBUG
@@ -70,10 +69,10 @@
CC:=$(DIET) $(CC)
pthreadbench: pthreadbench.o
- $(CC) $< -o $@ -I. $(CFLAGS) $(LDFLAGS) $(LDLIBS) -lpthread
+ $(CC) $< -o $@ -I. $(CFLAGS) $(LDFLAGS) $(LDLIBS)
forksbench: forkbench.o
- $(CC) -static -o $@ forkbench.o $(LDFLAGS) $(LDLIBS)
+ $(CC) -o $@ forkbench.o $(LDFLAGS) $(LDLIBS)
gatling.o tlsgatling ptlsgatling: havesetresuid.h

19
packages/gatling/build.sh

@ -0,0 +1,19 @@
TERMUX_PKG_HOMEPAGE=http://www.fefe.de/gatling/
TERMUX_PKG_DESCRIPTION="A high performance http, ftp and smb server"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=0.13
TERMUX_PKG_SRCURL=http://dl.fefe.de/gatling-$TERMUX_PKG_VERSION.tar.bz2
TERMUX_PKG_SHA256=b42145fdf7b66602fa8bc64661c2762172f6d33dbd9d53efebf821cd81e89245
TERMUX_PKG_DEPENDS="libcrypt, libiconv, openssl"
TERMUX_PKG_BUILD_DEPENDS="libowfat"
TERMUX_PKG_BUILD_IN_SRC=true
termux_step_make() {
CPPFLAGS+=" -I$TERMUX_PREFIX/include/libowfat"
LDFLAGS+=" -lcrypt -lcrypto -liconv"
make -j $TERMUX_MAKE_PROCESSES CROSS="${CC/clang}"
}
termux_step_make_install() {
make install prefix=$TERMUX_PREFIX MANDIR=$TERMUX_PREFIX/share/man
}

12
packages/libowfat/GNUmakefile.patch

@ -0,0 +1,12 @@
diff -uNr libowfat-0.32/GNUmakefile libowfat-0.32.mod/GNUmakefile
--- libowfat-0.32/GNUmakefile 2018-08-24 15:00:46.000000000 +0300
+++ libowfat-0.32.mod/GNUmakefile 2020-01-01 22:30:42.166100328 +0200
@@ -192,7 +192,7 @@
havesigio.h CAS.h
t: t.o libowfat.a libsocket
- $(DIET) $(CCC) -g -o $@ t.o libowfat.a `cat libsocket` -lpthread
+ $(DIET) $(CCC) -g -o $@ t.o libowfat.a `cat libsocket`
.PHONY: all clean tar install rename
clean:

17
packages/libowfat/build.sh

@ -0,0 +1,17 @@
TERMUX_PKG_HOMEPAGE=http://www.fefe.de/libowfat/
TERMUX_PKG_DESCRIPTION="GPL reimplementation of libdjb"
TERMUX_PKG_LICENSE="GPL-2.0"
TERMUX_PKG_VERSION=0.32
TERMUX_PKG_SRCURL=http://www.fefe.de/libowfat/libowfat-$TERMUX_PKG_VERSION.tar.xz
TERMUX_PKG_SHA256=f4b9b3d9922dc25bc93adedf9e9ff8ddbebaf623f14c8e7a5f2301bfef7998c1
TERMUX_PKG_BUILD_IN_SRC=true
TERMUX_PKG_NO_STATICSPLIT=true
termux_step_make() {
make -j $TERMUX_MAKE_PROCESSES CROSS="${CC/clang}"
}
termux_step_make_install() {
make install prefix=$TERMUX_PREFIX LIBDIR=$TERMUX_PREFIX/lib \
MAN3DIR=$TERMUX_PREFIX/share/man/man3
}
Loading…
Cancel
Save