-
Notifications
You must be signed in to change notification settings - Fork 23
/
hijackfilter.spec
75 lines (57 loc) · 2.02 KB
/
hijackfilter.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
%define KERNEL_VERSION %(uname -r)
%define XTABLES_LIBDIR %(pkg-config --variable=xtlibdir xtables)
%define MODULES_DIR /lib/modules/%{KERNEL_VERSION}
%define debug_package %{nil}
%define PACKAGE_VERSION %(cut -d - -f1 VERSION)
%define PACKAGE_RELEASE %(cut -d - -f2 VERSION)
Name: hijackfilter
Version: %{PACKAGE_VERSION}
Release: %{PACKAGE_RELEASE}%{?dist}
Summary: VFREE HijackFilter is a free software to protect you from unwanted Internet hijacking.
License: GPLv3
URL: https://github.com/hijackfilter/hijackfilter
Source: %{name}-%{version}.tar.gz
Requires: hijackfilter-dnsfilter
%description
VFREE HijackFilter is a set of free software to protect you from Internet hijacking
%package dnsfilter
Version: %{PACKAGE_VERSION}
Release: %{PACKAGE_RELEASE}%{?dist}
Summary: DNSFilter is a Netfilter extension to match and filter proofed DNS responses.
BuildRequires: iptables-devel pkgconfig
Requires: iptables hijackfilter-dnsfilter-kmod = %{version}
%description dnsfilter
DNSFilter is a Netfilter extension to match and filter proofed DNS responses.
%package dnsfilter-kmod
Version: %{PACKAGE_VERSION}
Release: %{PACKAGE_RELEASE}.%(echo %{KERNEL_VERSION} | cut -d . -f1-4 - | tr - _)
Summary: DNSFilter is a Netfilter extension to match and filter proofed DNS responses.
BuildRequires: kernel-devel
Provides: hijackfilter-dnsfilter-kmod-common = %{version}
%description dnsfilter-kmod
DNSFilter is a Netfilter extension to match and filter proofed DNS responses.
%prep
%setup -q -n %{name}-%{version}
%build
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
%make_install AUTO_DEPMOD=0
%files
%doc README.md
%license LICENSE
%files dnsfilter
%doc README.md
%license LICENSE
%{XTABLES_LIBDIR}/libxt_vfree_dns.so
%files dnsfilter-kmod
%doc README.md
%license LICENSE
%{MODULES_DIR}/extra/vfree/xt_vfree_dns.ko
%post dnsfilter-kmod
depmod
%postun dnsfilter-kmod
depmod
%changelog
* Sun May 15 2016 Rayson Zhu <[email protected]>
- First version