11830 changes on pandora_gotty packages

This commit is contained in:
rafael 2023-09-19 10:44:41 +02:00
parent 19e6673ff9
commit 7d09ed7503
8 changed files with 43 additions and 15 deletions

View File

@ -0,0 +1,3 @@
#Build RPM
docker build -t pandora_gotty_builder -f Dockerfile-RPM .
docker run --rm -it -v `pwd`:/root/pandora_gotty pandora_gotty_builder /root/pandora_gotty/build_rpm.sh

View File

@ -1,2 +0,0 @@
docker build -t pandora_gotty_builder .
docker run --rm -it -v `pwd`:/root/pandora_gotty pandora_gotty_builder /root/pandora_gotty/build.sh

View File

@ -1,5 +1,5 @@
#!/bin/bash
#RPM
VERSION=$(grep '%define version' pandora_gotty.spec | awk '{print $3}')
mkdir -p pandora_gotty-${VERSION}
cp src/* pandora_gotty-${VERSION}/
@ -10,3 +10,4 @@ rpmbuild -ba pandora_gotty.spec
rm -rf pandora_gotty-${VERSION}
mv ${HOME}/rpmbuild/RPMS/x86_64/pandora_gotty* .
#DEB

View File

@ -25,15 +25,13 @@ 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/
cp pandora_gotty.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
%config(noreplace) /etc/pandora_gotty/pandora_gotty.conf
%{_bindir}/%{name}
%changelog

View File

@ -0,0 +1,36 @@
//Pandora Gotty
// [bool] Permit clients to write to the TTY
permit_write = true
// [bool] Enable basic authentication
enable_basic_auth = true
// [string] Default username and password of basic authentication (user:pass)
// To enable basic authentication, set `true` to `enable_basic_auth`
credential = "pandora:Pandor4!"
// [bool] Permit clients to send command line arguments in URL (e.g. http://example.com:8080/?arg=AAA&arg=BBB)
permit_arguments = true
// [bool] Enable random URL generation
enable_random_url = true
// [int] Default length of random strings appended to URL
// To enable random URL generation, set `true` to `enable_random_url`
random_url_length = 32
// [bool] Enable TLS/SSL
// enable_tls = false
// [string] Default TLS certificate file path
// tls_crt_file = "~/.gotty.crt"
// [string] Default TLS key file path
// tls_key_file = "~/.gotty.key"
// [bool] Enable client certificate authentication
// enable_tls_client_auth = false
// [string] Certificate file of CA for client certificates
// tls_ca_crt_file = "~/.gotty.ca.crt"

View File

@ -1,4 +0,0 @@
#to be fill
lkdslkds
sdjkfhasjdf
kdsjfslkjdhfa

View File

@ -1,4 +0,0 @@
#to be fill
dlksdlkfjs
sldjfslkjdf
kjdfhksjhdkjlfsh