Merge branch 'ent-13566-modo-proxy-no-funciona-como-root' into 'develop'
fix tentacle no root pandora_enterprise#13566 See merge request artica/pandorafms!7345
This commit is contained in:
commit
5194a01c87
|
@ -38,9 +38,11 @@ mkdir -p %{buildroot}/usr/share/man/man1/
|
||||||
install -m 0755 pandora_agent %{buildroot}%{_bindir}/pandora_agent
|
install -m 0755 pandora_agent %{buildroot}%{_bindir}/pandora_agent
|
||||||
install -m 0755 pandora_agent_exec %{buildroot}%{_bindir}/pandora_agent_exec
|
install -m 0755 pandora_agent_exec %{buildroot}%{_bindir}/pandora_agent_exec
|
||||||
install -m 0755 tentacle_client %{buildroot}%{_bindir}/tentacle_client
|
install -m 0755 tentacle_client %{buildroot}%{_bindir}/tentacle_client
|
||||||
|
install -m 0755 tentacle_server %{buildroot}%{_bindir}/tentacle_server
|
||||||
install -m 0755 pandora_agent_daemon %{buildroot}/etc/init.d/pandora_agent_daemon
|
install -m 0755 pandora_agent_daemon %{buildroot}/etc/init.d/pandora_agent_daemon
|
||||||
install -m 0644 man/man1/pandora_agent.1.gz %{buildroot}/usr/share/man/man1/pandora_agent.1.gz
|
install -m 0644 man/man1/pandora_agent.1.gz %{buildroot}/usr/share/man/man1/pandora_agent.1.gz
|
||||||
install -m 0644 man/man1/tentacle_client.1.gz %{buildroot}/usr/share/man/man1/tentacle_client.1.gz
|
install -m 0644 man/man1/tentacle_client.1.gz %{buildroot}/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
install -m 0644 man/man1/tentacle_server.1.gz %{buildroot}/usr/share/man/man1/tentacle_server.1.gz
|
||||||
install -m 0600 Linux/pandora_agent.conf %{buildroot}/etc/pandora/pandora_agent.conf
|
install -m 0600 Linux/pandora_agent.conf %{buildroot}/etc/pandora/pandora_agent.conf
|
||||||
install -d -m 0755 %{buildroot}/etc/pandora/plugins
|
install -d -m 0755 %{buildroot}/etc/pandora/plugins
|
||||||
install -d -m 0755 %{buildroot}/etc/pandora/collections
|
install -d -m 0755 %{buildroot}/etc/pandora/collections
|
||||||
|
@ -81,6 +83,7 @@ fi
|
||||||
/usr/bin/pandora_agent
|
/usr/bin/pandora_agent
|
||||||
/usr/bin/pandora_agent_exec
|
/usr/bin/pandora_agent_exec
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
|
/usr/bin/tentacle_server
|
||||||
/etc/init.d/pandora_agent_daemon
|
/etc/init.d/pandora_agent_daemon
|
||||||
|
|
||||||
%defattr(-,pandora,root,770)
|
%defattr(-,pandora,root,770)
|
||||||
|
@ -96,6 +99,7 @@ fi
|
||||||
%doc
|
%doc
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
/usr/share/man/man1/tentacle_client.1.gz
|
/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
/usr/share/man/man1/tentacle_server.1.gz
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sun Feb 23 2014 Sancho Lerena <slerena at gmail.com> - 5.0
|
* Sun Feb 23 2014 Sancho Lerena <slerena at gmail.com> - 5.0
|
||||||
|
|
|
@ -45,12 +45,14 @@ mkdir -p $RPM_BUILD_ROOT/var/log/pandora/
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_server $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_server.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
|
||||||
# Checking old config file (if exists)
|
# Checking old config file (if exists)
|
||||||
if [ -f /etc/pandora/pandora_agent.conf ] ; then
|
if [ -f /etc/pandora/pandora_agent.conf ] ; then
|
||||||
|
@ -113,6 +115,7 @@ rm -Rf /var/log/pandora/pandora_agent* 2> /dev/null
|
||||||
rm -Rf /usr/share/pandora_agent
|
rm -Rf /usr/share/pandora_agent
|
||||||
rm -Rf /usr/share/man/man1/pandora_agent.1.gz
|
rm -Rf /usr/share/man/man1/pandora_agent.1.gz
|
||||||
rm -Rf /usr/share/man/man1/tentacle_client.1.gz
|
rm -Rf /usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
rm -Rf /usr/share/man/man1/tentacle_server.1.gz
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
@ -125,6 +128,7 @@ exit 0
|
||||||
|
|
||||||
%defattr(755,pandora,root)
|
%defattr(755,pandora,root)
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
|
/usr/bin/tentacle_server
|
||||||
/etc/init.d/pandora_agent_daemon
|
/etc/init.d/pandora_agent_daemon
|
||||||
%docdir %{prefix}/pandora_agents/docs
|
%docdir %{prefix}/pandora_agents/docs
|
||||||
%{prefix}/pandora_agent
|
%{prefix}/pandora_agent
|
||||||
|
@ -132,4 +136,5 @@ exit 0
|
||||||
%defattr(644,pandora,root)
|
%defattr(644,pandora,root)
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
/usr/share/man/man1/tentacle_client.1.gz
|
/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
/usr/share/man/man1/tentacle_server.1.gz
|
||||||
|
|
||||||
|
|
|
@ -46,12 +46,14 @@ mkdir -p $RPM_BUILD_ROOT/var/log/pandora/
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_server $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_server.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
|
||||||
# Checking old config file (if exists)
|
# Checking old config file (if exists)
|
||||||
if [ -f /etc/pandora/pandora_agent.conf ] ; then
|
if [ -f /etc/pandora/pandora_agent.conf ] ; then
|
||||||
|
@ -115,6 +117,7 @@ rm -Rf /var/log/pandora/pandora_agent* 2> /dev/null
|
||||||
rm -Rf /usr/share/pandora_agent
|
rm -Rf /usr/share/pandora_agent
|
||||||
rm -Rf /usr/share/man/man1/pandora_agent.1.gz
|
rm -Rf /usr/share/man/man1/pandora_agent.1.gz
|
||||||
rm -Rf /usr/share/man/man1/tentacle_client.1.gz
|
rm -Rf /usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
rm -Rf /usr/share/man/man1/tentacle_server.1.gz
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%files
|
%files
|
||||||
|
@ -127,6 +130,7 @@ exit 0
|
||||||
|
|
||||||
%defattr(755,pandora,root)
|
%defattr(755,pandora,root)
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
|
/usr/bin/tentacle_server
|
||||||
/etc/init.d/pandora_agent_daemon
|
/etc/init.d/pandora_agent_daemon
|
||||||
%docdir %{prefix}/pandora_agents/docs
|
%docdir %{prefix}/pandora_agents/docs
|
||||||
%{prefix}/pandora_agent
|
%{prefix}/pandora_agent
|
||||||
|
@ -134,4 +138,5 @@ exit 0
|
||||||
%defattr(644,pandora,root)
|
%defattr(644,pandora,root)
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
/usr/share/man/man1/tentacle_client.1.gz
|
/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
/usr/share/man/man1/tentacle_server.1.gz
|
||||||
|
|
||||||
|
|
|
@ -1757,12 +1757,6 @@ sub check_ssleay_version {
|
||||||
# Main
|
# Main
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Never run as root
|
|
||||||
if ($> == 0 && $^O ne 'MSWin32') {
|
|
||||||
print ("Error: for safety reasons $0 cannot be run with root privileges.\n");
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Parse command line options
|
# Parse command line options
|
||||||
parse_options ();
|
parse_options ();
|
||||||
|
|
||||||
|
|
Binary file not shown.
|
@ -53,11 +53,13 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
||||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_server $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_server.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
||||||
|
|
||||||
|
@ -164,9 +166,11 @@ exit 0
|
||||||
%defattr(755,root,root)
|
%defattr(755,root,root)
|
||||||
/usr/bin/pandora_agent_exec
|
/usr/bin/pandora_agent_exec
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
|
/usr/bin/tentacle_server
|
||||||
/etc/rc.d/init.d/pandora_agent_daemon
|
/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
|
|
||||||
%defattr(644,root,root)
|
%defattr(644,root,root)
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
/usr/share/man/man1/tentacle_client.1.gz
|
/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
/usr/share/man/man1/tentacle_server.1.gz
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_agent
|
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_agent
|
||||||
|
|
|
@ -55,11 +55,13 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
||||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_server $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_server.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
||||||
|
|
||||||
|
@ -161,9 +163,11 @@ exit 0
|
||||||
%defattr(755,root,root)
|
%defattr(755,root,root)
|
||||||
/usr/bin/pandora_agent_exec
|
/usr/bin/pandora_agent_exec
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
|
/usr/bin/tentacle_server
|
||||||
/etc/rc.d/init.d/pandora_agent_daemon
|
/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
|
|
||||||
%defattr(644,root,root)
|
%defattr(644,root,root)
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
/usr/share/man/man1/tentacle_client.1.gz
|
/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
/usr/share/man/man1/tentacle_server.1.gz
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_agent
|
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_agent
|
||||||
|
|
|
@ -55,11 +55,13 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
||||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_server $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
||||||
#cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
#cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_server.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
||||||
|
|
||||||
|
@ -150,8 +152,10 @@ exit 0
|
||||||
%defattr(755,root,root)
|
%defattr(755,root,root)
|
||||||
/usr/bin/pandora_agent_exec
|
/usr/bin/pandora_agent_exec
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
|
/usr/bin/tentacle_server
|
||||||
|
|
||||||
%defattr(644,root,root)
|
%defattr(644,root,root)
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
/usr/share/man/man1/tentacle_client.1.gz
|
/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
/usr/share/man/man1/tentacle_server.1.gz
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_agent
|
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_agent
|
||||||
|
|
|
@ -53,11 +53,13 @@ mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/logrotate.d/
|
||||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_server $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_server.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
||||||
|
|
||||||
|
@ -159,9 +161,11 @@ exit 0
|
||||||
%defattr(755,root,root)
|
%defattr(755,root,root)
|
||||||
/usr/bin/pandora_agent_exec
|
/usr/bin/pandora_agent_exec
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
|
/usr/bin/tentacle_server
|
||||||
/etc/rc.d/init.d/pandora_agent_daemon
|
/etc/rc.d/init.d/pandora_agent_daemon
|
||||||
|
|
||||||
%defattr(644,root,root)
|
%defattr(644,root,root)
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
/usr/share/man/man1/tentacle_client.1.gz
|
/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
/usr/share/man/man1/tentacle_server.1.gz
|
||||||
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_agent
|
%config(noreplace) %{_sysconfdir}/logrotate.d/pandora_agent
|
||||||
|
|
|
@ -46,12 +46,14 @@ mkdir -p $RPM_BUILD_ROOT/var/log/pandora/
|
||||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
cp -aRf * $RPM_BUILD_ROOT%{prefix}/pandora_agent/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_client $RPM_BUILD_ROOT/usr/bin/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/tentacle_server $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_exec $RPM_BUILD_ROOT/usr/bin/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/pandora_agent_daemon $RPM_BUILD_ROOT/etc/init.d/pandora_agent_daemon
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/pandora_agent.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_client.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/man/man1/tentacle_server.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||||
|
|
||||||
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
cp -aRf $RPM_BUILD_ROOT%{prefix}/pandora_agent/Linux/pandora_agent.conf $RPM_BUILD_ROOT/usr/share/pandora_agent/pandora_agent.conf.rpmnew
|
||||||
|
|
||||||
|
@ -147,6 +149,7 @@ rm -Rf /var/log/pandora/pandora_agent* 2> /dev/null
|
||||||
rm -Rf /usr/share/pandora_agent
|
rm -Rf /usr/share/pandora_agent
|
||||||
rm -Rf /usr/share/man/man1/pandora_agent.1.gz
|
rm -Rf /usr/share/man/man1/pandora_agent.1.gz
|
||||||
rm -Rf /usr/share/man/man1/tentacle_client.1.gz
|
rm -Rf /usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
rm -Rf /usr/share/man/man1/tentacle_server.1.gz
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
|
@ -165,6 +168,7 @@ rm -Rf /etc/logrotate.d/pandora_agent
|
||||||
|
|
||||||
%defattr(755,pandora,root)
|
%defattr(755,pandora,root)
|
||||||
/usr/bin/tentacle_client
|
/usr/bin/tentacle_client
|
||||||
|
/usr/bin/tentacle_server
|
||||||
/etc/init.d/pandora_agent_daemon
|
/etc/init.d/pandora_agent_daemon
|
||||||
%docdir %{prefix}/pandora_agents/docs
|
%docdir %{prefix}/pandora_agents/docs
|
||||||
%{prefix}/pandora_agent
|
%{prefix}/pandora_agent
|
||||||
|
@ -172,4 +176,5 @@ rm -Rf /etc/logrotate.d/pandora_agent
|
||||||
%defattr(644,pandora,root)
|
%defattr(644,pandora,root)
|
||||||
/usr/share/man/man1/pandora_agent.1.gz
|
/usr/share/man/man1/pandora_agent.1.gz
|
||||||
/usr/share/man/man1/tentacle_client.1.gz
|
/usr/share/man/man1/tentacle_client.1.gz
|
||||||
|
/usr/share/man/man1/tentacle_server.1.gz
|
||||||
|
|
||||||
|
|
|
@ -1757,12 +1757,6 @@ sub check_ssleay_version {
|
||||||
# Main
|
# Main
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Never run as root
|
|
||||||
if ($> == 0 && $^O ne 'MSWin32') {
|
|
||||||
print ("Error: for safety reasons $0 cannot be run with root privileges.\n");
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Parse command line options
|
# Parse command line options
|
||||||
parse_options ();
|
parse_options ();
|
||||||
|
|
||||||
|
|
|
@ -1757,12 +1757,6 @@ sub check_ssleay_version {
|
||||||
# Main
|
# Main
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Never run as root
|
|
||||||
if ($> == 0 && $^O ne 'MSWin32') {
|
|
||||||
print ("Error: for safety reasons $0 cannot be run with root privileges.\n");
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Parse command line options
|
# Parse command line options
|
||||||
parse_options ();
|
parse_options ();
|
||||||
|
|
||||||
|
|
|
@ -1757,12 +1757,6 @@ sub check_ssleay_version {
|
||||||
# Main
|
# Main
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Never run as root
|
|
||||||
if ($> == 0 && $^O ne 'MSWin32') {
|
|
||||||
print ("Error: for safety reasons $0 cannot be run with root privileges.\n");
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Parse command line options
|
# Parse command line options
|
||||||
parse_options ();
|
parse_options ();
|
||||||
|
|
||||||
|
|
|
@ -1784,12 +1784,6 @@ sub check_ssleay_version {
|
||||||
# Main
|
# Main
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Never run as root
|
|
||||||
if ($> == 0 && $^O ne 'MSWin32') {
|
|
||||||
print ("Error: for safety reasons $0 cannot be run with root privileges.\n");
|
|
||||||
exit 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
# Parse command line options
|
# Parse command line options
|
||||||
parse_options ();
|
parse_options ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue