mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
11830 adding package preparation for rpm gotty
This commit is contained in:
parent
6ecd8ca899
commit
4302cbce58
1
extras/pandora_gotty/.gitattributes
vendored
Normal file
1
extras/pandora_gotty/.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
src/pandora_gotty filter=lfs diff=lfs merge=lfs -text
|
1
extras/pandora_gotty/.gitignore
vendored
Normal file
1
extras/pandora_gotty/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.rpm
|
8
extras/pandora_gotty/Dockerfile
Normal file
8
extras/pandora_gotty/Dockerfile
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
FROM rockylinux:8
|
||||||
|
|
||||||
|
RUN dnf install -y rpm-build rpmdevtools
|
||||||
|
RUN rpmdev-setuptree
|
||||||
|
RUN mkdir /root/pandora_gotty
|
||||||
|
WORKDIR /root/pandora_gotty
|
||||||
|
|
||||||
|
#CMD bash build.sh
|
12
extras/pandora_gotty/build.sh
Executable file
12
extras/pandora_gotty/build.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
VERSION=$(grep '%define version' pandora_gotty.spec | awk '{print $3}')
|
||||||
|
mkdir -p pandora_gotty-${VERSION}
|
||||||
|
cp src/* pandora_gotty-${VERSION}/
|
||||||
|
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*
|
||||||
|
rpmbuild -ba pandora_gotty.spec
|
||||||
|
rm -rf pandora_gotty-${VERSION}
|
||||||
|
mv ${HOME}/rpmbuild/RPMS/x86_64/pandora_gotty* .
|
||||||
|
|
2
extras/pandora_gotty/build_docker.sh
Executable file
2
extras/pandora_gotty/build_docker.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
docker build -t pandora_gotty_builder .
|
||||||
|
docker run --rm -it -v `pwd`:/root/pandora_gotty pandora_gotty_builder /root/pandora_gotty/build.sh
|
41
extras/pandora_gotty/pandora_gotty.spec
Normal file
41
extras/pandora_gotty/pandora_gotty.spec
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
%define name pandora_gotty
|
||||||
|
%define version 1.0
|
||||||
|
%define release 1%{?dist}
|
||||||
|
Summary: pandora_gptty for Pandora FMS
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}
|
||||||
|
License: GPL
|
||||||
|
Vendor: PandoraFMS
|
||||||
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
URL: https://pandorafms.com
|
||||||
|
Group: System/Monitoring
|
||||||
|
Packager: PandoraFMS
|
||||||
|
BuildArch: x86_64
|
||||||
|
Provides: %{name}-%{version}
|
||||||
|
|
||||||
|
%description
|
||||||
|
pandora_gotty for Pandora FMS.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
|
||||||
|
%install
|
||||||
|
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_ssh.conf %{buildroot}/etc/pandora_gotty/
|
||||||
|
cp pandora_gotty_telnet.conf %{buildroot}/etc/pandora_gotty/
|
||||||
|
%clean
|
||||||
|
rm -Rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%config(noreplace) /etc/pandora_gotty/pandora_gotty_ssh.conf
|
||||||
|
%config(noreplace) /etc/pandora_gotty/pandora_gotty_telnet.conf
|
||||||
|
%{_bindir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Mon Sep 18 2023 PandoraFMS - 1.0-1
|
||||||
|
- Initial RPM release
|
1
extras/pandora_gotty/src/.gitignore
vendored
Normal file
1
extras/pandora_gotty/src/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*rpm
|
3
extras/pandora_gotty/src/pandora_gotty
Executable file
3
extras/pandora_gotty/src/pandora_gotty
Executable file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:3758eddb64db79c6ea1dac4cb200ee8ec86ef3f51723dad5be4365a1315b952b
|
||||||
|
size 13642854
|
4
extras/pandora_gotty/src/pandora_gotty_ssh.conf
Normal file
4
extras/pandora_gotty/src/pandora_gotty_ssh.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#to be fill
|
||||||
|
lkdslkds
|
||||||
|
sdjkfhasjdf
|
||||||
|
kdsjfslkjdhfa
|
4
extras/pandora_gotty/src/pandora_gotty_telnet.conf
Normal file
4
extras/pandora_gotty/src/pandora_gotty_telnet.conf
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
#to be fill
|
||||||
|
dlksdlkfjs
|
||||||
|
sldjfslkjdf
|
||||||
|
kjdfhksjhdkjlfsh
|
Loading…
x
Reference in New Issue
Block a user