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 3ff0b52 commit 4baef9e
Show file tree
Hide file tree
Showing 5 changed files with 110 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
14 changes: 14 additions & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
include config/utility.am
include config/project.am

EXTRA_DIST = \
COPYING \
css \
fonts \
img \
index.html \
js \
lib \
share \
store \
templates
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-ui,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
70 changes: 70 additions & 0 deletions homer-ui.spec.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# 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: WEB UI for HOMER

Group: Applications/Communications
License: GPLv3
URL: @PACKAGE_URL@
Source0: %name-%version.tar.gz

%description
WEB UI 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}
%{webroot}/index.html
%{webroot}/css
%{webroot}/fonts
%{webroot}/img
%{webroot}/js
%{webroot}/lib
%{webroot}/share
%dir %attr(2770,%{webuser},%{webgroup}) %{webroot}/store
%dir %attr(2770,%{webuser},%{webgroup}) %{webroot}/store/dashboard
%dir %attr(2770,%{webuser},%{webgroup}) %{webroot}/store/profile
%{webroot}/store/index.html
%{webroot}/store/dashboard/index.html
%{webroot}/store/dashboard/*.json
%{webroot}/store/profile/index.html
%{webroot}/templates

%prep
%setup -b0 -q

%install
# UI and API directories and files
%{__mkdir} -p %{buildroot}%{webroot}
%{__cp} -r index.html %{buildroot}%{webroot}/index.html
%{__cp} -r css %{buildroot}%{webroot}
%{__cp} -r fonts %{buildroot}%{webroot}
%{__cp} -r img %{buildroot}%{webroot}
%{__cp} -r js %{buildroot}%{webroot}
%{__cp} -r lib %{buildroot}%{webroot}
%{__cp} -r share %{buildroot}%{webroot}
%{__cp} -r store %{buildroot}%{webroot}
%{__cp} -r templates %{buildroot}%{webroot}

%post

%preun

%postun

0 comments on commit 4baef9e

Please sign in to comment.