forked from sipcapture/homer-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added files for global project building
- Loading branch information
1 parent
4fbb55d
commit f5f9668
Showing
5 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
INSTALL | ||
Makefile | ||
Makefile.in | ||
aclocal.m4 | ||
config.guess | ||
config.h | ||
config.h.in | ||
config.log | ||
config.status | ||
config.sub | ||
configure | ||
depcomp | ||
install-sh | ||
libtool | ||
ltmain.sh | ||
missing | ||
stamp-h1 | ||
autom4te.cache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
include config/utility.am | ||
include config/project.am | ||
|
||
EXTRA_DIST = \ | ||
api |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
AC_PREREQ(2.61) | ||
AC_INIT(homer-api,5.0.1,[email protected],,http://www.sipcapture.org) | ||
AC_CONFIG_AUX_DIR(config) | ||
AM_INIT_AUTOMAKE(foreign tar-ustar) | ||
m4_include([config/projectlib2.m4]) | ||
AC_CONFIG_FILES([Makefile]) | ||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Definitions | ||
%define debug_package %{nil} | ||
%if %{_vendor} == suse | ||
%define webroot %{_prefix}/srv/%name/htdocs | ||
%else # CentOS/Fedora | ||
%define webroot %{_localstatedir}/www/%name | ||
%define webuser apache | ||
%define webgroup apache | ||
%endif | ||
%if 0%{?rhel} < 6 && 0%{?fedora} == 0 | ||
%define php php53 | ||
# part of json support is now in php-common | ||
Requires: %{php}-json | ||
%else | ||
%define php php | ||
%endif | ||
|
||
Name: @PACKAGE_NAME@ | ||
Version: @PACKAGE_VERSION@ | ||
Release: @PACKAGE_REVISION@ | ||
Summary: HTTP based API for HOMER | ||
|
||
Group: Telecommunications | ||
License: GPLv3 | ||
URL: @PACKAGE_URL@ | ||
Source0: %name-%version.tar.gz | ||
|
||
Requires: ntp | ||
Requires: %{php} >= 5 | ||
Requires: php-mysql | ||
Requires: mysql-community-client >= 5.6 | ||
|
||
%description | ||
HTTP based API for HOMER is a robust, carrier-grade, scalable SIP Capture system and Monitoring Application with HEP/HEP2, IP Proto4 (IPIP) encapsulation & port mirroring/monitoring support right out of the box, ready to process & store insane amounts of signaling with instant search, end-to-end analysis and drill-down capabilities for ITSPs, VoIP Providers and Trunk Suppliers using SIP signaling | ||
|
||
%files | ||
%defattr(0660,%{webuser},%{webgroup}) | ||
%dir %attr(2770,%{webuser},%{webgroup}) %{webroot} | ||
%dir %{webroot}/api | ||
%{webroot}/api/* | ||
%{webroot}/api/.htaccess | ||
|
||
%prep | ||
%setup -b0 -q | ||
|
||
%build | ||
%configure --enable-rpmbuilb | ||
make | ||
|
||
%install | ||
rm -rf $RPM_BUILD_ROOT | ||
make DESTDIR=$RPM_BUILD_ROOT install | ||
|
||
# UI and API directories and files | ||
%{__mkdir} -p %{buildroot}%{webroot} | ||
%{__mkdir} -p %{buildroot}%{webroot}/api | ||
%{__cp} -r api/Authentication %{buildroot}%{webroot}/api | ||
%{__cp} -r api/Database %{buildroot}%{webroot}/api | ||
%{__cp} -r api/RestApi %{buildroot}%{webroot}/api | ||
%{__cp} -r api/RestService %{buildroot}%{webroot}/api | ||
%{__cp} -r api/Statistic %{buildroot}%{webroot}/api | ||
%{__cp} -r api/*.php %{buildroot}%{webroot}/api | ||
%{__cp} -r api/.htaccess %{buildroot}%{webroot}/api | ||
|
||
%post | ||
|
||
%preun | ||
|
||
%postun | ||
|
||
%clean | ||
rm -rf $RPM_BUILD_ROOT |