From e5fff03608a0d62d53d1338cc51e14265609ecc6 Mon Sep 17 00:00:00 2001 From: rafael Date: Wed, 4 Oct 2023 10:50:29 +0200 Subject: [PATCH] adding pandora_gotty_exec compiled from installers to rpms and deb packages --- extras/pandora_gotty/build_deb.sh | 2 ++ extras/pandora_gotty/build_rpm.sh | 5 ++++- extras/pandora_gotty/pandora_gotty.spec | 2 ++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/extras/pandora_gotty/build_deb.sh b/extras/pandora_gotty/build_deb.sh index 483ab35076..fbcb2a6790 100755 --- a/extras/pandora_gotty/build_deb.sh +++ b/extras/pandora_gotty/build_deb.sh @@ -6,6 +6,8 @@ mkdir -p pandora_gotty/usr/bin mkdir -p pandora_gotty/etc/pandora_gotty cp -a ../src/pandora_gotty pandora_gotty/usr/bin cp -a ../src/pandora_gotty.conf pandora_gotty/etc/pandora_gotty +curl -SsL --output pandora_gotty/usr/bin/pandora_gotty_exec http://192.168.50.31/installers/installers/Linux/x86_64/pandora_gotty_exec +chmod +x pandora_gotty/usr/bin/pandora_gotty_exec dpkg-deb --build pandora_gotty mv pandora_gotty.deb ../ rm -rf pandora_gotty/usr/ diff --git a/extras/pandora_gotty/build_rpm.sh b/extras/pandora_gotty/build_rpm.sh index 64a43fa099..e08fa0e65b 100755 --- a/extras/pandora_gotty/build_rpm.sh +++ b/extras/pandora_gotty/build_rpm.sh @@ -2,7 +2,10 @@ #RPM VERSION=$(grep '%define version' pandora_gotty.spec | awk '{print $3}') mkdir -p pandora_gotty-${VERSION} -cp src/* pandora_gotty-${VERSION}/ +cp src/pandora_gotty pandora_gotty-${VERSION}/ +cp src/pandora_gotty.conf pandora_gotty-${VERSION}/ +curl -SsL --output pandora_gotty-${VERSION}/pandora_gotty_exec http://192.168.50.31/installers/installers/Linux/x86_64/pandora_gotty_exec +chmod +x pandora_gotty-${VERSION}/pandora_gotty_exec tar -cvzf pandora_gotty-${VERSION}.tar.gz pandora_gotty-${VERSION}/* mv pandora_gotty-${VERSION}.tar.gz ${HOME}/rpmbuild/SOURCES/ rm -rf ${HOME}/rpmbuild/RPMS/x86_64/pandora_gotty* diff --git a/extras/pandora_gotty/pandora_gotty.spec b/extras/pandora_gotty/pandora_gotty.spec index 005dfd945f..813c9726c9 100644 --- a/extras/pandora_gotty/pandora_gotty.spec +++ b/extras/pandora_gotty/pandora_gotty.spec @@ -25,6 +25,7 @@ rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/%{_bindir} mkdir -p %{buildroot}/etc/pandora_gotty/ cp %{name} $RPM_BUILD_ROOT/%{_bindir} +cp pandora_gotty_exec $RPM_BUILD_ROOT/%{_bindir} cp pandora_gotty.conf %{buildroot}/etc/pandora_gotty/ %clean rm -Rf $RPM_BUILD_ROOT @@ -33,6 +34,7 @@ rm -Rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %config(noreplace) /etc/pandora_gotty/pandora_gotty.conf %{_bindir}/%{name} +%{_bindir}/pandora_gotty_exec %changelog * Mon Sep 18 2023 PandoraFMS - 1.0-1