iptables.spec
来自「coldfire MCF5445X基于unix平台的BSP」· SPEC 代码 · 共 52 行
SPEC
52 行
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary : Tools for managing kernel packet filtering capabilitiesName : iptablesVersion : 1.3.8Release : 0License : GPLVendor : FreescalePackager : Stuart Hughes, Emil MedveGroup : System Environment/BaseURL : http://www.netfilter.org/projects/iptablesSource : %{name}-%{version}.tar.bz2BuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}%Description%{summary}iptables is the userspace command line program used to configure the Linux 2.4.x and 2.6.x IPv4packet filtering ruleset. It is targeted towards system administratorsSince Network Address Translation is also configured from the packet filter ruleset, iptables isused for this, tooThe iptables package also includes ip6tables. ip6tables is used for configuring the IPv6 packetfilteriptables requires a kernel that features the ip_tables packet filter. This includes all 2.4.x and2.6.x kernel releasesMain Features * listing the contents of the packet filter ruleset * adding/removing/modifying rules in the packet filter ruleset * listing/zeroing per-rule counters of the packet filter ruleset%Prep%setup%Buildmake KERNEL_DIR=$DEV_IMAGE/%{_prefix}/src/linux PREFIX=%{_prefix}%Installrm -rf $RPM_BUILD_ROOTmake install KERNEL_DIR=$DEV_IMAGE/%{_prefix}/src/linux DESTDIR=$RPM_BUILD_ROOT/%{pfx} PREFIX=%{_prefix}%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?