mirror of
https://abf.rosa.ru/djam/spoofdpi.git
synced 2025-02-24 02:02:55 +00:00
init
This commit is contained in:
commit
20fcd27dd6
3 changed files with 47 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
v0.10.2.tar.gz: a1d7fc50a817d7037d87d2add50ebc501f7631ca
|
10
spoof-dpi.service
Normal file
10
spoof-dpi.service
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Unit]
|
||||
Description=Spoof DPI Service
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/spoof-dpi
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
35
spoofdpi.spec
Normal file
35
spoofdpi.spec
Normal file
|
@ -0,0 +1,35 @@
|
|||
%global oname SpoofDPI
|
||||
%global debug_package %nil
|
||||
|
||||
Summary: A simple and fast software designed to bypass Deep Packet Inspection
|
||||
Name: spoofdpi
|
||||
Version: 0.10.2
|
||||
Release: 1
|
||||
License: BSD
|
||||
Group: Text tools
|
||||
Url: https://github.com/xvzc/SpoofDPI
|
||||
Source0: https://github.com/xvzc/SpoofDPI/archive/refs/tags/v%{version}.tar.gz
|
||||
Source1: spoof-dpi.service
|
||||
BuildRequires: golang
|
||||
Provides: SpoofDPI = %{EVRD}
|
||||
|
||||
%description
|
||||
A simple and fast software designed to bypass Deep Packet Inspection
|
||||
|
||||
%files
|
||||
%{_bindir}/spoof-dpi
|
||||
%{_userunitdir}/spoof-dpi.service
|
||||
|
||||
#----------------------------------------------------------------------------
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{oname}-%{version}
|
||||
|
||||
%build
|
||||
go build -a -v -ldflags="-w -s -X main.VERSION=%{version}" github.com/xvzc/SpoofDPI/cmd/spoof-dpi
|
||||
|
||||
%install
|
||||
install -d %{buildroot}/%{_bindir}/
|
||||
install -m 0755 spoof-dpi %{buildroot}/%{_bindir}/
|
||||
install -d %{buildroot}/%{_userunitdir}
|
||||
install -m 0644 %{S:1} %{buildroot}/%{_userunitdir}
|
Loading…
Add table
Reference in a new issue