Skip to content

Commit

Permalink
Added files for global project building
Browse files Browse the repository at this point in the history
  • Loading branch information
kvishnivetsky committed Jul 20, 2015
1 parent 4fbb55d commit f5f9668
Show file tree
Hide file tree
Showing 5 changed files with 103 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .gitignore
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
5 changes: 5 additions & 0 deletions Makefile.am
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
1 change: 1 addition & 0 deletions config
7 changes: 7 additions & 0 deletions configure.ac
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
72 changes: 72 additions & 0 deletions homer-api.spec.in
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

0 comments on commit f5f9668

Please sign in to comment.