lua-md5: initial release
[crux-ports.git] / lua-md5 / lua-md5.diff
1 diff -aur md5-1.0.1.orig/Makefile md5-1.0.1/Makefile
2 --- md5-1.0.1.orig/Makefile     2006-07-24 03:16:37.000000000 +0200
3 +++ md5-1.0.1/Makefile  2007-04-09 21:31:27.973470355 +0200
4 @@ -21,10 +21,9 @@
5         $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
6  
7  install: src/$(LIBNAME)
8 -       mkdir -p $(LUA_LIBDIR)/md5
9 -       cp src/$(LIBNAME) $(LUA_LIBDIR)/md5/core.so
10 -       mkdir -p $(LUA_DIR)
11 -       cp $(LUAS) $(LUA_DIR)
12 +       install -D -m 755 src/$(LIBNAME) $(DESTDIR)$(LUA_LIBDIR)/md5/core.so
13 +       install -d $(DESTDIR)$(LUA_DIR)
14 +       install -m 644 $(LUAS) $(DESTDIR)$(LUA_DIR)
15  
16  clean:
17         rm -f $(OBJS) src/$(LIBNAME)
18 diff -aur md5-1.0.1.orig/config md5-1.0.1/config
19 --- md5-1.0.1.orig/config       2006-07-24 03:16:37.000000000 +0200
20 +++ md5-1.0.1/config    2007-04-09 21:29:01.514948410 +0200
21 @@ -1,11 +1,11 @@
22  # Installation directories
23  # System's libraries directory (where binary libraries are installed)
24 -LUA_LIBDIR= /usr/local/lib/lua/5.0
25 +LUA_LIBDIR= /usr/lib/lua/5.1
26  # Lua directory (where Lua source libraries will be installed)
27  # This is the LUA_PATH
28 -LUA_DIR= /usr/local/share/lua/5.0
29 +LUA_DIR= /usr/share/lua/5.1
30  # Lua includes directory
31 -LUA_INC= /usr/local/include
32 +LUA_INC= /usr/include
33  
34  # OS dependent
35  LIB_OPTION= -shared #for Linux
36 @@ -16,7 +16,7 @@
37  # (according to Lua 5.1 definition:
38  # first version digit * 100 + second version digit
39  # e.g. Lua 5.0.2 => 500, Lua 5.1 => 501, Lua 5.1.1 => 501)
40 -LUA_VERSION_NUM= 500
41 +LUA_VERSION_NUM= 501
42  COMPAT_DIR= ../compat/src
43  
44  # Compilation directives