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
Version: 1.21.1
Version: 1.21.2
Release: 1%{?dist}
Summary: Gitea is a painless self-hosted Git service.
%define MyVersion %version
@@ -84,6 +84,9 @@ getent passwd gitea > /dev/null || \
%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>
- Update to 1.21.1.

View File

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