Skip to content

Commit

Permalink
* Check for freeradius libs in Makefile
Browse files Browse the repository at this point in the history
* Check for json lib include paths in Makefile
* Update debian/control with new dependency names and standards
* Update debian/rules to remove deprecated dpatch
  • Loading branch information
User authored and User committed Jun 9, 2015
1 parent e72d1ef commit 4027ab2
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 8 deletions.
14 changes: 14 additions & 0 deletions Makefile
Expand Up @@ -35,6 +35,13 @@
#TLS=1
#SCTP=1
#FREERADIUS=1
# freeradius libs check (must be done in toplevel makefile)
ifneq ("$(wildcard /usr/include/freeradius-client.h)","")
FREERADIUS=1
else
#FREERADIUS=0
endif

NICER?=1
auto_gen=lex.yy.c cfg.tab.c #lexx, yacc etc

Expand All @@ -52,6 +59,13 @@ DEFS:=
TLS?=
SCTP?=

# json libs check
ifneq ("$(wildcard /usr/include/json-c/json.h)","")
DEFS += -I/usr/include/json-c
else
DEFS += -I/usr/include/json
endif

# create the template only if the file is not yet created
ifeq (,$(wildcard Makefile.conf))
$(shell cp Makefile.conf.template Makefile.conf)
Expand Down
4 changes: 2 additions & 2 deletions packaging/debian/control
Expand Up @@ -3,8 +3,8 @@ Section: net
Priority: optional
Maintainer: Bogdan Iancu <bogdan@opensips.org>
Uploaders: Bogdan Iancu <bogdan@opensips.org>
Build-Depends: debhelper (>= 5), dpatch, libmysqlclient-dev, libexpat1-dev, libxml2-dev, libpq-dev, libradiusclient-ng-dev, flex, bison, zlib1g-dev, unixodbc-dev, libxmlrpc-c3-dev, libperl-dev, libsnmp-dev, dpkg-dev (>= 1.13.19), libdb-dev (>= 4.6.19), xsltproc, libconfuse-dev, libldap2-dev, libcurl4-gnutls-dev, libgeoip-dev (>= 1.4.4), libpcre3-dev, libmemcached-dev, libjson0-dev, libmicrohttpd-dev, libhiredis-dev, librabbitmq-dev, liblua5.1-dev, libncurses5-dev, libmemcache-dev
Standards-Version: 3.9.1
Build-Depends: debhelper (>= 9), libmysqlclient-dev, libexpat1-dev, libxml2-dev, libpq-dev, flex, bison, zlib1g-dev, unixodbc-dev, libxmlrpc-core-c3-dev, libperl-dev, libsnmp-dev, dpkg-dev (>= 1.16.1.1), libdb-dev (>= 4.6.19), xsltproc, libconfuse-dev, libldap2-dev, libcurl4-gnutls-dev, libgeoip-dev (>= 1.4.4), libpcre3-dev, libmemcached-dev, libjson0-dev, libmicrohttpd-dev, libhiredis-dev, librabbitmq-dev, liblua5.1-dev, libncurses5-dev, libfreeradius-client-dev | libradiusclient-ng-dev, libjson0-dev, libsctp-dev
Standards-Version: 3.9.5
Homepage: http://www.opensips.org/

Package: opensips
Expand Down
8 changes: 2 additions & 6 deletions packaging/debian/rules
Expand Up @@ -26,10 +26,6 @@ URL := http://opensips.org/pub/opensips/$(UPVERSION)/src/opensips-$(UPVERSION)-t
# Uncomment this to turn on verbose mode.
# export DH_VERBOSE=1

# Include dpatch rules
include /usr/share/dpatch/dpatch.make


# Do we want the TLS version ?
# Disabled by default due to license issues, set to non-void to enable
TLS=
Expand All @@ -41,7 +37,7 @@ ALL_MODPKG_LIST := \
MYSQL POSTGRES UNIXODBC JABBER CPL RADIUS \
PRESENCE XMLRPC PERL SNMPSTATS XMPP CROUTE BERKELEY LDAP \
GEOIP REGEX IDENTITY B2BUA DBHTTP DIALPLAN MEMCACHED JSON \
REDIS RABBITMQ LUA HTTP
REDIS RABBITMQ HTTP

ifeq ($(BUILD_MODPKG_LIST),NONE)
override BUILD_MODPKG_LIST :=
Expand Down Expand Up @@ -184,7 +180,7 @@ configure-stamp:


build: build-stamp
build-stamp: patch-stamp configure-stamp
build-stamp: configure-stamp
dh_testdir

# Add here commands to compile the package.
Expand Down

0 comments on commit 4027ab2

Please sign in to comment.