packages/dev-lua/luasec/files/luasec-0.4.1-paths.patch (1373B) - raw
1 diff -ur luasec-0.4.1.orig/Makefile luasec-0.4.1/Makefile
2 --- luasec-0.4.1.orig/Makefile 2011-03-02 13:09:20.000000000 +1000
3 +++ luasec-0.4.1/Makefile 2011-07-04 20:24:22.344395091 +1000
4 @@ -1,11 +1,11 @@
5 # Inform the location to intall the modules
6 -LUAPATH=/usr/local/share/lua/5.1
7 -LUACPATH=/usr/local/lib/lua/5.1
8 +LUAPATH=/usr/share/lua/5.1
9 +LUACPATH=/usr/lib/lua/5.1
10
11 # Edit the lines below to inform new path, if necessary
12 #
13 -#INCDIR=-I/usr/local/lua-5.1/include -I/usr/local/openssl-0.9.8/include
14 -#LIBDIR=-L/usr/local/openssl-0.9.8/lib -R/usr/local/openssl-0.9.8/lib
15 +INCDIR=$(shell pkg-config --cflags-only-I lua openssl)
16 +LIBDIR=$(shell pkg-config --libs-only-L lua openssl)
17
18 # For Mac OS X: set the system version
19 MACOSX_VERSION=10.4
20 diff -ur luasec-0.4.1.orig/src/Makefile luasec-0.4.1/src/Makefile
21 --- luasec-0.4.1.orig/src/Makefile 2011-03-02 13:09:20.000000000 +1000
22 +++ luasec-0.4.1/src/Makefile 2011-07-04 20:27:13.144619139 +1000
23 @@ -33,10 +33,9 @@
24 all:
25
26 install: $(CMOD) $(LMOD)
27 - mkdir -p $(LUAPATH)/ssl
28 - cp $(CMOD) $(LUACPATH)
29 - cp $(LMOD) $(LUAPATH)
30 - cp https.lua $(LUAPATH)/ssl
31 + install -D -m0755 $(CMOD) $(DESTDIR)$(LUACPATH)/$(CMOD)
32 + install -D -m0644 $(LMOD) $(DESTDIR)$(LUAPATH)/$(LMOD)
33 + install -D -m0644 https.lua $(DESTDIR)$(LUAPATH)/ssl/https.lua
34
35 linux:
36 @$(MAKE) $(CMOD) MYCFLAGS="$(LNX_CFLAGS)" MYLDFLAGS="$(LNX_LDFLAGS)"