mirror of
https://abf.rosa.ru/djam/ligolo.git
synced 2025-02-23 22:02:54 +00:00
39 lines
860 B
RPMSpec
39 lines
860 B
RPMSpec
|
%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}*
|
||
|
|
||
|
|