📄 ppp.spec
字号:
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary : Point-to-Point Protocol daemonName : pppVersion : 2.4.4Release : 1License : BSD-like and GPL and Public DomainVendor : FreescalePackager : Michael BarkowskiGroup : System Environment/DaemonsSource : %{name}-%{version}.tar.gzPatch0 : ppp-2.4.4-header-checks-filter-off-df546d4c.patchBuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}%Description%{summary}%Prep%setup %patch0 -p1%Build./configure --prefix=%{_prefix} --host=$CFGHOST --build=%{_build} --mandir=%{_mandir}if [ "$PKG_PPP_WANT_FILTER" = "y" ]then echo "Including support for PPP packet filtering. Requires libpcap and kernel driver support." make -j1 FILTER=yelse make -j1fi%Installrm -rf $RPM_BUILD_ROOTmake -j1 install INSTALL=install DESTDIR=$RPM_BUILD_ROOT/%{pfx}mkdir -p $RPM_BUILD_ROOT/%{pfx}/var/lock%Cleanrm -rf $RPM_BUILD_ROOT%Files%defattr(-,root,root)%{pfx}/*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -