mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
adding pandora_gotty_exec compiled from installers to rpms and deb packages
This commit is contained in:
parent
29fe86c007
commit
e5fff03608
@ -6,6 +6,8 @@ mkdir -p pandora_gotty/usr/bin
|
|||||||
mkdir -p pandora_gotty/etc/pandora_gotty
|
mkdir -p pandora_gotty/etc/pandora_gotty
|
||||||
cp -a ../src/pandora_gotty pandora_gotty/usr/bin
|
cp -a ../src/pandora_gotty pandora_gotty/usr/bin
|
||||||
cp -a ../src/pandora_gotty.conf pandora_gotty/etc/pandora_gotty
|
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
|
dpkg-deb --build pandora_gotty
|
||||||
mv pandora_gotty.deb ../
|
mv pandora_gotty.deb ../
|
||||||
rm -rf pandora_gotty/usr/
|
rm -rf pandora_gotty/usr/
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
#RPM
|
#RPM
|
||||||
VERSION=$(grep '%define version' pandora_gotty.spec | awk '{print $3}')
|
VERSION=$(grep '%define version' pandora_gotty.spec | awk '{print $3}')
|
||||||
mkdir -p pandora_gotty-${VERSION}
|
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}/*
|
tar -cvzf pandora_gotty-${VERSION}.tar.gz pandora_gotty-${VERSION}/*
|
||||||
mv pandora_gotty-${VERSION}.tar.gz ${HOME}/rpmbuild/SOURCES/
|
mv pandora_gotty-${VERSION}.tar.gz ${HOME}/rpmbuild/SOURCES/
|
||||||
rm -rf ${HOME}/rpmbuild/RPMS/x86_64/pandora_gotty*
|
rm -rf ${HOME}/rpmbuild/RPMS/x86_64/pandora_gotty*
|
||||||
|
@ -25,6 +25,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
|
||||||
mkdir -p %{buildroot}/etc/pandora_gotty/
|
mkdir -p %{buildroot}/etc/pandora_gotty/
|
||||||
cp %{name} $RPM_BUILD_ROOT/%{_bindir}
|
cp %{name} $RPM_BUILD_ROOT/%{_bindir}
|
||||||
|
cp pandora_gotty_exec $RPM_BUILD_ROOT/%{_bindir}
|
||||||
cp pandora_gotty.conf %{buildroot}/etc/pandora_gotty/
|
cp pandora_gotty.conf %{buildroot}/etc/pandora_gotty/
|
||||||
%clean
|
%clean
|
||||||
rm -Rf $RPM_BUILD_ROOT
|
rm -Rf $RPM_BUILD_ROOT
|
||||||
@ -33,6 +34,7 @@ rm -Rf $RPM_BUILD_ROOT
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%config(noreplace) /etc/pandora_gotty/pandora_gotty.conf
|
%config(noreplace) /etc/pandora_gotty/pandora_gotty.conf
|
||||||
%{_bindir}/%{name}
|
%{_bindir}/%{name}
|
||||||
|
%{_bindir}/pandora_gotty_exec
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Sep 18 2023 PandoraFMS - 1.0-1
|
* Mon Sep 18 2023 PandoraFMS - 1.0-1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user