Skip to content

Commit

Permalink
NMS-8345: Created a new opennms-webapp-remoting to hold the Remote Po…
Browse files Browse the repository at this point in the history
…ller

webapp to reduce the size of the opennms-webapp-jetty RPM.
  • Loading branch information
soleger authored and Benjamin Reed committed Jul 15, 2016
1 parent 67280b9 commit 04dfac2
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion tools/packages/opennms/opennms.spec
Expand Up @@ -188,6 +188,18 @@ embedded in the main core process.
%{extrainfo2}


%package webapp-remoting
Summary: Remote Poller webapp
Group: Applications/System
Requires: %{name}-webapp-jetty = %{version}-%{release}

%description webapp-remoting
The JNLP application that provides the Remote Poller.

%{extrainfo}
%{extrainfo2}


%package ncs
Summary: Network Component Services
Group: Applications/System
Expand Down Expand Up @@ -709,6 +721,7 @@ find $RPM_BUILD_ROOT%{instprefix}/etc $RPM_BUILD_ROOT%{instprefix}/lib $RPM_BUIL
# jetty
find $RPM_BUILD_ROOT%{jettydir} ! -type d | \
sed -e "s,^$RPM_BUILD_ROOT,," | \
grep -v '/opennms-remoting' | \
grep -v '/opennms/source/' | \
grep -v '/WEB-INF/[^/]*\.xml$' | \
grep -v '/WEB-INF/[^/]*\.properties$' | \
Expand All @@ -718,10 +731,12 @@ find $RPM_BUILD_ROOT%{jettydir} ! -type d | \
sort >> %{_tmppath}/files.jetty
find $RPM_BUILD_ROOT%{jettydir}/*/WEB-INF/*.xml | \
sed -e "s,^$RPM_BUILD_ROOT,%config ," | \
grep -v '/opennms-remoting' | \
grep -v '/WEB-INF/ncs' | \
sort >> %{_tmppath}/files.jetty
find $RPM_BUILD_ROOT%{jettydir} -type d | \
sed -e "s,^$RPM_BUILD_ROOT,%dir ," | \
grep -v '/opennms-remoting' | \
sort >> %{_tmppath}/files.jetty

cd -
Expand Down Expand Up @@ -777,9 +792,13 @@ rm -rf $RPM_BUILD_ROOT

%files webapp-jetty -f %{_tmppath}/files.jetty
%defattr(644 root root 755)
%config %{jettydir}/opennms-remoting/WEB-INF/*.xml
%config %{jettydir}/%{servletdir}/WEB-INF/*.properties

%files webapp-remoting
%defattr(644 root root 755)
%config %{jettydir}/opennms-remoting/WEB-INF/*.xml
%{jettydir}/opennms-remoting

%files plugins

%files plugin-northbounder-jms
Expand Down

0 comments on commit 04dfac2

Please sign in to comment.