From 4baef9e030d6c0e28119b84194987c3006d98c93 Mon Sep 17 00:00:00 2001 From: "Konstantin S. Vishnivetsky" Date: Mon, 20 Jul 2015 18:24:29 +0600 Subject: [PATCH] Added files for global project building --- .gitignore | 18 +++++++++++++ Makefile.am | 14 ++++++++++ config | 1 + configure.ac | 7 +++++ homer-ui.spec.in | 70 ++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 110 insertions(+) create mode 100644 .gitignore create mode 100644 Makefile.am create mode 120000 config create mode 100644 configure.ac create mode 100644 homer-ui.spec.in diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..774b1b61 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 00000000..1928daff --- /dev/null +++ b/Makefile.am @@ -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 diff --git a/config b/config new file mode 120000 index 00000000..3ca249e0 --- /dev/null +++ b/config @@ -0,0 +1 @@ +../config \ No newline at end of file diff --git a/configure.ac b/configure.ac new file mode 100644 index 00000000..5a86f20d --- /dev/null +++ b/configure.ac @@ -0,0 +1,7 @@ +AC_PREREQ(2.61) +AC_INIT(homer-ui,5.0.1,support@sipcapture.org,,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 diff --git a/homer-ui.spec.in b/homer-ui.spec.in new file mode 100644 index 00000000..b6458da2 --- /dev/null +++ b/homer-ui.spec.in @@ -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