From 20fcd27dd6f0e37d5795813399e6421bcd71c098 Mon Sep 17 00:00:00 2001 From: Alexander Stefanov Date: Fri, 2 Aug 2024 11:40:19 +0000 Subject: [PATCH] init --- .abf.yml | 2 ++ spoof-dpi.service | 10 ++++++++++ spoofdpi.spec | 35 +++++++++++++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 .abf.yml create mode 100644 spoof-dpi.service create mode 100644 spoofdpi.spec diff --git a/.abf.yml b/.abf.yml new file mode 100644 index 0000000..eeeeb96 --- /dev/null +++ b/.abf.yml @@ -0,0 +1,2 @@ +sources: + v0.10.2.tar.gz: a1d7fc50a817d7037d87d2add50ebc501f7631ca diff --git a/spoof-dpi.service b/spoof-dpi.service new file mode 100644 index 0000000..90a9534 --- /dev/null +++ b/spoof-dpi.service @@ -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 diff --git a/spoofdpi.spec b/spoofdpi.spec new file mode 100644 index 0000000..da1cbb8 --- /dev/null +++ b/spoofdpi.spec @@ -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}