1 | 1 |
deleted file mode 100755 |
... | ... |
@@ -1,236 +0,0 @@ |
1 |
-#!/usr/bin/make -f |
|
2 |
-# Sample debian/rules that uses debhelper. |
|
3 |
-# GNU copyright 1997 to 1999 by Joey Hess. |
|
4 |
-# |
|
5 |
-# $Id$ |
|
6 |
-# |
|
7 |
-# History: |
|
8 |
-# -------- |
|
9 |
-# 2003-05-30 updated for the 0.8.11 release, changed modules list and |
|
10 |
-# some ser make options (andrei) |
|
11 |
-# 2003-06-27 changed to DH_COMPAT 4 (debian/compat) + other filenames |
|
12 |
-# & small fixes (andrei) |
|
13 |
-# 2003-08-29 replaced modules-install with modules-install-all, to |
|
14 |
-# install also the modules doc (andrei) |
|
15 |
-# 2004-07-23 added ext and commented out the radius modules |
|
16 |
-# (the current radius modules depend on radiusclient-ng which |
|
17 |
-# is not yet part of debian) (andrei) |
|
18 |
-# 2005-06-23 added cpl-c, pa & re-enabled radius (with libradiusclient-ng) |
|
19 |
-# (andrei) |
|
20 |
- |
|
21 |
- |
|
22 |
-# Uncomment this to turn on verbose mode. |
|
23 |
-#export DH_VERBOSE=1 |
|
24 |
- |
|
25 |
-# This is the debhelper compatibility version to use. |
|
26 |
-# export DH_COMPAT=4 |
|
27 |
-# -- already set in compat |
|
28 |
-# force no striping (always include debug symbols for now) |
|
29 |
-export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) nostrip" |
|
30 |
- |
|
31 |
-# modules not in the "main" package or unstable |
|
32 |
-EXCLUDED_MODULES= mysql jabber acc_radius xmlrpc auth_radius group_radius uri_radius \ |
|
33 |
- avp_radius pa rls dialog presence_b2b xcap postgres snmp cpl cpl-c ext extcmd |
|
34 |
- |
|
35 |
-# modules depending on mysql |
|
36 |
-MYSQL_MODULES=mysql |
|
37 |
-#jabber related modules |
|
38 |
-JABBER_MODULES=jabber |
|
39 |
-#module depending on radiusclient |
|
40 |
-RADIUS_MODULES=acc_radius auth_radius group_radius uri_radius avp_radius |
|
41 |
-#cpl related modules |
|
42 |
-CPL_MODULES=cpl-c |
|
43 |
-# pa related modules |
|
44 |
-PA_MODULES=pa rls dialog presence_b2b xcap |
|
45 |
-# postgres modules |
|
46 |
-POSTGRES_MODULES=postgres |
|
47 |
-# xmlrpc module |
|
48 |
-XMLRPC_MODULES=xmlrpc |
|
49 |
- |
|
50 |
-# the same but with path prepended (needed for modules="...") |
|
51 |
-MYSQL_MOD_PATH=$(addprefix modules/, $(MYSQL_MODULES)) |
|
52 |
-JABBER_MOD_PATH=$(addprefix modules/, $(JABBER_MODULES)) |
|
53 |
-RADIUS_MOD_PATH=$(addprefix modules/, $(RADIUS_MODULES)) |
|
54 |
-CPL_MOD_PATH=$(addprefix modules/, $(CPL_MODULES)) |
|
55 |
-PA_MOD_PATH=$(addprefix modules/, $(PA_MODULES)) |
|
56 |
-POSTGRES_MOD_PATH=$(addprefix modules/, $(POSTGRES_MODULES)) |
|
57 |
-XMLRPC_MOD_PATH=$(addprefix modules/, $(XMLRPC_MODULES)) |
|
58 |
- |
|
59 |
-SERCTL_PATH=tools/serctl |
|
60 |
- |
|
61 |
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
|
62 |
- CFLAGS += -g |
|
63 |
-endif |
|
64 |
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
|
65 |
- INSTALL_PROGRAM += -s |
|
66 |
-endif |
|
67 |
- |
|
68 |
-configure: configure-stamp |
|
69 |
-configure-stamp: |
|
70 |
- dh_testdir |
|
71 |
- # Add here commands to configure the package. |
|
72 |
- |
|
73 |
- touch configure-stamp |
|
74 |
- |
|
75 |
- |
|
76 |
-build: build-stamp |
|
77 |
- |
|
78 |
-build-stamp: configure-stamp |
|
79 |
- dh_testdir |
|
80 |
- |
|
81 |
- # Add here commands to compile the package. |
|
82 |
- $(MAKE) all skip_modules="$(EXCLUDED_MODULES)" cfg-target=/etc/ser/ |
|
83 |
- $(MAKE) modules modules="$(MYSQL_MOD_PATH)" cfg-target=/etc/ser/ |
|
84 |
- $(MAKE) modules modules="$(JABBER_MOD_PATH)" cfg-target=/etc/ser/ |
|
85 |
- $(MAKE) modules modules="$(RADIUS_MOD_PATH)" cfg-target=/etc/ser/ |
|
86 |
- $(MAKE) modules modules="$(CPL_MOD_PATH)" cfg-target=/etc/ser/ |
|
87 |
- |
|
88 |
- # Compile shared libraries needed for presence modules |
|
89 |
- $(MAKE) -C lib -f Makefile.ser |
|
90 |
- $(MAKE) modules modules="$(PA_MOD_PATH)" cfg-target=/etc/ser/ |
|
91 |
- |
|
92 |
- $(MAKE) modules modules="$(POSTGRES_MOD_PATH)" cfg-target=/etc/ser/ |
|
93 |
- $(MAKE) modules modules="$(XMLRPC_MOD_PATH)" cfg-target=/etc/ser/ |
|
94 |
- #/usr/bin/docbook-to-man debian/ser.sgml > ser.1 |
|
95 |
- |
|
96 |
- touch build-stamp |
|
97 |
- |
|
98 |
-clean: |
|
99 |
- dh_testdir |
|
100 |
- dh_testroot |
|
101 |
- rm -f build-stamp configure-stamp |
|
102 |
- |
|
103 |
- # Add here commands to clean up after the build process. |
|
104 |
- -$(MAKE) -C lib -f Makefile.ser proper |
|
105 |
- -$(MAKE) \ |
|
106 |
- include_modules="$(MYSQL_MODULES) $(JABBER_MODULES) $(RADIUS_MODULES)\ |
|
107 |
- $(CPL_MODULES) $(PA_MODULES) $(POSTGRES_MODULES) $(XMLRPC_MODULES)"\ |
|
108 |
- proper |
|
109 |
- |
|
110 |
- dh_clean |
|
111 |
- |
|
112 |
-install: build |
|
113 |
- dh_testdir |
|
114 |
- dh_testroot |
|
115 |
- dh_clean -k |
|
116 |
- dh_installdirs |
|
117 |
- |
|
118 |
- # Add here commands to install the package into debian/ser |
|
119 |
- $(MAKE) install skip_modules="$(EXCLUDED_MODULES)" \ |
|
120 |
- basedir=$(CURDIR)/debian/ser \ |
|
121 |
- prefix=/usr \ |
|
122 |
- cfg-prefix=$(CURDIR)/debian/ser \ |
|
123 |
- cfg-target=/etc/ser/ |
|
124 |
- # install only the mysql module |
|
125 |
- $(MAKE) install-modules-all modules="$(MYSQL_MOD_PATH)" \ |
|
126 |
- basedir=$(CURDIR)/debian/ser-mysql-module \ |
|
127 |
- prefix=/usr \ |
|
128 |
- cfg-prefix=$(CURDIR)/debian/ser-mysql-module \ |
|
129 |
- cfg-target=/etc/ser/ \ |
|
130 |
- doc-dir=share/doc/ser-mysql-module |
|
131 |
- #install only the jabber module |
|
132 |
- $(MAKE) install-modules-all modules="$(JABBER_MOD_PATH)" \ |
|
133 |
- basedir=$(CURDIR)/debian/ser-jabber-module \ |
|
134 |
- prefix=/usr \ |
|
135 |
- cfg-prefix=$(CURDIR)/debian/ser-jabber-module \ |
|
136 |
- cfg-target=/etc/ser/ \ |
|
137 |
- doc-dir=share/doc/ser-jabber-module |
|
138 |
- #install only the radius modules |
|
139 |
- $(MAKE) install-modules-all modules="$(RADIUS_MOD_PATH)" \ |
|
140 |
- basedir=$(CURDIR)/debian/ser-radius-modules \ |
|
141 |
- prefix=/usr \ |
|
142 |
- cfg-prefix=$(CURDIR)/debian/ser-radius-modules \ |
|
143 |
- cfg-target=/etc/ser/ \ |
|
144 |
- doc-dir=share/doc/ser-radius-modules |
|
145 |
- #install only the cpl module |
|
146 |
- $(MAKE) install-modules-all modules="$(CPL_MOD_PATH)" \ |
|
147 |
- basedir=$(CURDIR)/debian/ser-cpl-module \ |
|
148 |
- prefix=/usr \ |
|
149 |
- cfg-prefix=$(CURDIR)/debian/ser-cpl-module \ |
|
150 |
- cfg-target=/etc/ser/ \ |
|
151 |
- doc-dir=share/doc/ser-cpl-module |
|
152 |
- #install only the pa module |
|
153 |
- $(MAKE) -C lib -f Makefile.ser install \ |
|
154 |
- prefix=$(CURDIR)/debian/ser-presence-module/usr/ |
|
155 |
- $(MAKE) install-modules-all modules="$(PA_MOD_PATH)" \ |
|
156 |
- basedir=$(CURDIR)/debian/ser-presence-module \ |
|
157 |
- prefix=/usr \ |
|
158 |
- cfg-prefix=$(CURDIR)/debian/ser-presence-module \ |
|
159 |
- cfg-target=/etc/ser/ \ |
|
160 |
- doc-dir=share/doc/ser-presence-module |
|
161 |
- #install only the postgres module |
|
162 |
- $(MAKE) install-modules-all modules="$(POSTGRES_MOD_PATH)" \ |
|
163 |
- basedir=$(CURDIR)/debian/ser-postgres-module \ |
|
164 |
- prefix=/usr \ |
|
165 |
- cfg-prefix=$(CURDIR)/debian/ser-postgres-module \ |
|
166 |
- cfg-target=/etc/ser/ \ |
|
167 |
- doc-dir=share/doc/ser-postgres-module |
|
168 |
- #install only the xmlrpc module |
|
169 |
- $(MAKE) install-modules-all modules="$(XMLRPC_MOD_PATH)" \ |
|
170 |
- basedir=$(CURDIR)/debian/ser-xmlrpc-module \ |
|
171 |
- prefix=/usr \ |
|
172 |
- cfg-prefix=$(CURDIR)/debian/ser-xmlrpc-module \ |
|
173 |
- cfg-target=/etc/ser/ \ |
|
174 |
- doc-dir=share/doc/ser-xmlrpc-module |
|
175 |
- |
|
176 |
- # Install serctl only |
|
177 |
- cd $(SERCTL_PATH); \ |
|
178 |
- $(MAKE) install \ |
|
179 |
- prefix=$(CURDIR)/debian/ser-ctl \ |
|
180 |
- 'usr_prefix=$$(prefix)/usr' \ |
|
181 |
- 'var_prefix=$$(prefix)/var' \ |
|
182 |
- 'DOC_DIR=$$(docdir)/ser-ctl' |
|
183 |
- #dh_movefiles |
|
184 |
- |
|
185 |
- |
|
186 |
- |
|
187 |
-# This single target is used to build all the packages, all at once, or |
|
188 |
-# one at a time. So keep in mind: any options passed to commands here will |
|
189 |
-# affect _all_ packages. Anything you want to only affect one package |
|
190 |
-# should be put in another target, such as the install target. |
|
191 |
-binary-common: |
|
192 |
- dh_testdir |
|
193 |
- dh_testroot |
|
194 |
-# dh_installdebconf |
|
195 |
- dh_installdocs |
|
196 |
- dh_installexamples |
|
197 |
- dh_installmenu |
|
198 |
-# dh_installlogrotate |
|
199 |
-# dh_installemacsen |
|
200 |
-# dh_installpam |
|
201 |
-# dh_installmime |
|
202 |
- dh_installinit -- defaults 23 |
|
203 |
- dh_installcron |
|
204 |
- dh_installman |
|
205 |
- dh_installinfo |
|
206 |
-# dh_undocumented |
|
207 |
- dh_installchangelogs |
|
208 |
- dh_link |
|
209 |
- dh_strip |
|
210 |
- dh_compress |
|
211 |
- dh_fixperms |
|
212 |
-# dh_makeshlibs |
|
213 |
- dh_installdeb |
|
214 |
-# dh_perl |
|
215 |
- dh_shlibdeps |
|
216 |
- dh_gencontrol |
|
217 |
- dh_md5sums |
|
218 |
- dh_builddeb |
|
219 |
- |
|
220 |
-# Build architecture-independent packages using the common target |
|
221 |
-binary-indep: build install |
|
222 |
-# (Uncomment this next line if you have such packages.) |
|
223 |
-# $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common |
|
224 |
-# We have nothing to do by default. |
|
225 |
- |
|
226 |
- |
|
227 |
-# Build architecture-dependent packages using the common target |
|
228 |
-binary-arch: build install |
|
229 |
- $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common |
|
230 |
- |
|
231 |
-# Any other binary targets build just one binary package at a time. |
|
232 |
-binary-%: build install |
|
233 |
- $(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$* |
|
234 |
- |
|
235 |
-binary: binary-indep binary-arch |
|
236 |
-.PHONY: build clean binary-indep binary-arch binary install configure |
... | ... |
@@ -30,7 +30,7 @@ export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) nostrip" |
30 | 30 |
|
31 | 31 |
# modules not in the "main" package or unstable |
32 | 32 |
EXCLUDED_MODULES= mysql jabber acc_radius xmlrpc auth_radius group_radius uri_radius \ |
33 |
- avp_radius pa rls dialog postgres snmp cpl cpl-c ext extcmd |
|
33 |
+ avp_radius pa rls dialog presence_b2b xcap postgres snmp cpl cpl-c ext extcmd |
|
34 | 34 |
|
35 | 35 |
# modules depending on mysql |
36 | 36 |
MYSQL_MODULES=mysql |
... | ... |
@@ -41,7 +41,7 @@ RADIUS_MODULES=acc_radius auth_radius group_radius uri_radius avp_radius |
41 | 41 |
#cpl related modules |
42 | 42 |
CPL_MODULES=cpl-c |
43 | 43 |
# pa related modules |
44 |
-PA_MODULES=pa rls dialog |
|
44 |
+PA_MODULES=pa rls dialog presence_b2b xcap |
|
45 | 45 |
# postgres modules |
46 | 46 |
POSTGRES_MODULES=postgres |
47 | 47 |
# xmlrpc module |
... | ... |
@@ -176,14 +176,10 @@ install: build |
176 | 176 |
# Install serctl only |
177 | 177 |
cd $(SERCTL_PATH); \ |
178 | 178 |
$(MAKE) install \ |
179 |
- usr_prefix=$(CURDIR)/debian/ser-ctl/usr \ |
|
180 |
- var_prefix=$(CURDIR)/debian/ser-ctl/var \ |
|
181 |
- sysconfdir=$(CURDIR)/debian/ser-ctl/etc \ |
|
182 |
- bindir=$(CURDIR)/debian/ser-ctl/usr/bin \ |
|
183 |
- libexecdir=$(CURDIR)/debian/ser-ctl/usr/lib \ |
|
184 |
- datadir=$(CURDIR)/debian/ser-ctl/usr/share \ |
|
185 |
- docdir=$(CURDIR)/debian/ser-ctl/usr/share/doc \ |
|
186 |
- prefix=/usr |
|
179 |
+ prefix=$(CURDIR)/debian/ser-ctl \ |
|
180 |
+ 'usr_prefix=$$(prefix)/usr' \ |
|
181 |
+ 'var_prefix=$$(prefix)/var' \ |
|
182 |
+ 'DOC_DIR=$$(docdir)/ser-ctl' |
|
187 | 183 |
#dh_movefiles |
188 | 184 |
|
189 | 185 |
|
... | ... |
@@ -29,23 +29,23 @@ |
29 | 29 |
export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) nostrip" |
30 | 30 |
|
31 | 31 |
# modules not in the "main" package or unstable |
32 |
-EXCLUDED_MODULES= mysql jabber auth_radius group_radius uri_radius \ |
|
33 |
- avp_radius pa postgres snmp cpl cpl-c ext extcmd |
|
32 |
+EXCLUDED_MODULES= mysql jabber acc_radius xmlrpc auth_radius group_radius uri_radius \ |
|
33 |
+ avp_radius pa rls dialog postgres snmp cpl cpl-c ext extcmd |
|
34 | 34 |
|
35 | 35 |
# modules depending on mysql |
36 | 36 |
MYSQL_MODULES=mysql |
37 | 37 |
#jabber related modules |
38 | 38 |
JABBER_MODULES=jabber |
39 | 39 |
#module depending on radiusclient |
40 |
-RADIUS_MODULES=auth_radius group_radius uri_radius avp_radius |
|
40 |
+RADIUS_MODULES=acc_radius auth_radius group_radius uri_radius avp_radius |
|
41 | 41 |
#cpl related modules |
42 | 42 |
CPL_MODULES=cpl-c |
43 | 43 |
# pa related modules |
44 |
-PA_MODULES=pa |
|
44 |
+PA_MODULES=pa rls dialog |
|
45 | 45 |
# postgres modules |
46 | 46 |
POSTGRES_MODULES=postgres |
47 |
-# acc module |
|
48 |
-ACC_MODULE=acc |
|
47 |
+# xmlrpc module |
|
48 |
+XMLRPC_MODULES=xmlrpc |
|
49 | 49 |
|
50 | 50 |
# the same but with path prepended (needed for modules="...") |
51 | 51 |
MYSQL_MOD_PATH=$(addprefix modules/, $(MYSQL_MODULES)) |
... | ... |
@@ -54,10 +54,9 @@ RADIUS_MOD_PATH=$(addprefix modules/, $(RADIUS_MODULES)) |
54 | 54 |
CPL_MOD_PATH=$(addprefix modules/, $(CPL_MODULES)) |
55 | 55 |
PA_MOD_PATH=$(addprefix modules/, $(PA_MODULES)) |
56 | 56 |
POSTGRES_MOD_PATH=$(addprefix modules/, $(POSTGRES_MODULES)) |
57 |
-ACC_MOD_PATH=$(addprefix modules/, $(ACC_MODULE)) |
|
58 |
- |
|
59 |
- |
|
57 |
+XMLRPC_MOD_PATH=$(addprefix modules/, $(XMLRPC_MODULES)) |
|
60 | 58 |
|
59 |
+SERCTL_PATH=tools/serctl |
|
61 | 60 |
|
62 | 61 |
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
63 | 62 |
CFLAGS += -g |
... | ... |
@@ -85,11 +84,13 @@ build-stamp: configure-stamp |
85 | 84 |
$(MAKE) modules modules="$(JABBER_MOD_PATH)" cfg-target=/etc/ser/ |
86 | 85 |
$(MAKE) modules modules="$(RADIUS_MOD_PATH)" cfg-target=/etc/ser/ |
87 | 86 |
$(MAKE) modules modules="$(CPL_MOD_PATH)" cfg-target=/etc/ser/ |
87 |
+ |
|
88 |
+ # Compile shared libraries needed for presence modules |
|
89 |
+ $(MAKE) -C lib -f Makefile.ser |
|
88 | 90 |
$(MAKE) modules modules="$(PA_MOD_PATH)" cfg-target=/etc/ser/ |
89 |
- # postgres will generate lots of warnings |
|
91 |
+ |
|
90 | 92 |
$(MAKE) modules modules="$(POSTGRES_MOD_PATH)" cfg-target=/etc/ser/ |
91 |
- # acc-db & acc-radius are compiled on install, because they share |
|
92 |
- # the same source tree with acc |
|
93 |
+ $(MAKE) modules modules="$(XMLRPC_MOD_PATH)" cfg-target=/etc/ser/ |
|
93 | 94 |
#/usr/bin/docbook-to-man debian/ser.sgml > ser.1 |
94 | 95 |
|
95 | 96 |
touch build-stamp |
... | ... |
@@ -100,9 +101,10 @@ clean: |
100 | 101 |
rm -f build-stamp configure-stamp |
101 | 102 |
|
102 | 103 |
# Add here commands to clean up after the build process. |
104 |
+ -$(MAKE) -C lib -f Makefile.ser proper |
|
103 | 105 |
-$(MAKE) \ |
104 | 106 |
include_modules="$(MYSQL_MODULES) $(JABBER_MODULES) $(RADIUS_MODULES)\ |
105 |
- $(CPL_MODULES) $(PA_MODULES) $(POSTGRES_MODULES)"\ |
|
107 |
+ $(CPL_MODULES) $(PA_MODULES) $(POSTGRES_MODULES) $(XMLRPC_MODULES)"\ |
|
106 | 108 |
proper |
107 | 109 |
|
108 | 110 |
dh_clean |
... | ... |
@@ -148,12 +150,14 @@ install: build |
148 | 150 |
cfg-target=/etc/ser/ \ |
149 | 151 |
doc-dir=share/doc/ser-cpl-module |
150 | 152 |
#install only the pa module |
153 |
+ $(MAKE) -C lib -f Makefile.ser install \ |
|
154 |
+ prefix=$(CURDIR)/debian/ser-presence-module/usr/ |
|
151 | 155 |
$(MAKE) install-modules-all modules="$(PA_MOD_PATH)" \ |
152 |
- basedir=$(CURDIR)/debian/ser-pa-module \ |
|
156 |
+ basedir=$(CURDIR)/debian/ser-presence-module \ |
|
153 | 157 |
prefix=/usr \ |
154 |
- cfg-prefix=$(CURDIR)/debian/ser-pa-module \ |
|
158 |
+ cfg-prefix=$(CURDIR)/debian/ser-presence-module \ |
|
155 | 159 |
cfg-target=/etc/ser/ \ |
156 |
- doc-dir=share/doc/ser-pa-module |
|
160 |
+ doc-dir=share/doc/ser-presence-module |
|
157 | 161 |
#install only the postgres module |
158 | 162 |
$(MAKE) install-modules-all modules="$(POSTGRES_MOD_PATH)" \ |
159 | 163 |
basedir=$(CURDIR)/debian/ser-postgres-module \ |
... | ... |
@@ -161,27 +165,25 @@ install: build |
161 | 165 |
cfg-prefix=$(CURDIR)/debian/ser-postgres-module \ |
162 | 166 |
cfg-target=/etc/ser/ \ |
163 | 167 |
doc-dir=share/doc/ser-postgres-module |
164 |
- # Ugly hacks to make 2 new versions from acc: ac_db & acc_radius |
|
165 |
- #install only the acc db version module |
|
166 |
- cd $(ACC_MOD_PATH); $(MAKE) proper; cd ../..; \ |
|
167 |
- $(MAKE) install-modules-all modules="$(ACC_MOD_PATH)" \ |
|
168 |
- basedir=$(CURDIR)/debian/ser-acc-db-module \ |
|
169 |
- prefix=/usr \ |
|
170 |
- cfg-prefix=$(CURDIR)/debian/ser-acc-db-module \ |
|
171 |
- cfg-target=/etc/ser/ \ |
|
172 |
- doc-dir=share/doc/ser-acc-db-module \ |
|
173 |
- NAME=acc_db.so modules_names=acc_db.so EXTRA_DEFS=-DSQL_ACC ;\ |
|
174 |
- cd $(ACC_MOD_PATH); $(MAKE) proper NAME=acc_db.so; cd ../.. |
|
175 |
- #install only the acc radius version module |
|
176 |
- $(MAKE) install-modules-all modules="$(ACC_MOD_PATH)" \ |
|
177 |
- basedir=$(CURDIR)/debian/ser-acc-radius-module \ |
|
168 |
+ #install only the xmlrpc module |
|
169 |
+ $(MAKE) install-modules-all modules="$(XMLRPC_MOD_PATH)" \ |
|
170 |
+ basedir=$(CURDIR)/debian/ser-xmlrpc-module \ |
|
178 | 171 |
prefix=/usr \ |
179 |
- cfg-prefix=$(CURDIR)/debian/ser-acc-radius-module \ |
|
172 |
+ cfg-prefix=$(CURDIR)/debian/ser-xmlrpc-module \ |
|
180 | 173 |
cfg-target=/etc/ser/ \ |
181 |
- doc-dir=share/doc/ser-acc-radius-module \ |
|
182 |
- NAME=acc_radius.so modules_names=acc_radius.so EXTRA_DEFS=-DRAD_ACC \ |
|
183 |
- LIBS=-lradiusclient-ng ; \ |
|
184 |
- cd $(ACC_MOD_PATH); $(MAKE) proper NAME=acc_radius.so; cd ../.. |
|
174 |
+ doc-dir=share/doc/ser-xmlrpc-module |
|
175 |
+ |
|
176 |
+ # Install serctl only |
|
177 |
+ cd $(SERCTL_PATH); \ |
|
178 |
+ $(MAKE) install \ |
|
179 |
+ usr_prefix=$(CURDIR)/debian/ser-ctl/usr \ |
|
180 |
+ var_prefix=$(CURDIR)/debian/ser-ctl/var \ |
|
181 |
+ sysconfdir=$(CURDIR)/debian/ser-ctl/etc \ |
|
182 |
+ bindir=$(CURDIR)/debian/ser-ctl/usr/bin \ |
|
183 |
+ libexecdir=$(CURDIR)/debian/ser-ctl/usr/lib \ |
|
184 |
+ datadir=$(CURDIR)/debian/ser-ctl/usr/share \ |
|
185 |
+ docdir=$(CURDIR)/debian/ser-ctl/usr/share/doc \ |
|
186 |
+ prefix=/usr |
|
185 | 187 |
#dh_movefiles |
186 | 188 |
|
187 | 189 |
|
... | ... |
@@ -102,7 +102,8 @@ clean: |
102 | 102 |
# Add here commands to clean up after the build process. |
103 | 103 |
-$(MAKE) \ |
104 | 104 |
include_modules="$(MYSQL_MODULES) $(JABBER_MODULES) $(RADIUS_MODULES)\ |
105 |
- $(CPL_MODULES) $(PA_MODULES) " clean |
|
105 |
+ $(CPL_MODULES) $(PA_MODULES) $(POSTGRES_MODULES)"\ |
|
106 |
+ proper |
|
106 | 107 |
|
107 | 108 |
dh_clean |
108 | 109 |
|
... | ... |
@@ -12,6 +12,11 @@ |
12 | 12 |
# & small fixes (andrei) |
13 | 13 |
# 2003-08-29 replaced modules-install with modules-install-all, to |
14 | 14 |
# install also the modules doc (andrei) |
15 |
+# 2004-07-23 added ext and commented out the radius modules |
|
16 |
+# (the current radius modules depend on radiusclient-ng which |
|
17 |
+# is not yet part of debian) (andrei) |
|
18 |
+# 2005-06-23 added cpl-c, pa & re-enabled radius (with libradiusclient-ng) |
|
19 |
+# (andrei) |
|
15 | 20 |
|
16 | 21 |
|
17 | 22 |
# Uncomment this to turn on verbose mode. |
... | ... |
@@ -25,20 +30,31 @@ export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) nostrip" |
25 | 30 |
|
26 | 31 |
# modules not in the "main" package or unstable |
27 | 32 |
EXCLUDED_MODULES= mysql jabber auth_radius group_radius uri_radius \ |
28 |
- postgress snmp cpl cpl-c ext extcmd |
|
33 |
+ avp_radius pa postgres snmp cpl cpl-c ext extcmd |
|
29 | 34 |
|
30 | 35 |
# modules depending on mysql |
31 | 36 |
MYSQL_MODULES=mysql |
32 | 37 |
#jabber related modules |
33 | 38 |
JABBER_MODULES=jabber |
34 | 39 |
#module depending on radiusclient |
35 |
-RADIUS_MODULES=auth_radius group_radius uri_radius |
|
40 |
+RADIUS_MODULES=auth_radius group_radius uri_radius avp_radius |
|
41 |
+#cpl related modules |
|
42 |
+CPL_MODULES=cpl-c |
|
43 |
+# pa related modules |
|
44 |
+PA_MODULES=pa |
|
45 |
+# postgres modules |
|
46 |
+POSTGRES_MODULES=postgres |
|
47 |
+# acc module |
|
48 |
+ACC_MODULE=acc |
|
36 | 49 |
|
37 | 50 |
# the same but with path prepended (needed for modules="...") |
38 | 51 |
MYSQL_MOD_PATH=$(addprefix modules/, $(MYSQL_MODULES)) |
39 | 52 |
JABBER_MOD_PATH=$(addprefix modules/, $(JABBER_MODULES)) |
40 | 53 |
RADIUS_MOD_PATH=$(addprefix modules/, $(RADIUS_MODULES)) |
41 |
- |
|
54 |
+CPL_MOD_PATH=$(addprefix modules/, $(CPL_MODULES)) |
|
55 |
+PA_MOD_PATH=$(addprefix modules/, $(PA_MODULES)) |
|
56 |
+POSTGRES_MOD_PATH=$(addprefix modules/, $(POSTGRES_MODULES)) |
|
57 |
+ACC_MOD_PATH=$(addprefix modules/, $(ACC_MODULE)) |
|
42 | 58 |
|
43 | 59 |
|
44 | 60 |
|
... | ... |
@@ -68,6 +84,12 @@ build-stamp: configure-stamp |
68 | 84 |
$(MAKE) modules modules="$(MYSQL_MOD_PATH)" cfg-target=/etc/ser/ |
69 | 85 |
$(MAKE) modules modules="$(JABBER_MOD_PATH)" cfg-target=/etc/ser/ |
70 | 86 |
$(MAKE) modules modules="$(RADIUS_MOD_PATH)" cfg-target=/etc/ser/ |
87 |
+ $(MAKE) modules modules="$(CPL_MOD_PATH)" cfg-target=/etc/ser/ |
|
88 |
+ $(MAKE) modules modules="$(PA_MOD_PATH)" cfg-target=/etc/ser/ |
|
89 |
+ # postgres will generate lots of warnings |
|
90 |
+ $(MAKE) modules modules="$(POSTGRES_MOD_PATH)" cfg-target=/etc/ser/ |
|
91 |
+ # acc-db & acc-radius are compiled on install, because they share |
|
92 |
+ # the same source tree with acc |
|
71 | 93 |
#/usr/bin/docbook-to-man debian/ser.sgml > ser.1 |
72 | 94 |
|
73 | 95 |
touch build-stamp |
... | ... |
@@ -79,8 +101,8 @@ clean: |
79 | 101 |
|
80 | 102 |
# Add here commands to clean up after the build process. |
81 | 103 |
-$(MAKE) \ |
82 |
- include_modules="$(MYSQL_MODULES) $(JABBER_MODULES) $(RADIUS_MODULES)"\ |
|
83 |
- clean |
|
104 |
+ include_modules="$(MYSQL_MODULES) $(JABBER_MODULES) $(RADIUS_MODULES)\ |
|
105 |
+ $(CPL_MODULES) $(PA_MODULES) " clean |
|
84 | 106 |
|
85 | 107 |
dh_clean |
86 | 108 |
|
... | ... |
@@ -117,6 +139,48 @@ install: build |
117 | 139 |
cfg-prefix=$(CURDIR)/debian/ser-radius-modules \ |
118 | 140 |
cfg-target=/etc/ser/ \ |
119 | 141 |
doc-dir=share/doc/ser-radius-modules |
142 |
+ #install only the cpl module |
|
143 |
+ $(MAKE) install-modules-all modules="$(CPL_MOD_PATH)" \ |
|
144 |
+ basedir=$(CURDIR)/debian/ser-cpl-module \ |
|
145 |
+ prefix=/usr \ |
|
146 |
+ cfg-prefix=$(CURDIR)/debian/ser-cpl-module \ |
|
147 |
+ cfg-target=/etc/ser/ \ |
|
148 |
+ doc-dir=share/doc/ser-cpl-module |
|
149 |
+ #install only the pa module |
|
150 |
+ $(MAKE) install-modules-all modules="$(PA_MOD_PATH)" \ |
|
151 |
+ basedir=$(CURDIR)/debian/ser-pa-module \ |
|
152 |
+ prefix=/usr \ |
|
153 |
+ cfg-prefix=$(CURDIR)/debian/ser-pa-module \ |
|
154 |
+ cfg-target=/etc/ser/ \ |
|
155 |
+ doc-dir=share/doc/ser-pa-module |
|
156 |
+ #install only the postgres module |
|
157 |
+ $(MAKE) install-modules-all modules="$(POSTGRES_MOD_PATH)" \ |
|
158 |
+ basedir=$(CURDIR)/debian/ser-postgres-module \ |
|
159 |
+ prefix=/usr \ |
|
160 |
+ cfg-prefix=$(CURDIR)/debian/ser-postgres-module \ |
|
161 |
+ cfg-target=/etc/ser/ \ |
|
162 |
+ doc-dir=share/doc/ser-postgres-module |
|
163 |
+ # Ugly hacks to make 2 new versions from acc: ac_db & acc_radius |
|
164 |
+ #install only the acc db version module |
|
165 |
+ cd $(ACC_MOD_PATH); $(MAKE) proper; cd ../..; \ |
|
166 |
+ $(MAKE) install-modules-all modules="$(ACC_MOD_PATH)" \ |
|
167 |
+ basedir=$(CURDIR)/debian/ser-acc-db-module \ |
|
168 |
+ prefix=/usr \ |
|
169 |
+ cfg-prefix=$(CURDIR)/debian/ser-acc-db-module \ |
|
170 |
+ cfg-target=/etc/ser/ \ |
|
171 |
+ doc-dir=share/doc/ser-acc-db-module \ |
|
172 |
+ NAME=acc_db.so modules_names=acc_db.so EXTRA_DEFS=-DSQL_ACC ;\ |
|
173 |
+ cd $(ACC_MOD_PATH); $(MAKE) proper NAME=acc_db.so; cd ../.. |
|
174 |
+ #install only the acc radius version module |
|
175 |
+ $(MAKE) install-modules-all modules="$(ACC_MOD_PATH)" \ |
|
176 |
+ basedir=$(CURDIR)/debian/ser-acc-radius-module \ |
|
177 |
+ prefix=/usr \ |
|
178 |
+ cfg-prefix=$(CURDIR)/debian/ser-acc-radius-module \ |
|
179 |
+ cfg-target=/etc/ser/ \ |
|
180 |
+ doc-dir=share/doc/ser-acc-radius-module \ |
|
181 |
+ NAME=acc_radius.so modules_names=acc_radius.so EXTRA_DEFS=-DRAD_ACC \ |
|
182 |
+ LIBS=-lradiusclient-ng ; \ |
|
183 |
+ cd $(ACC_MOD_PATH); $(MAKE) proper NAME=acc_radius.so; cd ../.. |
|
120 | 184 |
#dh_movefiles |
121 | 185 |
|
122 | 186 |
|
... | ... |
@@ -25,7 +25,7 @@ export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) nostrip" |
25 | 25 |
|
26 | 26 |
# modules not in the "main" package or unstable |
27 | 27 |
EXCLUDED_MODULES= mysql jabber auth_radius group_radius uri_radius \ |
28 |
- postgress snmp cpl cpl-c ext extcmd mangler pdt |
|
28 |
+ postgress snmp cpl cpl-c ext extcmd |
|
29 | 29 |
|
30 | 30 |
# modules depending on mysql |
31 | 31 |
MYSQL_MODULES=mysql |
... | ... |
@@ -10,6 +10,8 @@ |
10 | 10 |
# some ser make options (andrei) |
11 | 11 |
# 2003-06-27 changed to DH_COMPAT 4 (debian/compat) + other filenames |
12 | 12 |
# & small fixes (andrei) |
13 |
+# 2003-08-29 replaced modules-install with modules-install-all, to |
|
14 |
+# install also the modules doc (andrei) |
|
13 | 15 |
|
14 | 16 |
|
15 | 17 |
# Uncomment this to turn on verbose mode. |
... | ... |
@@ -95,23 +97,26 @@ install: build |
95 | 97 |
cfg-prefix=$(CURDIR)/debian/ser \ |
96 | 98 |
cfg-target=/etc/ser/ |
97 | 99 |
# install only the mysql module |
98 |
- $(MAKE) install-modules modules="$(MYSQL_MOD_PATH)" \ |
|
100 |
+ $(MAKE) install-modules-all modules="$(MYSQL_MOD_PATH)" \ |
|
99 | 101 |
basedir=$(CURDIR)/debian/ser-mysql-module \ |
100 | 102 |
prefix=/usr \ |
101 | 103 |
cfg-prefix=$(CURDIR)/debian/ser-mysql-module \ |
102 |
- cfg-target=/etc/ser/ |
|
104 |
+ cfg-target=/etc/ser/ \ |
|
105 |
+ doc-dir=share/doc/ser-mysql-module |
|
103 | 106 |
#install only the jabber module |
104 |
- $(MAKE) install-modules modules="$(JABBER_MOD_PATH)" \ |
|
107 |
+ $(MAKE) install-modules-all modules="$(JABBER_MOD_PATH)" \ |
|
105 | 108 |
basedir=$(CURDIR)/debian/ser-jabber-module \ |
106 | 109 |
prefix=/usr \ |
107 | 110 |
cfg-prefix=$(CURDIR)/debian/ser-jabber-module \ |
108 |
- cfg-target=/etc/ser/ |
|
111 |
+ cfg-target=/etc/ser/ \ |
|
112 |
+ doc-dir=share/doc/ser-jabber-module |
|
109 | 113 |
#install only the radius modules |
110 |
- $(MAKE) install-modules modules="$(RADIUS_MOD_PATH)" \ |
|
114 |
+ $(MAKE) install-modules-all modules="$(RADIUS_MOD_PATH)" \ |
|
111 | 115 |
basedir=$(CURDIR)/debian/ser-radius-modules \ |
112 | 116 |
prefix=/usr \ |
113 | 117 |
cfg-prefix=$(CURDIR)/debian/ser-radius-modules \ |
114 |
- cfg-target=/etc/ser/ |
|
118 |
+ cfg-target=/etc/ser/ \ |
|
119 |
+ doc-dir=share/doc/ser-radius-modules |
|
115 | 120 |
#dh_movefiles |
116 | 121 |
|
117 | 122 |
|
... | ... |
@@ -8,13 +8,18 @@ |
8 | 8 |
# -------- |
9 | 9 |
# 2003-05-30 updated for the 0.8.11 release, changed modules list and |
10 | 10 |
# some ser make options (andrei) |
11 |
+# 2003-06-27 changed to DH_COMPAT 4 (debian/compat) + other filenames |
|
12 |
+# & small fixes (andrei) |
|
11 | 13 |
|
12 | 14 |
|
13 | 15 |
# Uncomment this to turn on verbose mode. |
14 | 16 |
#export DH_VERBOSE=1 |
15 | 17 |
|
16 | 18 |
# This is the debhelper compatibility version to use. |
17 |
-export DH_COMPAT=3 |
|
19 |
+# export DH_COMPAT=4 |
|
20 |
+# -- already set in compat |
|
21 |
+# force no striping (always include debug symbols for now) |
|
22 |
+export DEB_BUILD_OPTIONS:="$(DEB_BUILD_OPTIONS) nostrip" |
|
18 | 23 |
|
19 | 24 |
# modules not in the "main" package or unstable |
20 | 25 |
EXCLUDED_MODULES= mysql jabber auth_radius group_radius uri_radius \ |
... | ... |
@@ -126,7 +131,7 @@ binary-common: |
126 | 131 |
# dh_installemacsen |
127 | 132 |
# dh_installpam |
128 | 133 |
# dh_installmime |
129 |
- dh_installinit --init-script=ser -- defaults 23 |
|
134 |
+ dh_installinit -- defaults 23 |
|
130 | 135 |
dh_installcron |
131 | 136 |
dh_installman |
132 | 137 |
dh_installinfo |
... | ... |
@@ -134,7 +139,7 @@ binary-common: |
134 | 139 |
dh_installchangelogs |
135 | 140 |
dh_link |
136 | 141 |
dh_strip |
137 |
- dh_compress |
|
142 |
+ dh_compress |
|
138 | 143 |
dh_fixperms |
139 | 144 |
# dh_makeshlibs |
140 | 145 |
dh_installdeb |
... | ... |
@@ -3,6 +3,11 @@ |
3 | 3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
4 | 4 |
# |
5 | 5 |
# $Id$ |
6 |
+# |
|
7 |
+# History: |
|
8 |
+# -------- |
|
9 |
+# 2003-05-30 updated for the 0.8.11 release, changed modules list and |
|
10 |
+# some ser make options (andrei) |
|
6 | 11 |
|
7 | 12 |
|
8 | 13 |
# Uncomment this to turn on verbose mode. |
... | ... |
@@ -11,6 +16,24 @@ |
11 | 16 |
# This is the debhelper compatibility version to use. |
12 | 17 |
export DH_COMPAT=3 |
13 | 18 |
|
19 |
+# modules not in the "main" package or unstable |
|
20 |
+EXCLUDED_MODULES= mysql jabber auth_radius group_radius uri_radius \ |
|
21 |
+ postgress snmp cpl cpl-c ext extcmd mangler pdt |
|
22 |
+ |
|
23 |
+# modules depending on mysql |
|
24 |
+MYSQL_MODULES=mysql |
|
25 |
+#jabber related modules |
|
26 |
+JABBER_MODULES=jabber |
|
27 |
+#module depending on radiusclient |
|
28 |
+RADIUS_MODULES=auth_radius group_radius uri_radius |
|
29 |
+ |
|
30 |
+# the same but with path prepended (needed for modules="...") |
|
31 |
+MYSQL_MOD_PATH=$(addprefix modules/, $(MYSQL_MODULES)) |
|
32 |
+JABBER_MOD_PATH=$(addprefix modules/, $(JABBER_MODULES)) |
|
33 |
+RADIUS_MOD_PATH=$(addprefix modules/, $(RADIUS_MODULES)) |
|
34 |
+ |
|
35 |
+ |
|
36 |
+ |
|
14 | 37 |
|
15 | 38 |
|
16 | 39 |
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
... | ... |
@@ -34,9 +57,10 @@ build-stamp: configure-stamp |
34 | 57 |
dh_testdir |
35 | 58 |
|
36 | 59 |
# Add here commands to compile the package. |
37 |
- $(MAKE) all exclude_modules="mysql jabber" cfg-target=/etc/ser/ |
|
38 |
- $(MAKE) modules modules=modules/mysql cfg-target=/etc/ser/ |
|
39 |
- $(MAKE) modules modules=modules/jabber cfg-target=/etc/ser/ |
|
60 |
+ $(MAKE) all skip_modules="$(EXCLUDED_MODULES)" cfg-target=/etc/ser/ |
|
61 |
+ $(MAKE) modules modules="$(MYSQL_MOD_PATH)" cfg-target=/etc/ser/ |
|
62 |
+ $(MAKE) modules modules="$(JABBER_MOD_PATH)" cfg-target=/etc/ser/ |
|
63 |
+ $(MAKE) modules modules="$(RADIUS_MOD_PATH)" cfg-target=/etc/ser/ |
|
40 | 64 |
#/usr/bin/docbook-to-man debian/ser.sgml > ser.1 |
41 | 65 |
|
42 | 66 |
touch build-stamp |
... | ... |
@@ -47,7 +71,9 @@ clean: |
47 | 71 |
rm -f build-stamp configure-stamp |
48 | 72 |
|
49 | 73 |
# Add here commands to clean up after the build process. |
50 |
- -$(MAKE) clean |
|
74 |
+ -$(MAKE) \ |
|
75 |
+ include_modules="$(MYSQL_MODULES) $(JABBER_MODULES) $(RADIUS_MODULES)"\ |
|
76 |
+ clean |
|
51 | 77 |
|
52 | 78 |
dh_clean |
53 | 79 |
|
... | ... |
@@ -58,23 +84,29 @@ install: build |
58 | 84 |
dh_installdirs |
59 | 85 |
|
60 | 86 |
# Add here commands to install the package into debian/ser |
61 |
- $(MAKE) install exclude_modules="mysql jabber" \ |
|
87 |
+ $(MAKE) install skip_modules="$(EXCLUDED_MODULES)" \ |
|
62 | 88 |
basedir=$(CURDIR)/debian/ser \ |
63 | 89 |
prefix=/usr \ |
64 | 90 |
cfg-prefix=$(CURDIR)/debian/ser \ |
65 | 91 |
cfg-target=/etc/ser/ |
66 | 92 |
# install only the mysql module |
67 |
- $(MAKE) install-modules modules=modules/mysql \ |
|
93 |
+ $(MAKE) install-modules modules="$(MYSQL_MOD_PATH)" \ |
|
68 | 94 |
basedir=$(CURDIR)/debian/ser-mysql-module \ |
69 | 95 |
prefix=/usr \ |
70 | 96 |
cfg-prefix=$(CURDIR)/debian/ser-mysql-module \ |
71 | 97 |
cfg-target=/etc/ser/ |
72 | 98 |
#install only the jabber module |
73 |
- $(MAKE) install-modules modules=modules/jabber \ |
|
99 |
+ $(MAKE) install-modules modules="$(JABBER_MOD_PATH)" \ |
|
74 | 100 |
basedir=$(CURDIR)/debian/ser-jabber-module \ |
75 | 101 |
prefix=/usr \ |
76 | 102 |
cfg-prefix=$(CURDIR)/debian/ser-jabber-module \ |
77 | 103 |
cfg-target=/etc/ser/ |
104 |
+ #install only the radius modules |
|
105 |
+ $(MAKE) install-modules modules="$(RADIUS_MOD_PATH)" \ |
|
106 |
+ basedir=$(CURDIR)/debian/ser-radius-modules \ |
|
107 |
+ prefix=/usr \ |
|
108 |
+ cfg-prefix=$(CURDIR)/debian/ser-radius-modules \ |
|
109 |
+ cfg-target=/etc/ser/ |
|
78 | 110 |
#dh_movefiles |
79 | 111 |
|
80 | 112 |
|
- update ver. no in Makefile
- modified debian, rh & suse
(build a separate jabber module due to expat dependency)
- modified sun package (added some missing files)
Warning: I did a little rpm/*.spec cleanup (e.g make install installs all the
binaries a.s.o). RH stuff works, Suse not tested.
... | ... |
@@ -34,8 +34,9 @@ build-stamp: configure-stamp |
34 | 34 |
dh_testdir |
35 | 35 |
|
36 | 36 |
# Add here commands to compile the package. |
37 |
- $(MAKE) all exclude_modules=mysql cfg-target=/etc/ser/ |
|
37 |
+ $(MAKE) all exclude_modules="mysql jabber" cfg-target=/etc/ser/ |
|
38 | 38 |
$(MAKE) modules modules=modules/mysql cfg-target=/etc/ser/ |
39 |
+ $(MAKE) modules modules=modules/jabber cfg-target=/etc/ser/ |
|
39 | 40 |
#/usr/bin/docbook-to-man debian/ser.sgml > ser.1 |
40 | 41 |
|
41 | 42 |
touch build-stamp |
... | ... |
@@ -57,7 +58,7 @@ install: build |
57 | 58 |
dh_installdirs |
58 | 59 |
|
59 | 60 |
# Add here commands to install the package into debian/ser |
60 |
- $(MAKE) install exclude_modules=mysql \ |
|
61 |
+ $(MAKE) install exclude_modules="mysql jabber" \ |
|
61 | 62 |
basedir=$(CURDIR)/debian/ser \ |
62 | 63 |
prefix=/usr \ |
63 | 64 |
cfg-prefix=$(CURDIR)/debian/ser \ |
... | ... |
@@ -68,6 +69,12 @@ install: build |
68 | 69 |
prefix=/usr \ |
69 | 70 |
cfg-prefix=$(CURDIR)/debian/ser-mysql-module \ |
70 | 71 |
cfg-target=/etc/ser/ |
72 |
+ #install only the jabber module |
|
73 |
+ $(MAKE) install-modules modules=modules/jabber \ |
|
74 |
+ basedir=$(CURDIR)/debian/ser-jabber-module \ |
|
75 |
+ prefix=/usr \ |
|
76 |
+ cfg-prefix=$(CURDIR)/debian/ser-jabber-module \ |
|
77 |
+ cfg-target=/etc/ser/ |
|
71 | 78 |
#dh_movefiles |
72 | 79 |
|
73 | 80 |
|
... | ... |
@@ -34,8 +34,8 @@ build-stamp: configure-stamp |
34 | 34 |
dh_testdir |
35 | 35 |
|
36 | 36 |
# Add here commands to compile the package. |
37 |
- $(MAKE) all |
|
38 |
- $(MAKE) modules modules=modules/mysql |
|
37 |
+ $(MAKE) all exclude_modules=mysql cfg-target=/etc/ser/ |
|
38 |
+ $(MAKE) modules modules=modules/mysql cfg-target=/etc/ser/ |
|
39 | 39 |
#/usr/bin/docbook-to-man debian/ser.sgml > ser.1 |
40 | 40 |
|
41 | 41 |
touch build-stamp |
... | ... |
@@ -57,14 +57,17 @@ install: build |
57 | 57 |
dh_installdirs |
58 | 58 |
|
59 | 59 |
# Add here commands to install the package into debian/ser |
60 |
- $(MAKE) install \ |
|
61 |
- prefix=$(CURDIR)/debian/ser/usr \ |
|
62 |
- cfg-prefix=$(CURDIR)/debian/ser |
|
63 |
- |
|
60 |
+ $(MAKE) install exclude_modules=mysql \ |
|
61 |
+ basedir=$(CURDIR)/debian/ser \ |
|
62 |
+ prefix=/usr \ |
|
63 |
+ cfg-prefix=$(CURDIR)/debian/ser \ |
|
64 |
+ cfg-target=/etc/ser/ |
|
64 | 65 |
# install only the mysql module |
65 | 66 |
$(MAKE) install-modules modules=modules/mysql \ |
66 |
- prefix=$(CURDIR)/debian/ser-mysql-module/usr \ |
|
67 |
- cfg-prefix=$(CURDIR)/debian/ser-mysql-module |
|
67 |
+ basedir=$(CURDIR)/debian/ser-mysql-module \ |
|
68 |
+ prefix=/usr \ |
|
69 |
+ cfg-prefix=$(CURDIR)/debian/ser-mysql-module \ |
|
70 |
+ cfg-target=/etc/ser/ |
|
68 | 71 |
#dh_movefiles |
69 | 72 |
|
70 | 73 |
|
... | ... |
@@ -84,7 +87,7 @@ binary-common: |
84 | 87 |
# dh_installemacsen |
85 | 88 |
# dh_installpam |
86 | 89 |
# dh_installmime |
87 |
-# dh_installinit |
|
90 |
+ dh_installinit |
|
88 | 91 |
dh_installcron |
89 | 92 |
dh_installman |
90 | 93 |
dh_installinfo |
... | ... |
@@ -34,7 +34,8 @@ build-stamp: configure-stamp |
34 | 34 |
dh_testdir |
35 | 35 |
|
36 | 36 |
# Add here commands to compile the package. |
37 |
- $(MAKE) all modules="modules/tm modules/textops modules/print" |
|
37 |
+ $(MAKE) all |
|
38 |
+ $(MAKE) modules modules=modules/mysql |
|
38 | 39 |
#/usr/bin/docbook-to-man debian/ser.sgml > ser.1 |
39 | 40 |
|
40 | 41 |
touch build-stamp |
... | ... |
@@ -56,17 +57,23 @@ install: build |
56 | 57 |
dh_installdirs |
57 | 58 |
|
58 | 59 |
# Add here commands to install the package into debian/ser |
59 |
- $(MAKE) install modules="modules/tm modules/textops modules/print" \ |
|
60 |
+ $(MAKE) install \ |
|
60 | 61 |
prefix=$(CURDIR)/debian/ser/usr \ |
61 | 62 |
cfg-prefix=$(CURDIR)/debian/ser |
63 |
+ |
|
64 |
+ # install only the mysql module |
|
65 |
+ $(MAKE) install-modules modules=modules/mysql \ |
|
66 |
+ prefix=$(CURDIR)/debian/ser-mysql-module/usr \ |
|
67 |
+ cfg-prefix=$(CURDIR)/debian/ser-mysql-module |
|
68 |
+ #dh_movefiles |
|
62 | 69 |
|
63 | 70 |
|
64 |
-# Build architecture-independent files here. |
|
65 |
-binary-indep: build install |
|
66 |
-# We have nothing to do by default. |
|
67 | 71 |
|
68 |
-# Build architecture-dependent files here. |
|
69 |
-binary-arch: build install |
|
72 |
+# This single target is used to build all the packages, all at once, or |
|
73 |
+# one at a time. So keep in mind: any options passed to commands here will |
|
74 |
+# affect _all_ packages. Anything you want to only affect one package |
|
75 |
+# should be put in another target, such as the install target. |
|
76 |
+binary-common: |
|
70 | 77 |
dh_testdir |
71 | 78 |
dh_testroot |
72 | 79 |
# dh_installdebconf |
... | ... |
@@ -95,5 +102,20 @@ binary-arch: build install |
95 | 102 |
dh_md5sums |
96 | 103 |
dh_builddeb |
97 | 104 |
|
105 |
+# Build architecture-independent packages using the common target |
|
106 |
+binary-indep: build install |
|
107 |
+# (Uncomment this next line if you have such packages.) |
|
108 |
+# $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common |
|
109 |
+# We have nothing to do by default. |
|
110 |
+ |
|
111 |
+ |
|
112 |
+# Build architecture-dependent packages using the common target |
|
113 |
+binary-arch: build install |
|
114 |
+ $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common |
|
115 |
+ |
|
116 |
+# Any other binary targets build just one binary package at a time. |
|
117 |
+binary-%: build install |
|
118 |
+ $(MAKE) -f debian/rules binary-common DH_OPTIONS=-p$* |
|
119 |
+ |
|
98 | 120 |
binary: binary-indep binary-arch |
99 | 121 |
.PHONY: build clean binary-indep binary-arch binary install configure |
1 | 1 |
new file mode 100755 |
... | ... |
@@ -0,0 +1,99 @@ |
1 |
+#!/usr/bin/make -f |
|
2 |
+# Sample debian/rules that uses debhelper. |
|
3 |
+# GNU copyright 1997 to 1999 by Joey Hess. |
|
4 |
+# |
|
5 |
+# $Id$ |
|
6 |
+ |
|
7 |
+ |
|
8 |
+# Uncomment this to turn on verbose mode. |
|
9 |
+#export DH_VERBOSE=1 |
|
10 |
+ |
|
11 |
+# This is the debhelper compatibility version to use. |
|
12 |
+export DH_COMPAT=3 |
|
13 |
+ |
|
14 |
+ |
|
15 |
+ |
|
16 |
+ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
|
17 |
+ CFLAGS += -g |
|
18 |
+endif |
|
19 |
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
|
20 |
+ INSTALL_PROGRAM += -s |
|
21 |
+endif |
|
22 |
+ |
|
23 |
+configure: configure-stamp |
|
24 |
+configure-stamp: |
|
25 |
+ dh_testdir |
|
26 |
+ # Add here commands to configure the package. |
|
27 |