70 lines
2.0 KiB
RPMSpec
70 lines
2.0 KiB
RPMSpec
Name: arptables
|
|
Version: 0.0.4
|
|
Release: 15
|
|
Summary: Administration tool for arp packet filtering
|
|
|
|
License: GPLv2+
|
|
URL: https://git.netfilter.org/arptables/
|
|
Source0: ftp.netfilter.org/pub/arptables/%{name}-v%{version}.tar.gz
|
|
# Source1 and Source2 from fedora 29 are used for
|
|
# automates a packet filtering firewall with arptables
|
|
Source1: arptables-helper
|
|
Source2: arptables.service
|
|
# GNU GENERAL PUBLIC LICENSE is from :
|
|
# https://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
|
|
Source3: COPYING
|
|
|
|
BuildRequires: gcc perl-generators systemd
|
|
%systemd_requires
|
|
|
|
Obsoletes: arptables_jf < 0.0.8-37
|
|
Provides: arptables_jf = 0.0.8-37
|
|
|
|
%description
|
|
Arptables is used to set up, maintain, and inspect the tables of
|
|
ARP packet filter rules in the Linux kernel. Several different
|
|
tables may be defined. Each table contains a number of built-in
|
|
chains and may also contain user-defined chains.
|
|
|
|
%package_help
|
|
|
|
%prep
|
|
%autosetup -n %{name}-v%{version} -p1
|
|
cp %{SOURCE3} COPYING
|
|
|
|
%build
|
|
make all 'COPT_FLAGS=%{optflags}' 'LDFLAGS=%{build_ldflags}' %{_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=$RPM_BUILD_ROOT BINDIR=%{_sbindir} MANDIR=%{_mandir}
|
|
mkdir $RPM_BUILD_ROOT%{_libexecdir}/
|
|
install -p -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_libexecdir}/
|
|
install -p -D -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/arptables.service
|
|
mkdir $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
|
|
echo '# Configure prior to use' > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/%{name}
|
|
|
|
%post
|
|
%systemd_post %{name}.service
|
|
|
|
%preun
|
|
%systemd_preun %{name}.service
|
|
|
|
%postun
|
|
%systemd_postun_with_restart %{name}.service
|
|
|
|
%files
|
|
%doc COPYING
|
|
%{_libexecdir}/%{name}-helper
|
|
%{_unitdir}/%{name}.service
|
|
%{_sbindir}/%{name}*
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
%exclude %{_initrddir}/%{name}
|
|
|
|
%files help
|
|
%{_mandir}/man8/*.gz
|
|
|
|
%changelog
|
|
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.0.4-15
|
|
- Package Init
|
|
|