SSHpiper is now build during rpmbuild, updates for gitea and sshpiper

This commit is contained in:
2023-12-13 11:04:41 +01:00
parent 99774b0df1
commit e0a59f58c5
2 changed files with 29 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
Name: gitea Name: gitea
Version: 1.21.1 Version: 1.21.2
Release: 1%{?dist} Release: 1%{?dist}
Summary: Gitea is a painless self-hosted Git service. Summary: Gitea is a painless self-hosted Git service.
%define MyVersion %version %define MyVersion %version
@@ -84,6 +84,9 @@ getent passwd gitea > /dev/null || \
%changelog %changelog
* Wed Dec 13 2023 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.21.2.
* Tue Nov 28 2023 Daniel Steiner <daniel.steiner@dsteiner.ch> * Tue Nov 28 2023 Daniel Steiner <daniel.steiner@dsteiner.ch>
- Update to 1.21.1. - Update to 1.21.1.

View File

@@ -1,23 +1,38 @@
Name: sshpiper Name: sshpiper
Version: 1.2.3 Version: 1.2.4
Release: 3git%{?dist} Release: 1git%{?dist}
Summary: Reverse proxy for sshd. Summary: Reverse proxy for sshd.
%define debug_package %{nil} %define debug_package %{nil}
%define _build_id_links none %define _build_id_links none
License: MIT License: MIT
URL: https://gitea.io URL: https://github.com/tg123/sshpiper
Source0: %{name}-%{version}.tar.gz Source0: %{name}.tar.gz
# Source0: %{name}-%{version}.tar.gz
Source1: sshpiperd.service Source1: sshpiperd.service
Source2: sshpiper Source2: sshpiper
Source3: sshpiper-tempfile Source3: sshpiper-tempfile
%define debug_package %{nil}
%define _build_id_links none
# %global name sshpiper
%global __mangle_shebangs_exclude_from /usr/bin/env
%description %description
Go package for sshpiper is the reverse proxy for sshd. all protocols, Go package for sshpiper is the reverse proxy for sshd. all protocols,
including ssh, scp, port forwarding, running on top of ssh are supported. including ssh, scp, port forwarding, running on top of ssh are supported.
%prep %prep
%setup -q -n %{name}-%{version} %setup -n %{name}
cd ..
rm -rf %{name}
git clone https://github.com/tg123/sshpiper
cd %{name}
git submodule update --init --recursive
%build
mkdir out; go build -tags full -o out ./...
# to build: # to build:
# Note: It does not build from tarball! # Note: It does not build from tarball!
@@ -33,14 +48,18 @@ including ssh, scp, port forwarding, running on top of ssh are supported.
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
pushd out
install -D %{name}d $RPM_BUILD_ROOT/%{_bindir}/%{name}d install -D %{name}d $RPM_BUILD_ROOT/%{_bindir}/%{name}d
install -D %{S:1} $RPM_BUILD_ROOT/%{_unitdir}/%{name}d.service install -D %{S:1} $RPM_BUILD_ROOT/%{_unitdir}/%{name}d.service
install -D %{S:2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/%{name} install -D %{S:2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/%{name}
install -D %{S:3} $RPM_BUILD_ROOT/%{_sysconfdir}/tmpfiles.d/%{name} install -D %{S:3} $RPM_BUILD_ROOT/%{_sysconfdir}/tmpfiles.d/%{name}
mkdir -p $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name} mkdir -p $RPM_BUILD_ROOT/%{_sharedstatedir}/%{name}
pushd plugins
for f in *; do for f in *; do
if [ "$f" == "%{name}d" ]; then
:
else
install -D $f $RPM_BUILD_ROOT/%{_datarootdir}/%{name}/plugins/$f install -D $f $RPM_BUILD_ROOT/%{_datarootdir}/%{name}/plugins/$f
fi
done done
popd popd