⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 e100.spec

📁 linux intel 网卡驱动,利用他可以让inel的pro 100 网卡进行网络配置和实用
💻 SPEC
字号:
Name: e100Summary: Intel(R) PRO/100 driver for LinuxVersion: 2.1.15Release: %(awk '{ print tolower($0) }' /etc/redhat-release | sed '{ s/.* \([0-9][^ ]*\).*/rh\1/; s/\.//g; }' || echo 1)Source: %{name}-%{version}.tar.gzVendor: Intel CorporationLicense: Dual GPL / BSD + patent grantExclusiveOS: linuxGroup: System Environment/KernelRequires: kernelProvides: %{name}URL: http://support.intel.com/support/go/linux/e100.htmBuildRoot: %{_tmppath}/%{name}-%{version}-root%descriptionThis package contains the Linux driver for theIntel(R) PRO/100 Family of Server Adapters.%prep%setup%buildmkdir -p %{buildroot}SwitchRHKernel () {	CFLAGS_EXTRA=""	for K in $2 ; do		if [ $K == $1 ] ; then			CFLAGS_EXTRA="$CFLAGS_EXTRA -D__BOOT_KERNEL_$K=1"		else			CFLAGS_EXTRA="$CFLAGS_EXTRA -D__BOOT_KERNEL_$K=0"		fi	done}KV=$(uname -r)KSP="/lib/modules/$KV/build     /usr/src/linux-$KV     /usr/src/linux-$(echo $KV | sed 's/-.*//')     /usr/src/kernel-headers-$KV     /usr/src/kernel-source-$KV     /usr/src/linux-$(echo $KV | sed 's/\([0-9]*\.[0-9]*\)\..*/\1/')     /usr/src/linux"KSRC=$(for d in $KSP ; do [ -e $d/include/linux ] && echo $d; echo;  done)KSRC=$(echo $KSRC | awk '{ print $1 }')if [ -e $KSRC/include/linux/rhconfig.h ] ; then	RHKL=$(grep 'BOOT_KERNEL_.* [01]' /boot/kernel.h |	       sed 's/.*BOOT_KERNEL_\(.*\) [01]/\1/')	for K in $RHKL ; do		SwitchRHKernel $K "$RHKL"		make -C src clean		make -C src INSTALL_MOD_PATH=%{buildroot} \			MANDIR=%{_mandir} CFLAGS_EXTRA="$CFLAGS_EXTRA" install	doneelse	make -C src clean	make -C src INSTALL_MOD_PATH=%{buildroot} MANDIR=%{_mandir} installfi%installcd %{buildroot}find lib -name e100.o -exec mv {} {}.new \; \         -fprintf %{_builddir}/%{name}-%{version}/file.list "/%p.new\n"%cleanrm -rf %{buildroot}%files -f %{_builddir}/%{name}-%{version}/file.list%defattr(-,root,root)%{_mandir}/man7/e100.7.gz%doc LICENSE%doc README%doc ldistrib.txt%doc file.list%postFL=%{_docdir}/%{name}-%{version}/file.listif [ $1 -eq 1 ]; then	for d in $(sed 's/^\(\/lib\/modules\/[^/]*\).*/\1/' $FL) ; do		find $d -name e100.o -exec mv -f {} {}.old \;	donefifor f in $(sed 's/\.new$//' $FL) ; do	ln -f $f.new $f done# If any adapters are configured to use eepro100, reconfigure to use e100.if ( grep eepro100 /etc/modules.conf > /dev/null 2>&1 ); then        mv -f /etc/modules.conf /etc/modules.conf.OLD        sed -e s/eepro100/e100/g /etc/modules.conf.OLD >> /etc/modules.confelse        rm -f /etc/modules.conf.OLDfi# Update Kudzu's device table such that future devices will use e100,# not eepro100.if ( grep eepro100 /usr/share/kudzu/pcitable > /dev/null 2>&1 ); then        mv -f /usr/share/kudzu/pcitable /usr/share/kudzu/pcitable.OLD        sed -e s/eepro100/e100/g /usr/share/kudzu/pcitable.OLD >> /usr/share/kudzu/pcitableelse        rm -f /usr/share/kudzu/pcitable.OLDfiuname -r | grep BOOT || /sbin/depmod -a > /dev/null 2>&1 || true%preunFL=%{_docdir}/%{name}-%{version}/file.listif [ $1 -eq 0 ]; then	for f in $(sed 's/\.new$//' $FL) ; do		rm $f	done	for d in $(sed 's/^\(\/lib\/modules\/[^/]*\).*/\1/' $FL) ; do		for f in $(find $d -name e100.o.old -print) ; do			mv $f $(echo $f | sed 's/\.old$//')		done	donefi%postun# If any adapters were configured to use eepro100, restore the original.if [ -e /etc/modules.conf.OLD ]; then       if ( grep eepro100 /etc/modules.conf.OLD > /dev/null 2>&1 ); then               rm -f /etc/modules.conf.OLD               mv -f /etc/modules.conf /etc/modules.conf.OLD               sed -e s/e100$/eepro100/g /etc/modules.conf.OLD >> /etc/modules.conf       fifi# Update Kudzu's device table such that future devices that will use# eepro100 if this was the set before e100 install.if [ -e /usr/share/kudzu/pcitable.OLD ]; then       if ( grep eepro100 /usr/share/kudzu/pcitable.OLD > /dev/null 2>&1 ); then               rm -f /usr/share/kudzu/pcitable.OLD        mv -f /usr/share/kudzu/pcitable /usr/share/kudzu/pcitable.OLD        sed -e s/"e100"/"eepro100"/g /usr/share/kudzu/pcitable.OLD >> /usr/share/kudzu/pcitable       fifiecho -e "  Changes will take effect after the next reboot."uname -r | grep BOOT || /sbin/depmod -a > /dev/null 2>&1 || true

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -