From: Tilman Sauerbeck Date: Mon, 9 Apr 2007 19:34:12 +0000 (+0200) Subject: lua-md5: initial release X-Git-Url: http://git.code-monkey.de/?p=crux-ports.git;a=commitdiff_plain;h=d76c70ce8ddf826d4f2fbb7226b1cf1d2ec22033 lua-md5: initial release --- diff --git a/lua-md5/.footprint b/lua-md5/.footprint new file mode 100644 index 0000000..1650b23 --- /dev/null +++ b/lua-md5/.footprint @@ -0,0 +1,10 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/lua/ +drwxr-xr-x root/root usr/lib/lua/5.1/ +drwxr-xr-x root/root usr/lib/lua/5.1/md5/ +-rwxr-xr-x root/root usr/lib/lua/5.1/md5/core.so +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/lua/ +drwxr-xr-x root/root usr/share/lua/5.1/ +-rw-r--r-- root/root usr/share/lua/5.1/md5.lua diff --git a/lua-md5/.md5sum b/lua-md5/.md5sum new file mode 100644 index 0000000..de77120 --- /dev/null +++ b/lua-md5/.md5sum @@ -0,0 +1 @@ +1a05228e204aa20145d173cc25115e1f md5-1.0.1.tar.gz diff --git a/lua-md5/Pkgfile b/lua-md5/Pkgfile new file mode 100644 index 0000000..3b38659 --- /dev/null +++ b/lua-md5/Pkgfile @@ -0,0 +1,19 @@ +# Description: MD5 module for the Lua programming language +# URL: http://luaforge.net/projects/md5 +# Maintainer: Tilman Sauerbeck, tilman at crux dot nu +# Depends on: lua + +name=lua-md5 +version=1.0.1 +release=1 +source=(http://luaforge.net/frs/download.php/1717/md5-$version.tar.gz \ + $name.diff) + +build() { + cd md5-$version + + patch -Np1 -i $SRC/$name.diff + + make + make DESTDIR=$PKG install +} diff --git a/lua-md5/lua-md5.diff b/lua-md5/lua-md5.diff new file mode 100644 index 0000000..8be3049 --- /dev/null +++ b/lua-md5/lua-md5.diff @@ -0,0 +1,44 @@ +diff -aur md5-1.0.1.orig/Makefile md5-1.0.1/Makefile +--- md5-1.0.1.orig/Makefile 2006-07-24 03:16:37.000000000 +0200 ++++ md5-1.0.1/Makefile 2007-04-09 21:31:27.973470355 +0200 +@@ -21,10 +21,9 @@ + $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c + + install: src/$(LIBNAME) +- mkdir -p $(LUA_LIBDIR)/md5 +- cp src/$(LIBNAME) $(LUA_LIBDIR)/md5/core.so +- mkdir -p $(LUA_DIR) +- cp $(LUAS) $(LUA_DIR) ++ install -D -m 755 src/$(LIBNAME) $(DESTDIR)$(LUA_LIBDIR)/md5/core.so ++ install -d $(DESTDIR)$(LUA_DIR) ++ install -m 644 $(LUAS) $(DESTDIR)$(LUA_DIR) + + clean: + rm -f $(OBJS) src/$(LIBNAME) +diff -aur md5-1.0.1.orig/config md5-1.0.1/config +--- md5-1.0.1.orig/config 2006-07-24 03:16:37.000000000 +0200 ++++ md5-1.0.1/config 2007-04-09 21:29:01.514948410 +0200 +@@ -1,11 +1,11 @@ + # Installation directories + # System's libraries directory (where binary libraries are installed) +-LUA_LIBDIR= /usr/local/lib/lua/5.0 ++LUA_LIBDIR= /usr/lib/lua/5.1 + # Lua directory (where Lua source libraries will be installed) + # This is the LUA_PATH +-LUA_DIR= /usr/local/share/lua/5.0 ++LUA_DIR= /usr/share/lua/5.1 + # Lua includes directory +-LUA_INC= /usr/local/include ++LUA_INC= /usr/include + + # OS dependent + LIB_OPTION= -shared #for Linux +@@ -16,7 +16,7 @@ + # (according to Lua 5.1 definition: + # first version digit * 100 + second version digit + # e.g. Lua 5.0.2 => 500, Lua 5.1 => 501, Lua 5.1.1 => 501) +-LUA_VERSION_NUM= 500 ++LUA_VERSION_NUM= 501 + COMPAT_DIR= ../compat/src + + # Compilation directives