SSHpiper is now build during rpmbuild, updates for gitea and sshpiper
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user