freebsd-ports/net/ser/files/patch-Makefile
Maxim Sobolev dfa121d9d9 Merge in latest local changes and improvements:
o Allow radius and presence modules to be turned off;

o don't override CFLAGS;

o don't duplicate error messages to the console;

o postgresql backend doesn't set NULL flag on results properly, so that
  don't use VAL_NULL() macros on them;

o reconnect to MySQL db when necessary;

o relax transaction matching rules, so that it works with wider range of
  phones;

o add some missed sanity checks in usrloc;

o ignore incoming UDP messages that are shorter than certain limin (128
  bytes). They cannot be SIP messages anyway.
2006-04-21 06:30:43 +00:00

45 lines
1.5 KiB
Text

$FreeBSD$
--- Makefile.orig
+++ Makefile
@@ -46,13 +46,12 @@
skip_modules?=
# if not set on the cmd. line or the env, exclude this modules:
-exclude_modules?= cpl ext extcmd \
- postgres snmp \
+exclude_modules?= cpl extcmd \
+ $(POSTGRESQL) snmp \
im \
- jabber mysql \
+ jabber $(MYSQL) \
cpl-c \
- auth_radius group_radius uri_radius avp_radius \
- pa
+ $(RADIUS) $(PA)
# always exclude the CVS dir
override exclude_modules+= CVS $(skip_modules)
@@ -268,7 +267,7 @@
chmod 644 $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
if [ -z "${skip_cfg_install}" -a \
! -f $(cfg-prefix)/$(cfg-dir)ser.cfg ]; then \
- mv -f $(cfg-prefix)/$(cfg-dir)ser.cfg.sample \
+ cp $(cfg-prefix)/$(cfg-dir)ser.cfg.sample \
$(cfg-prefix)/$(cfg-dir)ser.cfg; \
fi
# radius dictionary
@@ -280,10 +279,10 @@
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/ser
$(INSTALL-BIN) ser $(bin-prefix)/$(bin-dir)
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/sc
- $(INSTALL-BIN) scripts/sc $(bin-prefix)/$(bin-dir)
+ $(INSTALL-SCRIPT) scripts/sc $(bin-prefix)/$(bin-dir)
mv -f $(bin-prefix)/$(bin-dir)/sc $(bin-prefix)/$(bin-dir)/serctl
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/ser_mysql.sh
- $(INSTALL-BIN) scripts/ser_mysql.sh $(bin-prefix)/$(bin-dir)
+ $(INSTALL-SCRIPT) scripts/ser_mysql.sh $(bin-prefix)/$(bin-dir)
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/gen_ha1
$(INSTALL-BIN) utils/gen_ha1/gen_ha1 $(bin-prefix)/$(bin-dir)
$(INSTALL-TOUCH) $(bin-prefix)/$(bin-dir)/serunix