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

📄 dhcp.spec

📁 DHCP服务器源码
💻 SPEC
字号:
Summary: The Internet Systems Consortium (ISC) DHCP serverName: dhcp%define version 3.0.1Version: %{version}Release: 2tacGroup: System Environment/DaemonsSource: /usr/local/src/RPM/SOURCES/dhcp-%{version}.tar.gzCopyright: ISCBuildRoot: /var/tmp/dhcp-%{version}-root%descriptionDhcp includes the DHCP server which is used for dynamically configuringhosts on a network.  Host configuration items such as IP address, nameservers, domain name, etc. can all be retrieved from the DHCP server bya DHCP client.  This eases the burden of network wide configuration byputting all of the configuration into one place.%package clientSummary: A DHCP clientGroup: System Environment/Configuration%description clientDhcp client is a DHCP client for various UNIX operating systems. It allowsa UNIX machine to obtain it's networking parameters from a DHCP server.%package relaySummary: A DHCP relayGroup: System Environment/Daemons%description relayDhcp relay is a relay agent for DHCP packets.  It is used on a subnet withDHCP clients to "relay" their requests to a subnet that has a DHCP serveron it.  Because DHCP packets can be broadcast, they will not be routed offof the local subnet.  The DHCP relay takes care of this for the client.%package develSummary: Development headers and libraries for the dhcpctl APIGroup: Development/Libraries%description develDhcp devel contains all of the libraries and headers for developing withthe dhcpctl API.%prep%setup -q -n dhcp-%{version}# do some file editingegrep "VARRUNETCVARDB" site.conf | sed -e 's/ *=/=/g' -e 's/= */=/g' > vars. ./varscat << EOF >> includes/site.h#define _PATH_DHCPD_PID		"$VARRUN/dhcpd.pid"#define _PATH_DHCPD_DB		"$ETC/dhcpd.leases"#define _PATH_DHCPD_CONF	"$ETC/dhcpd.conf"EOF./configure --with-nsupdate%buildmake%installrm -rf $RPM_BUILD_ROOTmkdir -p $RPM_BUILD_ROOT/usr/local/sbinmake DESTDIR="$RPM_BUILD_ROOT" install%ifos linuxmkdir -p ${RPM_BUILD_ROOT}/etc/rc.d/{init,rc0,rc1,rc2,rc3,rc4,rc5,rc6}.dinstall -m 755 linux.init ${RPM_BUILD_ROOT}/etc/rc.d/init.d/dhcpd%else%ifos solarismkdir -p ${RPM_BUILD_ROOT}/etc/init.dsed -e s'|@PREFIX@|%{_prefix}|g' < contrib/solaris.init > ${RPM_BUILD_ROOT}/etc/init.d/dhcpdchmod 755 ${RPM_BUILD_ROOT}/etc/init.d/dhcpd%endif%endif# strip binaries and librariesstrip $RPM_BUILD_ROOT%{_prefix}/sbin/* || :for i in `find $RPM_BUILD_ROOT/ -type 'f' -perm '+a=x' ! -name 'lib*so*'`; do	file $i |grep -q "not stripped" && strip $idone%post%ifos linux    /sbin/chkconfig --add dhcpd    /etc/rc.d/init.d/dhcpd start%else    %ifos solaris	ln /etc/init.d/dhcpd /etc/rc2.d/S90dhcpd	ln /etc/init.d/dhcpd /etc/rc0.d/K30dhcpd	/etc/init.d/dhcpd start    %else	echo "Unknown O/S.  You will need to manually configure your\nsystem"	echo "to start the DHCP server on system startup."    %endif%endif%preunif [ $1 = 0 ]; then    %ifos linux	/etc/rc.d/init.d/dhcpd stop	/sbin/chkconfig --del dhcpd    %else	%ifos solaris	    /etc/init.d/dhcpd stop	    rm /etc/rc2.d/S90dhcpd	    rm /etc/rc0.d/K30dhcpd	%else	    echo "Unknown O/S.  You will need to manually clean up the DHCP"	    echo "server startup\n in your system startup environment."	%endif    %endiffi%cleanrm -rf $RPM_BUILD_ROOT%files%defattr(-,root,root)%doc COPYRIGHT DOCUMENTATION ISC-LICENSE CHANGES README RELNOTES doc/*%{_prefix}/sbin/dhcpd%{_prefix}/man/cat1m/dhcpd.1m%{_prefix}/man/cat4/dhcpd.conf.4%{_prefix}/man/cat4/dhcpd.leases.4%{_prefix}/man/cat4/dhcp-options.4%{_prefix}/man/cat4/dhcp-eval.4%{_prefix}/man/cat4/dhcp-contrib.4%ifos linux%config /etc/rc.d/init.d/dhcpd%else%ifos solaris%config /etc/init.d/dhcpd%endif%endif%files devel%{_prefix}/man/cat3%{_prefix}/lib%{_prefix}/include%files client%{_prefix}/etc/dhclient-script%{_prefix}/sbin/dhclient%{_prefix}/man/cat1m/dhclient.1m%{_prefix}/man/cat1m/dhclient-script.1m%{_prefix}/man/cat4/dhclient.conf.4%{_prefix}/man/cat4/dhclient.leases.4%files relay%{_prefix}/sbin/dhcrelay%{_prefix}/man/cat1m/dhcrelay.1m%changelog* Fri Oct  1 1999 Brian J. Murrell <brian@interlinx.bc.ca>- write a spec file for dhcpd

⌨️ 快捷键说明

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