Skip to content

Commit 83c5a95

Browse files
committed
Adjusted build files for pruned version of the repository. From this point on, configuration related projects goes to this repo while SIP core modules go to the sipXrouter repository.
1 parent daef476 commit 83c5a95

File tree

14 files changed

+38
-190
lines changed

14 files changed

+38
-190
lines changed

config/dart.m4

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ AC_DEFUN([CHECK_DART_SDK],
88
SF_MISSING_DEP([Cannot find dart2js in dart sdk at ${DART_HOME}/bin/dart2js])
99
])
1010
else
11-
candidates="${DART_HOME} /opt/dart/dart-sdk /opt/dart-sdk ~/dart-sdk"
11+
candidates="${DART_HOME} / /usr/lib/dart /opt/dart/dart-sdk /opt/dart-sdk ~/dart-sdk"
1212
for candidate in $candidates; do
1313
AC_CHECK_FILE([$candidate/bin/dart2js],
1414
[

config/revision-gen

+4-15
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55
# the revision. Source build therefore should save revision into the tarball
66

77
if [ "$#" == "0" ]; then
8-
echo "Usage: $0 version. Example: $0 1.2.3" 1>&2
9-
exit 1
8+
VERSION="15.06"
9+
else
10+
VERSION=$1
1011
fi
1112

1213
if test -f ./tarball-revision; then
@@ -23,19 +24,7 @@ if test -d ../.git; then
2324
parent_rev=${parent%.*}
2425
fi
2526

26-
VERSION=$1
27-
if [ $VERSION == "15.06" ]; then
28-
VERSION="4.6.0"
29-
fi
30-
if [ $VERSION == "15.05" ]; then
31-
VERSION="4.6.0"
32-
fi
33-
if [ $VERSION == "15.04" ]; then
34-
VERSION="4.6.0"
35-
fi
36-
if [ $VERSION == "1.4.4" ]; then
37-
VERSION="1.0.7"
38-
fi
27+
3928
VER_REV=`git describe --abbrev=5 --match="v${VERSION}" HEAD`
4029
if [ "$?" != "0" ]; then
4130
echo "Could not find tag v$VERSION" 1>&2

config/sipXlib2.m4

+2-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ test -n "$SIPXPBXGROUP" || SIPXPBXGROUP=$SIPXPBXUSER
4444

4545
AC_ARG_VAR(PACKAGE_REVISION, [Package revision number. Default is based on date rpm is built. Allowed values: stable, unstable, developer or supply your own value of command.])
4646
if test -z "$PACKAGE_REVISION" || test "$PACKAGE_REVISION" == "developer" ; then
47-
PACKAGE_REVISION=`date +%Y%m%d%H%M%S`
47+
#PACKAGE_REVISION=`date +%Y%m%d%H%M%S`
48+
PACKAGE_REVISION=`cd ${srcdir} && ./config/revision-gen ${PACKAGE_VERSION}`
4849
else
4950
case ${PACKAGE_REVISION} in
5051
unstable )

mak/build.mk.in

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ $(foreach M,$(git_submodules) $(git_custommodules),$(eval $(M)_GIT_SUBMODULE = $
2121
include $(SRC)/mak/modules.mk
2222

2323
# pull in dependency make fragments
24-
include $(SRC)/mak/*.sipxecs.mk
25-
include $(SRC)/*/.sipxecs.mk
24+
#include $(SRC)/mak/*.sipxecs.mk
25+
#include $(SRC)/*/.sipxecs.mk
2626

2727
# Example .modules-include files
2828
# - Includes sipxecs core pieces and Italian language pack

mak/modules.mk

+5-154
Original file line numberDiff line numberDiff line change
@@ -6,177 +6,28 @@
66
# should be listed after it's dependencies. No circular dependecies
77
# allowed.
88
sipx_core = \
9-
sipXportLib \
10-
sipXtackLib \
11-
sipXresiprocate \
12-
oss_core \
13-
sipXmediaLib \
14-
sipXmediaAdapterLib \
15-
sipXcallLib \
16-
sipXeslLib \
179
sipXsupervisor \
18-
sipXcommserverLib \
19-
sipXsqa \
2010
sipXcommons \
21-
sipXrelay \
22-
sipXbridge \
2311
sipXcdr \
2412
sipXconfig \
25-
sipXcom \
26-
sipXopenfire \
27-
sipXcounterpath \
28-
sipXprompts \
29-
sipXivr \
30-
sipXproxy \
31-
sipXpublisher \
32-
sipXregistry \
33-
sipXpage \
3413
sipXpolycom \
35-
sipXrls \
36-
sipXsaa \
37-
sipXyard \
38-
sipXrelease \
39-
sipXecs
40-
41-
#additional configure options for sipXresiprocate package
42-
sipXresiprocate_OPTIONS = --with-c-ares --with-ssl --with-repro --enable-ipv6 --with-tfm
43-
44-
# sipxecs projects that are NOT essential for a running communication system
45-
sipx_extra = \
4614
sipXacccode \
47-
sipXcustomCallerId \
4815
sipXviewer \
49-
sipXimbot \
50-
sipXexample \
5116
sipXrest \
52-
sipXcallController \
5317
sipXcdrLog \
54-
sipXrecording \
55-
sipXhomer \
56-
sipXcallQueue \
57-
sipXAocBilling \
58-
sipXtools
59-
60-
# sipxecs projects that are NOT essential for a running communication system
61-
# and are related to configuration system. Many are phone plugins
62-
sipx_config = \
63-
sipXaudiocodes \
18+
sipXcallController \
6419
sipXprovision \
65-
sipXcisco \
66-
sipXclearone \
67-
sipXgtek \
68-
sipXhitachi \
69-
sipXipdialog \
70-
sipXisphone \
71-
sipXnortel \
72-
sipXlg-nortel \
73-
sipXmitel \
74-
sipXsnom \
75-
sipXunidata \
76-
sipXgrandstream \
77-
sipXaastra \
78-
sipXyealink
79-
80-
# Language packs not required for a function communications system
81-
sipx_lang = \
82-
sipXlang-abitibi-fr_CA \
83-
sipXlang-ch \
84-
sipXlang-cs \
85-
sipXlang-de \
86-
sipXlang-en_GB \
87-
sipXlang-es \
88-
sipXlang-fr_CA \
89-
sipXlang-fr \
90-
sipXlang-it \
91-
sipXlang-ja \
92-
sipXlang-es_MX \
93-
sipXlang-nl \
94-
sipXlang-pl \
95-
sipXlang-pt_BR \
96-
sipXlang-zh
97-
98-
sipx_all = \
99-
$(sipx_core) \
100-
$(sipx_extra) \
101-
$(sipx_config) \
102-
$(sipx_lang)
103-
104-
# re: ruby-postgres, there's a new one we should be using ruby-pgsql i
105-
# think it's called as ruby-postgres is obsoleted.
106-
lib_all = \
107-
epel \
108-
rubygem-file-tail \
109-
erlang \
110-
freeswitch \
111-
hiredis \
112-
net-snmp \
113-
homer \
114-
openfire \
115-
ruby-dbi \
116-
cfengine \
117-
rubygem-net-ssh \
118-
rubygem-net-sftp \
119-
ruby-postgres \
120-
jasperserver \
121-
libjsonrpccpp \
122-
libevent2 \
123-
mongo-cxx-driver \
124-
mongodb
125-
126-
lib_exclude_fedora_16 = \
127-
epel \
128-
erlang \
129-
rrdtool \
130-
rubygem-net-ssh \
131-
rubygem-net-sftp
20+
sipXrelease \
21+
sipXecs
13222

133-
lib_exclude_fedora_17 = \
134-
$(lib_exclude_fedora_16) \
135-
ruby-postgres
13623

137-
lib_exclude_fedora_18 = $(lib_exclude_fedora_17)
138-
lib_exclude_fedora_19 = $(lib_exclude_fedora_18)
139-
lib_exclude_fedora_20 = $(lib_exclude_fedora_19)
140-
lib_exclude_fedora_21 = $(lib_exclude_fedora_20)
141-
lib_exclude_fedora_22 = $(lib_exclude_fedora_21)
142-
lib_exclude_fedora_23 = $(lib_exclude_fedora_22)
24+
sipx_all = $(sipx_core)
14325

144-
lib = $(filter-out $(lib_exclude_$(DISTRO_OS)_$(DISTRO_VER)),$(lib_all))
14526

14627
# Project compile-time dependencies. Only list project that if
14728
# it's dependecies were recompiled then you'd want to recompile.
148-
freeswitch_DEPS = erlang
149-
sipXtackLib_DEPS = sipXportLib
150-
sipXmediaLib_DEPS = sipXtackLib
151-
sipXmediaAdapterLib_DEPS = sipXmediaLib
152-
sipXcallLib_DEPS = sipXmediaAdapterLib
153-
sipXcustomCallerId_DEPS = sipXconfig
154-
sipXcommserverLib_DEPS = sipXtackLib
155-
sipXsqa_DEPS = sipXcommserverLib
156-
sipXrelay_DEPS = sipXcommons
157-
sipXbridge_DEPS = sipXcommons
15829
sipXcdr_DEPS = sipXcommons
15930
sipXconfig_DEPS = sipXcommons sipXcdr
160-
sipXopenfire_DEPS = sipXconfig sipXsqa
161-
sipXcounterpath_DEPS = sipXconfig
162-
sipXaudiocodes_DEPS = sipXconfig
163-
sipXivr_DEPS = sipXconfig
164-
sipXproxy_DEPS = sipXcommserverLib oss_core
165-
sipXpublisher_DEPS = sipXcommserverLib
166-
sipXregistry_DEPS = sipXcommserverLib
167-
sipXpage_DEPS = sipXcommons
16831
sipXpolycom_DEPS = sipXconfig
169-
sipXrls_DEPS = sipXsqa sipXcallLib sipXcommserverLib
170-
sipXsaa_DEPS = sipXsqa sipXcallLib sipXcommserverLib
171-
sipXhomer_DEPS = sipXsqa sipXresiprocate
172-
sipXsbc_DEPS = sipXconfig sipXsqa sipXregistry
173-
sipXcallQueue_DEPS = sipXconfig
174-
sipXAocBilling_DEPS = sipXconfig
175-
sipXexample_DEPS = sipXcommserverLib sipXconfig
176-
sipXsss_DEPS = sipXsqa sipXcommserverLib sipXresiprocate
177-
sipXyard = sipXcommserverLib
178-
sipXtools_DEPS = sipXtackLib sipXcommserverLib
17932

180-
all = \
181-
$(lib) \
182-
$(sipx)
33+
all = $(sipx)

mak/rpm.mk.in

+12
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,18 @@ $(sipx:=.rpm.if-changed) $(lib:=.rpm.if-changed) : %.rpm.if-changed : $$($$*_GIT
108108
fi
109109
cp @RPMBUILD_TOPDIR@/SRPMS/$($(PROJ)_SRPM) $(MOCK_SRPM_DIR)
110110

111+
%.localrpm : %.dist
112+
rm -rf $(PROJ)/RPMBUILD; \
113+
mkdir -p $(PROJ)/RPMBUILD/{DIST,BUILD,SOURCES,RPMS,SRPMS,SPECS}; \
114+
echo `pwd`/$(PROJ)/RPMBUILD > .rpmtopdir; \
115+
rpmbuild -ta --define "%_topdir `cat .rpmtopdir`" $($(PROJ)_TAR); \
116+
rm -rf $(PROJ)/RPMS; mv $(PROJ)/RPMBUILD/RPMS $(PROJ); \
117+
rm -rf $(PROJ)/SRPMS; mv $(PROJ)/RPMBUILD/SRPMS $(PROJ); \
118+
rm -rf rm -rf $(PROJ)/RPMBUILD
119+
120+
%.localrpm-install :
121+
yum -y localinstall `pwd`/$(PROJ)/RPMS/x86_64/*.rpm
122+
111123
$(sipx:=.srpm) : %.srpm : %.dist $(MOCK_INIT_TEST) $(MOCK_RESULTS_DIR)
112124
rpmbuild -ts $(SRPM_DEFS) $($(PROJ)_SRPM_DEFS) --nodeps $($(PROJ)_TAR)
113125
test -d $(MOCK_SRPM_DIR) || mkdir -p $(MOCK_SRPM_DIR)

sipXconfig/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ noinst_DATA = $(SRC_PUB_PACKAGES)
4444
pub-get $(SRC_PUB_PACKAGES) : pubspec.yaml
4545
cd $(srcdir); $(DART_HOME)/bin/pub get
4646
touch $(SRC_PUB_PACKAGES)
47-
$(MAKE) remove-extraneous-packages-symlinks
47+
# $(MAKE) remove-extraneous-packages-symlinks
4848

4949
# Dart's package manager has an annoying feature that generates packages symlinks in
5050
# web directory. This removes all the copies that are not needed by how sipXconfig has integrated

sipXconfig/etc/sipxpbx/sipxconfig-jetty.xml

-9
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,6 @@
3737
</New>
3838
</Arg>
3939
</Call>
40-
<Call name="addHandler">
41-
<Arg>
42-
<New class="org.eclipse.jetty.webapp.WebAppContext">
43-
<Set name="contextPath">/cmcprov</Set>
44-
<Set name="war"><SystemProperty name="jetty.lib.dir"/>/cmcprov.war</Set>
45-
<Set name="extractWAR">true</Set>
46-
</New>
47-
</Arg>
48-
</Call>
4940
</Ref>
5041

5142
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration">

sipXconfig/sipxconfig.spec.in

+3-1
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ Requires: ruby
8686
Requires: rubygems
8787
Requires: freeswitch >= 1.0.7
8888

89+
#
8990
# XX-10822 Required EPEL rpms are now found in build. Pointing to this repo has
9091
# proven to be dangerous
91-
Obsoletes: epel-release
92+
# Obsoletes: epel-release
93+
#
9294

9395
Obsoletes: sipx-jasperreports-deps
9496
Obsoletes: sipxfreeswitch

sipXconfig/web/packages

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../packages/
1+
../packages

sipXprovision/sipxprovision.spec.in

-3
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,9 @@ BuildRequires: automake
1313
BuildRequires: java-1.7.0-openjdk-devel
1414
BuildRequires: zip
1515
BuildRequires: sipxcommons >= %version
16-
BuildRequires: sipxopenfire >= %version
1716

1817
Source: %name-%version.tar.gz
1918

20-
Obsoletes: sipxvxml
21-
2219
Requires: sipxcommons >= %version
2320
Requires: chkconfig
2421
BuildRequires: sipxconfig >= %version

sipXsupervisor/etc/Makefile.am

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ dist_cfplugins_DATA = \
4040
firewall.cf \
4141
security.cf \
4242
redis.cf \
43-
mysql.cf \
4443
dhcpd.cf \
4544
ntpd.cf \
4645
phonelog.cf \

sipXsupervisor/etc/sipx.cf.in

+6
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,12 @@ body copy_from file_remote_cp(from,server) {
164164
compare => "mtime";
165165
}
166166

167+
body copy_from local_cp_by_digest(filename) {
168+
source => "$(filename)";
169+
compare => "digest";
170+
purge => "true";
171+
}
172+
167173
bundle agent sipx_init {
168174
vars:
169175

sipXviewer/sipxviewer.spec.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Packager: SIPfoundry <[email protected]>
1010
Url: http://www.sipfoundry.org/sipXtools
1111

1212
BuildRequires: automake
13-
BuildRequires: java-devel >= 1.7
13+
BuildRequires: java-1.7.0-openjdk-devel
1414
BuildRequires: sipxcommons >= %version
1515

1616
Source: %name-%version.tar.gz

0 commit comments

Comments
 (0)