Add darkhttpd package (#671)
authorDavid Paskevic <casept@users.noreply.github.com>
Sun, 22 Jan 2017 22:43:14 +0000 (23:43 +0100)
committerFredrik Fornwall <fredrik@fornwall.net>
Sun, 22 Jan 2017 22:43:14 +0000 (23:43 +0100)
packages/darkhttpd/Makefile.patch [new file with mode: 0644]
packages/darkhttpd/build.sh [new file with mode: 0644]

diff --git a/packages/darkhttpd/Makefile.patch b/packages/darkhttpd/Makefile.patch
new file mode 100644 (file)
index 0000000..e33bc3c
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/Makefile b/Makefile
+index 7059a14..b09a8a7 100644
+--- a/Makefile
++++ b/Makefile
+@@ -7,6 +7,9 @@ all: darkhttpd
+ darkhttpd: darkhttpd.c
+       $(CC) $(CFLAGS) $(LIBS) darkhttpd.c -o $@
++install: all
++      install darkhttpd "$(DESTDIR)$(PREFIX)/bin/darkhttpd"
++
+ clean:
+       rm -f darkhttpd core darkhttpd.core
diff --git a/packages/darkhttpd/build.sh b/packages/darkhttpd/build.sh
new file mode 100644 (file)
index 0000000..1c1a99a
--- /dev/null
@@ -0,0 +1,7 @@
+TERMUX_PKG_HOMEPAGE=https://unix4lyfe.org/darkhttpd
+TERMUX_PKG_DESCRIPTION="A simple webserver, implemented in a single .c file."
+TERMUX_PKG_VERSION=1.12
+TERMUX_PKG_MAINTAINER="David Paskevic @casept"
+TERMUX_PKG_SRCURL=https://unix4lyfe.org/darkhttpd/darkhttpd-${TERMUX_PKG_VERSION}.tar.bz2
+TERMUX_PKG_FOLDERNAME=darkhttpd-$TERMUX_PKG_VERSION
+TERMUX_PKG_BUILD_IN_SRC=yes