Imported from SRPM

This commit is contained in:
Sergey Zhemoytel 2023-12-31 01:50:44 +03:00
commit 143046cefc
2 changed files with 40 additions and 0 deletions

2
.abf.yml Normal file
View file

@ -0,0 +1,2 @@
sources:
ligolo-ng-0.5.tar.gz: 798de937fd05f8d68d0d0a0258bf7284879177b9

38
ligolo.spec Normal file
View file

@ -0,0 +1,38 @@
%define debug %nil
%define debug_package %nil
Name: ligolo
Version: 0.5
Release: 1
Summary: Tunneling/pivoting tool that uses a TUN interface
URL: https://github.com/nicocha30/ligolo-ng
Source0: %{url}/archive/v%{version}/%{name}-ng-%{version}.tar.gz
License: GPLv2
Group: Development/Other
BuildRequires: go
BuildRequires: git-core
BuildRequires: upx
%description
An advanced, yet simple, tunneling tool that uses TUN interfaces
%prep
%setup -qn %{name}-ng-%{version}
%build
export GOPROXY=direct
go build --ldflags="-s -w" -o bin/%{name}-agent ./cmd/agent/main.go
go build --ldflags="-s -w" -o bin/%{name}-proxy ./cmd/proxy/main.go
upx bin/*
%install
install -Dm0755 bin/%{name}-agent %{buildroot}%{_bindir}/%{name}-agent
install -Dm0755 bin/%{name}-proxy %{buildroot}%{_bindir}/%{name}-proxy
%files
%doc README.md LICENSE
%{_bindir}/%{name}*