From a1b1555adb9f241f0b070084c24458cb0e57b28d Mon Sep 17 00:00:00 2001 From: Pradeep Gowda Date: Tue, 3 May 2016 21:54:25 -0400 Subject: [PATCH] Add LuaJIT, libYAML, LibXML2, libnet --- libjansson/Makefile | 35 +++++++++++++++++++++++++++++++++++ libjansson/README.md | 18 ++++++++++++++++++ libmagic/Makefile | 36 ++++++++++++++++++++++++++++++++++++ libmagic/README.md | 18 ++++++++++++++++++ libnet/Makefile | 33 +++++++++++++++++++++++++++++++++ libnet/README.md | 18 ++++++++++++++++++ libyaml/Makefile | 36 ++++++++++++++++++++++++++++++++++++ libyaml/README.md | 18 ++++++++++++++++++ luajit/.gitignore | 2 ++ luajit/Makefile | 34 ++++++++++++++++++++++++++++++++++ luajit/README.md | 21 +++++++++++++++++++++ 11 files changed, 269 insertions(+) create mode 100644 libjansson/Makefile create mode 100644 libjansson/README.md create mode 100644 libmagic/Makefile create mode 100644 libmagic/README.md create mode 100644 libnet/Makefile create mode 100644 libnet/README.md create mode 100644 libyaml/Makefile create mode 100644 libyaml/README.md create mode 100644 luajit/.gitignore create mode 100644 luajit/Makefile create mode 100644 luajit/README.md diff --git a/libjansson/Makefile b/libjansson/Makefile new file mode 100644 index 00000000..792ebba1 --- /dev/null +++ b/libjansson/Makefile @@ -0,0 +1,35 @@ +include ../Makefile.inc +UPSTREAM=http://www.digip.org/jansson/releases/jansson-2.7.tar.gz +TARBALL=$(notdir $(UPSTREAM)) + +LIBJANSSON_CONF_OPTS += \ + --disable-shared \ + --disable-urandom \ + --disable-windows-cryptoapi \ + --prefix=$(RUMPRUN_PKGS_DIR) \ + +all: bin/libjansson + +bin/libjansson: build/Makefile + $(MAKE) -C build + $(MAKE) -C build install + +build/Makefile: build/configure + (cd build; \ + ./configure $(LIBJANSSON_CONF_OPTS) --host=$(RUMPRUN_TOOLCHAIN_TUPLE);) + +dl/$(TARBALL): + mkdir -p dl + ../scripts/fetch.sh ${UPSTREAM} dl/$(TARBALL) + +build/configure: | dl/$(TARBALL) + mkdir -p build + (cd build && tar -zx --strip-components 1 -f ../dl/$(TARBALL)) + +.PHONY: clean +clean: + -$(MAKE) -C build clean + +.PHONY: distclean +distclean: clean + rm -rf build diff --git a/libjansson/README.md b/libjansson/README.md new file mode 100644 index 00000000..9e8c5b87 --- /dev/null +++ b/libjansson/README.md @@ -0,0 +1,18 @@ +LibJansson +======== + +[Jansson](http://www.digip.org/jansson/) is a C library for encoding, decoding and manipulating JSON data. This build packages `v2.7`. + +Maintainer +---------- + +* [Pradeep Kishore Gowda](https://github.com/btbytes) + +Instructions +------------ + +Run `make`: + +``` +make +``` diff --git a/libmagic/Makefile b/libmagic/Makefile new file mode 100644 index 00000000..35e4b0bd --- /dev/null +++ b/libmagic/Makefile @@ -0,0 +1,36 @@ +include ../Makefile.inc +UPSTREAM=ftp://ftp.astron.com/pub/file/file-5.26.tar.gz +TARBALL=$(notdir $(UPSTREAM)) +CC=$(RUMPRUN_CC) +CXX=$(RUMPRUN_CXX) +export CC CXX + +LIBMAGIC_CONF_OPTS += \ + --disable-shared \ + --enable-static \ + --prefix=$(RUMPRUN_PKGS_DIR) + +all: bin/libmagic + +bin/libmagic: build/Makefile + $(MAKE) -C build install-exec + +build/Makefile: build/configure + (cd build; \ + ./configure $(LIBMAGIC_CONF_OPTS) --host=$(RUMPRUN_TOOLCHAIN_TUPLE);) + +dl/$(TARBALL): + mkdir -p dl + ../scripts/fetch.sh ${UPSTREAM} dl/$(TARBALL) + +build/configure: | dl/$(TARBALL) + mkdir -p build + (cd build && tar -zx --strip-components 1 -f ../dl/$(TARBALL)) + +.PHONY: clean +clean: + -$(MAKE) -C build clean + +.PHONY: distclean +distclean: clean + rm -rf build diff --git a/libmagic/README.md b/libmagic/README.md new file mode 100644 index 00000000..709bf297 --- /dev/null +++ b/libmagic/README.md @@ -0,0 +1,18 @@ +libmagic +======== + +[libmagic](ftp://ftp.astron.com/pub/file/). This build packages `5.26`. + +Maintainer +---------- + +* [Pradeep Kishore Gowda](https://github.com/btbytes) + +Instructions +------------ + +Run `make`: + +``` +make +``` diff --git a/libnet/Makefile b/libnet/Makefile new file mode 100644 index 00000000..74d76381 --- /dev/null +++ b/libnet/Makefile @@ -0,0 +1,33 @@ +include ../Makefile.inc +UPSTREAM=http://http.debian.net/debian/pool/main/libn/libnet/libnet_1.1.6+dfsg.orig.tar.gz +TARBALL=$(notdir $(UPSTREAM)) + +LIBNET_CONF_OPTS += \ + --disable-shared \ + --prefix=$(RUMPRUN_PKGS_DIR) \ + +all: bin/libnet + +bin/libnet: build/Makefile + $(MAKE) -C build + $(MAKE) -C build install + +build/Makefile: build/configure + (cd build; \ + ./configure $(LIBNET_CONF_OPTS) --host=$(RUMPRUN_TOOLCHAIN_TUPLE);) + +dl/$(TARBALL): + mkdir -p dl + ../scripts/fetch.sh ${UPSTREAM} dl/$(TARBALL) + +build/configure: | dl/$(TARBALL) + mkdir -p build + (cd build && tar -zx --strip-components 1 -f ../dl/$(TARBALL)) + +.PHONY: clean +clean: + -$(MAKE) -C build clean + +.PHONY: distclean +distclean: clean + rm -rf build diff --git a/libnet/README.md b/libnet/README.md new file mode 100644 index 00000000..48c6f80f --- /dev/null +++ b/libnet/README.md @@ -0,0 +1,18 @@ +libnet +====== + +[libnet](https://packages.debian.org/source/sid/libnet) provides a portable framework for low-level network packet construction. This build packages `1.1.6` which appears to be the last version packaged by the latest Ubuntu and Debian distributions. + +Maintainer +---------- + +* [Pradeep Kishore Gowda](https://github.com/btbytes) + +Instructions +------------ + +Run `make`: + +``` +make +``` diff --git a/libyaml/Makefile b/libyaml/Makefile new file mode 100644 index 00000000..745e093c --- /dev/null +++ b/libyaml/Makefile @@ -0,0 +1,36 @@ +include ../Makefile.inc +UPSTREAM=http://pyyaml.org/download/libyaml/yaml-0.1.5.tar.gz +TARBALL=$(notdir $(UPSTREAM)) + +LIBYAML_CONF_OPTS += \ + --prefix=$(RUMPRUN_PKGS_DIR) \ + --disable-shared + + +all: bin/libyaml + +bin/libyaml: build/objs/libyaml + +build/objs/libyaml: build/Makefile + $(MAKE) -C build + $(MAKE) -C build install + +build/Makefile: build/configure + (cd build; \ + ./configure $(LIBYAML_CONF_OPTS) --host=$(RUMPRUN_TOOLCHAIN_TUPLE);) + +dl/$(TARBALL): + mkdir -p dl + ../scripts/fetch.sh ${UPSTREAM} dl/$(TARBALL) + +build/configure: | dl/$(TARBALL) + mkdir -p build + (cd build && tar -zx --strip-components 1 -f ../dl/$(TARBALL)) + +.PHONY: clean +clean: + -$(MAKE) -C build clean + +.PHONY: distclean +distclean: clean + rm -rf build diff --git a/libyaml/README.md b/libyaml/README.md new file mode 100644 index 00000000..b06aa0ea --- /dev/null +++ b/libyaml/README.md @@ -0,0 +1,18 @@ +LibYAML +======== + +Packaging of the [libyaml](http://pyyaml.org/wiki/LibYAML) a YAML 1.1 parser and emitter written in C. + +Maintainer +---------- + +* [Pradeep Kishore Gowda](https://github.com/btbytes) + +Instructions +------------ + +Run `make`: + +``` +make +``` diff --git a/luajit/.gitignore b/luajit/.gitignore new file mode 100644 index 00000000..3558c565 --- /dev/null +++ b/luajit/.gitignore @@ -0,0 +1,2 @@ +bin/ +build/ diff --git a/luajit/Makefile b/luajit/Makefile new file mode 100644 index 00000000..4c7c6e80 --- /dev/null +++ b/luajit/Makefile @@ -0,0 +1,34 @@ +include ../Makefile.inc +UPSTREAM=http://luajit.org/download/LuaJIT-2.0.4.tar.gz +TARBALL=$(notdir $(UPSTREAM)) +PERSISTENCE_SIZE=2048 +CC=$(RUMPRUN_CC) +CXX=$(RUMPRUN_CXX) +export CC CXX + +LUAJIT_CONF_OPTS += \ + PREFIX=$(RUMPRUN_PKGS_DIR) + +all: bin/luajit + +bin/luajit: build/luajit + +build/luajit: build/Makefile + $(MAKE) $(LUAJIT_CONF_OPTS) -C build + $(MAKE) $(LUAJIT_CONF_OPTS) -C build install + +build/Makefile: dl/${TARBALL} + mkdir -p build + (cd build && tar -xz --strip-components 1 -f ../dl/${TARBALL}) + +dl/$(TARBALL): + mkdir -p dl + ../scripts/fetch.sh ${UPSTREAM} dl/$(TARBALL) + +.PHONY: clean +clean: + -$(MAKE) -C build clean + +.PHONY: distclean +distclean: clean + rm -rf build diff --git a/luajit/README.md b/luajit/README.md new file mode 100644 index 00000000..3dc4c1d8 --- /dev/null +++ b/luajit/README.md @@ -0,0 +1,21 @@ +LuaJIT +====== + +[LuaJIT](http://luajit.org/) is a Just-In-Time Compiler (JIT) for the Lua programming language. Lua is a powerful, dynamic and light-weight programming language. It may be embedded or used as a general-purpose, stand-alone language. + +Overview +-------- + +This document explains how to obtain a LuaJIT interpreter for Rumprun. The LuaJIT interpreter built by the Makefile is `2.0.4`. +At this time, I see this LuaJIT package being used as an embedded language library. + +Maintainer +---------- + +* [Pradeep Kishore Gowda](https://github.com/btbytes) + + +Instructions +------------ + +Run `make`.