summaryrefslogtreecommitdiff
path: root/openwrt/package/ser/patches/runtime-paths.patch
blob: 483623e18c1343286552b316eb2f9e1ee7e450ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
diff -urN ser-0.9.0.old/etc/ser.cfg ser-0.9.0/etc/ser.cfg
--- ser-0.9.0.old/etc/ser.cfg	2004-11-30 17:28:24.000000000 +0100
+++ ser-0.9.0/etc/ser.cfg	2005-03-25 17:23:32.000000000 +0100
@@ -25,20 +25,20 @@
 # ------------------ module loading ----------------------------------
 
 # Uncomment this if you want to use SQL database
-#loadmodule "/usr/local/lib/ser/modules/mysql.so"
+#loadmodule "/usr/lib/ser/modules/mysql.so"
 
-loadmodule "/usr/local/lib/ser/modules/sl.so"
-loadmodule "/usr/local/lib/ser/modules/tm.so"
-loadmodule "/usr/local/lib/ser/modules/rr.so"
-loadmodule "/usr/local/lib/ser/modules/maxfwd.so"
-loadmodule "/usr/local/lib/ser/modules/usrloc.so"
-loadmodule "/usr/local/lib/ser/modules/registrar.so"
-loadmodule "/usr/local/lib/ser/modules/textops.so"
+loadmodule "/usr/lib/ser/modules/sl.so"
+loadmodule "/usr/lib/ser/modules/tm.so"
+loadmodule "/usr/lib/ser/modules/rr.so"
+loadmodule "/usr/lib/ser/modules/maxfwd.so"
+loadmodule "/usr/lib/ser/modules/usrloc.so"
+loadmodule "/usr/lib/ser/modules/registrar.so"
+loadmodule "/usr/lib/ser/modules/textops.so"
 
 # Uncomment this if you want digest authentication
 # mysql.so must be loaded !
-#loadmodule "/usr/local/lib/ser/modules/auth.so"
-#loadmodule "/usr/local/lib/ser/modules/auth_db.so"
+#loadmodule "/usr/lib/ser/modules/auth.so"
+#loadmodule "/usr/lib/ser/modules/auth_db.so"
 
 # ----------------- setting module-specific parameters ---------------
 
diff -urN ser-0.9.0.old/Makefile ser-0.9.0/Makefile
--- ser-0.9.0.old/Makefile	2004-12-08 20:06:12.000000000 +0100
+++ ser-0.9.0/Makefile	2005-03-25 17:21:35.000000000 +0100
@@ -198,8 +198,8 @@
 # binary dist. tar.gz
 .PHONY: bin
 bin:
-	mkdir -p tmp/ser/usr/local
-	$(MAKE) install basedir=tmp/ser prefix=/usr/local 
+	mkdir -p tmp/ser/usr
+	$(MAKE) install basedir=tmp/ser prefix=/usr
 	$(TAR) -C tmp/ser/ -zcf ../$(NAME)-$(RELEASE)_$(OS)_$(ARCH).tar.gz .
 	rm -rf tmp/ser
 
@@ -211,9 +211,9 @@
 sunpkg:
 	mkdir -p tmp/ser
 	mkdir -p tmp/ser_sun_pkg
-	$(MAKE) install basedir=tmp/ser prefix=/usr/local
+	$(MAKE) install basedir=tmp/ser prefix=/usr
 	(cd solaris; \
-	pkgmk -r ../tmp/ser/usr/local -o -d ../tmp/ser_sun_pkg/ -v "$(RELEASE)" ;\
+	pkgmk -r ../tmp/ser/usr -o -d ../tmp/ser_sun_pkg/ -v "$(RELEASE)" ;\
 	cd ..)
 	cat /dev/null > ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local
 	pkgtrans -s tmp/ser_sun_pkg/ ../$(NAME)-$(RELEASE)-$(OS)-$(ARCH)-local \
diff -urN ser-0.9.0.old/Makefile.defs ser-0.9.0/Makefile.defs
--- ser-0.9.0.old/Makefile.defs	2005-03-25 15:28:58.000000000 +0100
+++ ser-0.9.0/Makefile.defs	2005-03-25 17:26:09.000000000 +0100
@@ -68,15 +68,15 @@
 # extra CC command line options (e.g  -march=athlon-mp)
 CC_EXTRA_OPTS ?=
  # install location
-DESTDIR ?= /usr/local
+DESTDIR ?= /usr
 PREFIX ?= $(DESTDIR)
-LOCALBASE ?= /usr/local
+LOCALBASE ?= /usr
 prefix = $(PREFIX)
 # install path is $(basedir) $(prefix) 
 # example:
-#  creating a bin. archive in /tmp, which unpacks in /usr/local
+#  creating a bin. archive in /tmp, which unpacks in /usr
 #  basedir=/tmp
-#  prefix=/usr/local
+#  prefix=/usr
 
 BASEDIR ?=
 basedir = $(BASEDIR)
@@ -121,7 +121,7 @@
 endif
 ut-prefix = bin/
 # target dirs for various stuff
-cfg-target = $(prefix)/$(cfg-dir)
+cfg-target = /$(cfg-dir)
 bin-target = $(prefix)/$(bin-dir)
 modules-target = $(prefix)/$(modules-dir)
 doc-target = $(prefix)/$(doc-dir)
@@ -817,7 +817,7 @@
 		#MOD_LDFLAGS=-g -G
 	endif
 ifneq ($(TLS),)
-	DEFS+= -I/usr/local/ssl/include
+	DEFS+= -I/usr/ssl/include
 endif
 	YACC=yacc
 
@@ -826,7 +826,7 @@
 endif
 	OLD_SOLARIS= $(shell echo "$(OSREL)" | \
 				sed -e 's/^5\.[0-6][^0-9]*$$/yes/' )
-	LIBS+= -L/usr/local/lib -lxnet -lnsl 
+	LIBS+= -L/usr/lib -lxnet -lnsl 
 ifeq	($(OLD_SOLARIS), yes)
 		LIBS+=-lposix4
 else
@@ -918,7 +918,7 @@
 
 #add libssl if needed
 ifneq ($(TLS),)
-LIBS+= -L/usr/local/lib -L/usr/local/ssl/lib -lssl  -lcrypto
+LIBS+= -L/usr/lib -L/usr/ssl/lib -lssl  -lcrypto
 endif
 
 ifneq ($(found_lock_method), yes)