diff options
Diffstat (limited to 'net/kamailio/files')
-rw-r--r-- | net/kamailio/files/kamailio.in | 29 | ||||
-rw-r--r-- | net/kamailio/files/patch-Makefile | 22 | ||||
-rw-r--r-- | net/kamailio/files/patch-Makefile.defs | 52 | ||||
-rw-r--r-- | net/kamailio/files/patch-modules__db_berkeley__Makefile | 11 | ||||
-rw-r--r-- | net/kamailio/files/patch-modules__db_oracle__Makefile | 11 | ||||
-rw-r--r-- | net/kamailio/files/patch-modules__db_sqlite__Makefile | 11 | ||||
-rw-r--r-- | net/kamailio/files/patch-modules__tls__Makefile | 11 | ||||
-rw-r--r-- | net/kamailio/files/patch-utils__kamctl__Makefile | 21 |
8 files changed, 168 insertions, 0 deletions
diff --git a/net/kamailio/files/kamailio.in b/net/kamailio/files/kamailio.in new file mode 100644 index 000000000000..c642807d0dc6 --- /dev/null +++ b/net/kamailio/files/kamailio.in @@ -0,0 +1,29 @@ +#!/bin/sh +# +# $FreeBSD: net/kamailio/files/kamailio.in +# +# PROVIDE: kamailio +# REQUIRE: LOGIN +# KEYWORD: shutdown +# +# Add the following line to /etc/rc.conf to enable this service +# at system startup: +# +# kamailio_enable (bool): Set to NO by default. +# Set it to YES to enable kamailio. +# + +. /etc/rc.subr + +name=kamailio +rcvar=kamailio_enable + +load_rc_config ${name} + +: ${kamailio_enable:=NO} + +command="/usr/local/sbin/kamailio" +required_files="/usr/local/etc/kamailio/kamailio.cfg" + + +run_rc_command $1 diff --git a/net/kamailio/files/patch-Makefile b/net/kamailio/files/patch-Makefile new file mode 100644 index 000000000000..a5a88fe0b6d3 --- /dev/null +++ b/net/kamailio/files/patch-Makefile @@ -0,0 +1,22 @@ +--- Makefile.orig 2014-08-06 15:29:50 UTC ++++ Makefile +@@ -95,7 +95,7 @@ + # whether or not to install $(MAIN_NAME).cfg or just $(MAIN_NAME).cfg.default + # ($(MAIN_NAME).cfg will never be overwritten by make install, this is usefull + # when creating packages) +-skip_cfg_install?= ++skip_cfg_install?=yes + + #extra modules to exclude + skip_modules?= +@@ -820,8 +820,8 @@ + fi ; \ + done; true + # radius dictionary +- $(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/dictionary.$(CFG_NAME) +- $(INSTALL_CFG) etc/dictionary.$(CFG_NAME) $(cfg_prefix)/$(cfg_dir) ++ $(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/dictionary.$(CFG_NAME).sample ++ $(INSTALL_CFG) etc/dictionary.$(CFG_NAME) $(cfg_prefix)/$(cfg_dir)/dictionary.$(CFG_NAME).sample + + install-bin: $(bin_prefix)/$(bin_dir) $(NAME) + $(INSTALL_TOUCH) $(bin_prefix)/$(bin_dir)/$(NAME) diff --git a/net/kamailio/files/patch-Makefile.defs b/net/kamailio/files/patch-Makefile.defs new file mode 100644 index 000000000000..0602f291f932 --- /dev/null +++ b/net/kamailio/files/patch-Makefile.defs @@ -0,0 +1,52 @@ +--- Makefile.defs.orig 2014-09-18 16:09:15.000000000 +0200 ++++ Makefile.defs 2014-09-19 08:27:49.000000000 +0200 +@@ -265,7 +265,7 @@ + + # find compiler name & version + ifeq ($(CC),) +- CC=gcc ++ CC=clang + endif + LD= $(CC) + CC_LONGVER:=$(shell if $(CC) -v 2>/dev/null; then \ +@@ -279,7 +279,7 @@ + #find-out the compiler's name + + ifneq (,$(findstring gcc, $(CC_LONGVER))) +- CC_NAME=gcc ++ CC_NAME=clang + RPAREN=) + CC_VER:=$(word 1,$(CC)) $(shell $(CC) - --version|head -n 1|\ + sed -e 's/([^$(RPAREN)]*)//g' \ +@@ -432,7 +432,7 @@ + ifeq ($(LIBDIR),) + ARCHBSZ= $(shell echo $(ARCH) | sed -e 's/.*64.*/64b/') + ifeq ($(ARCHBSZ),64b) +- LIBDIR = lib64 ++ LIBDIR = lib + else + LIBDIR = lib + endif +@@ -946,11 +946,8 @@ + ifeq ($(CC_NAME), clang) + $(call set_if_empty,CPU,athlon64) + C_DEFS+=-DCC_GCC_LIKE_ASM +- CFLAGS+=-m32 +- $(CC_OPT) \ +- \ +- -mtune=$(CPU) +- LDFLAGS+=-m32 ++ CFLAGS+=-m32 $(CC_OPT) -mtune=$(CPU) ++ LDFLAGS+=-m32 + else # CC_NAME, clang + ifeq ($(CC_NAME), icc) + C_DEFS+=-DCC_GCC_LIKE_ASM +@@ -1745,7 +1742,7 @@ + endif + YACC_FLAGS=-d -b cfg + # on solaris add -lxnet (e.g. LIBS= -lxnet) +-LIBS= -ldl -lresolv ++LIBS= + LIB_PREFIX:=lib + LIB_SUFFIX:=.so + diff --git a/net/kamailio/files/patch-modules__db_berkeley__Makefile b/net/kamailio/files/patch-modules__db_berkeley__Makefile new file mode 100644 index 000000000000..8d117ef0b2e8 --- /dev/null +++ b/net/kamailio/files/patch-modules__db_berkeley__Makefile @@ -0,0 +1,11 @@ +--- modules/db_berkeley/Makefile.orig 2014-08-06 15:29:51 UTC ++++ modules/db_berkeley/Makefile +@@ -25,7 +25,7 @@ + # extra install for kamailio + + install-berkeley-scripts: $(bin_prefix)/$(bin_dir) +- BERKELEYDBON=yes make -C ../../utils/kamctl/ install-modules ++ BERKELEYDBON=yes $(MAKE) -C ../../utils/kamctl/ install-modules + + install-scripts: install-berkeley-scripts + diff --git a/net/kamailio/files/patch-modules__db_oracle__Makefile b/net/kamailio/files/patch-modules__db_oracle__Makefile new file mode 100644 index 000000000000..d6c37951ddbc --- /dev/null +++ b/net/kamailio/files/patch-modules__db_oracle__Makefile @@ -0,0 +1,11 @@ +--- modules/db_oracle/Makefile.orig 2014-08-06 15:29:51 UTC ++++ modules/db_oracle/Makefile +@@ -71,7 +71,7 @@ + # extra install for kamailio + + install-oracle-scripts: $(bin_prefix)/$(bin_dir) +- ORACLEON=yes make -C ../../utils/kamctl/ install-modules ++ ORACLEON=yes $(MAKE) -C ../../utils/kamctl/ install-modules + + install-scripts: install-oracle-scripts + diff --git a/net/kamailio/files/patch-modules__db_sqlite__Makefile b/net/kamailio/files/patch-modules__db_sqlite__Makefile new file mode 100644 index 000000000000..b40a01c50f28 --- /dev/null +++ b/net/kamailio/files/patch-modules__db_sqlite__Makefile @@ -0,0 +1,11 @@ +--- modules/db_sqlite/Makefile.orig 2014-08-06 15:29:51 UTC ++++ modules/db_sqlite/Makefile +@@ -23,7 +23,7 @@ + # extra install for kamailio + + install-sqlite-scripts: $(bin_prefix)/$(bin_dir) +- SQLITEON=yes make -C ../../utils/kamctl/ install-modules ++ SQLITEON=yes $(MAKE) -C ../../utils/kamctl/ install-modules + + install-scripts: install-sqlite-scripts + diff --git a/net/kamailio/files/patch-modules__tls__Makefile b/net/kamailio/files/patch-modules__tls__Makefile new file mode 100644 index 000000000000..85963f7075ad --- /dev/null +++ b/net/kamailio/files/patch-modules__tls__Makefile @@ -0,0 +1,11 @@ +--- modules/tls/Makefile.orig 2014-08-06 15:29:51 UTC ++++ modules/tls/Makefile +@@ -9,6 +9,8 @@ + auto_gen= + NAME=tls.so + ++skip_cfg_install?=yes ++ + ifeq ($(CROSS_COMPILE),) + SSL_BUILDER=$(shell \ + if pkg-config --exists libssl; then \ diff --git a/net/kamailio/files/patch-utils__kamctl__Makefile b/net/kamailio/files/patch-utils__kamctl__Makefile new file mode 100644 index 000000000000..a38a291d1cd5 --- /dev/null +++ b/net/kamailio/files/patch-utils__kamctl__Makefile @@ -0,0 +1,21 @@ +--- utils/kamctl/Makefile.orig 2014-08-06 15:29:51 UTC ++++ utils/kamctl/Makefile +@@ -3,6 +3,8 @@ + include $(COREPATH)/Makefile.defs + include $(COREPATH)/config.mak + ++skip_cfg_install?=yes ++ + all: + @echo "No compilation needed for kamctl" + +@@ -15,7 +17,8 @@ + $(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/kamctlrc.sample + $(INSTALL_CFG) kamctlrc \ + $(cfg_prefix)/$(cfg_dir)/kamctlrc.sample +- if [ ! -f $(cfg_prefix)/$(cfg_dir)/kamctlrc ]; then \ ++ if [ -z "${skip_cfg_install}" -a \ ++ ! -f $(cfg_prefix)/$(cfg_dir)/kamctlrc ]; then \ + mv -f $(cfg_prefix)/$(cfg_dir)/kamctlrc.sample \ + $(cfg_prefix)/$(cfg_dir)/kamctlrc; \ + fi |