📄 inetutils.spec
字号:
%define pfx /opt/freescale/rootfs/%{_target_cpu}Summary : Networking utilitiesName : inetutilsVersion : 1.4.2Release : 1License : GPLVendor : FreescalePackager : Stuart HughesGroup : System Environment/BaseSource : inetutils-1.4.2.tar.gzPatch1 : inetutils-1.4.2-rm_tftp_h.patchPatch2 : inetutils-1.4.2-gcc4_fixes-2.patchBuildRoot : %{_tmppath}/%{name}Prefix : %{pfx}%Description%{summary}%Prep%setup %patch1 -p1%patch2 -p1%Build./configure --prefix=%{_prefix} --disable-syslogd \ --libexecdir=%{_prefix}/sbin --disable-logger \ --sysconfdir=%{_sysconfdir} \ --disable-whois --host=$CFGHOST --build=%{_build} \ --with-ncurses-include-dir=none --mandir=%{_mandir} \ --with-PATH_LOGIN="/bin/login"make%Installrm -rf $RPM_BUILD_ROOTmake DESTDIR=$RPM_BUILD_ROOT/%{pfx} installmkdir -p $RPM_BUILD_ROOT/%{pfx}/binmv $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/bin/ping $RPM_BUILD_ROOT/%{pfx}/bin/ping# remove the man pages that will conflict with sysklogd packagerm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/share/man/man5/syslog.conf.5 rm -f $RPM_BUILD_ROOT/%{pfx}/%{_prefix}/share/man/man8/syslogd.8%Cleanrm -rf $RPM_BUILD_ROOT%Files# Notes: The preferred ftp daemon is vsftpd, and the ftpd daemon in this# package is a bogon and should not be used. Really copying it to# the rootfs should be prevented in this section.# - Stevep## When inetd is started without specifying the config file on the# command line an error is logged in the system log file complaining# that the directory /etc/inet.d does not exist. For example:# "Sep 8 12:30:58 <hostname> daemon.err inetd[<pid>]:# /etc/inetd.d: No such file or directory"# This is because the inetd daemon reads /etc/inetd.conf and then# /etc/inet.d/* and complains if it can't locate both. However,# provided that /etc/inetd.conf exists then the inetd daemon functions# correctly and the error message can be ignored.# If needed the error message can be eliminated by giving the config# file on the inetd invocation line, e.g. ;# /usr/sbin/inetd -R 1000 /etc/inetd.conf# - Stevep%defattr(-, root, root)%attr(755, root, root) %{pfx}/%{_prefix}/bin/rsh%attr(755, root, root) %{pfx}/%{_prefix}/bin/rlogin%attr(755, root, root) %{pfx}/%{_prefix}/bin/rcp%attr(4755, root, root) %{pfx}/bin/ping%{pfx}/*
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -