6e6ee00c40a1442e34fae05b6e8f4381e2a1fc9a
[openwrt/svn-archive/archive.git] / net / openser / patches / 007-modules_build.patch
1 --- openser-1.0.1/Makefile 2006-02-15 20:52:21.000000000 +0100
2 +++ openser-1.0.1.new/Makefile 2006-03-17 11:01:27.417488936 +0100
3 @@ -46,8 +46,7 @@
4 skip_modules?=
5
6 # if not set on the cmd. line or the env, exclude this modules:
7 -exclude_modules?= jabber cpl-c pa postgres mysql \
8 - avp_radius auth_radius group_radius uri_radius
9 +exclude_modules?= jabber cpl-c pa
10 # always exclude the CVS dir
11 override exclude_modules+= CVS $(skip_modules)
12
13 diff -urN openser-1.0.1/modules/acc/Makefile openser-1.0.1.new/modules/acc/Makefile
14 --- openser-1.0.1/modules/acc/Makefile 2005-09-05 21:32:02.000000000 +0200
15 +++ openser-1.0.1.new/modules/acc/Makefile 2006-03-17 10:38:14.333269928 +0100
16 @@ -14,8 +14,8 @@
17 DEFS+=-DSQL_ACC
18
19 # uncomment the next two lines if you wish to enable RADIUS accounting
20 -#DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
21 -#LIBS=-L$(LOCALBASE)/lib -lradiusclient-ng
22 +DEFS+=-DRAD_ACC -I$(LOCALBASE)/include
23 +LIBS=-L$(LOCALBASE)/lib -lradiusclient-ng
24
25 # uncomment the next two lines if you wish to enable DIAMETER accounting
26 #DEFS+=-DDIAM_ACC
27 diff -urN openser-1.0.1/modules/mysql/Makefile openser-1.0.1.new/modules/mysql/Makefile
28 --- openser-1.0.1/modules/mysql/Makefile 2005-06-13 18:47:40.000000000 +0200
29 +++ openser-1.0.1.new/modules/mysql/Makefile 2006-03-17 11:12:16.218856136 +0100
30 @@ -9,14 +9,12 @@
31 # mysql.h locations (freebsd,openbsd solaris)
32 DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/include/mysql \
33 -I$(LOCALBASE)/mysql/include \
34 - -I/usr/include/mysql
35
36 # libmysqlclient locations on RH/Suse, Solaris /OpenBSD, FreeBSD
37 # (Debian does the right thing and puts it in /usr/lib)
38 LIBS=-L/usr/lib/mysql -L$(LOCALBASE)/lib -L$(LOCALBASE)/lib/mysql \
39 -L$(LOCALBASE)/mysql/lib/mysql/ \
40 -L$(LOCALBASE)/mysql/lib \
41 - -L/usr/lib64/mysql \
42 -lmysqlclient -lz
43
44 include ../../Makefile.modules
45 diff -urN openser-1.0.1/modules/postgres/Makefile openser-1.0.1.new/modules/postgres/Makefile
46 --- openser-1.0.1/modules/postgres/Makefile 2005-07-01 16:52:34.000000000 +0200
47 +++ openser-1.0.1.new/modules/postgres/Makefile 2006-03-17 11:13:22.150832952 +0100
48 @@ -7,8 +7,7 @@
49 NAME=postgres.so
50
51 # libpq-fe.h locations
52 -DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include \
53 - -I/usr/include/postgresql -I/usr/include/postgresql/8.0
54 +DEFS +=-I$(LOCALBASE)/include -I$(LOCALBASE)/pgsql/include -I$(LOCALBASE)/include/postgresql
55 LIBS=-L$(LOCALBASE)/lib -L$(LOCALBASE)/pgsql/lib -L$(LOCALBASE)/lib/pgsql \
56 -lpq
57