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

📄 dante.spec

📁 sock protocol ,it is useful!
💻 SPEC
字号:
Summary: A free Socks v4/v5 client implementationName: dante%define version 1.1.1%define prefix /usrVersion: %{version}Release: 1Copyright: BSD-typeGroup: Networking/UtilitiesURL: http://www.inet.no/dante/Source: ftp://ftp.inet.no/pub/socks/dante-%{version}.tar.gzBuildroot: /var/tmp/dante-root%descriptionDante is a free implementation of the proxy protocols socks version 4,socks version 5 (rfc1928) and msproxy. It can be used as a firewallbetween networks. It is being developed by Inferno Nettverk A/S, aNorwegian consulting company. Commercial support is available.This package contains the dynamic libraries required to "socksify"existing applications to become socks clients.%package serverSummary: A free Socks v4/v5 server implementationGroup: Networking/DaemonsRequires: dante%description serverThis package contains the socks proxy daemon and its documentation.The sockd is the server part of the Dante socks proxy package andallows socks clients to connect through it to the network.%package develSummary: development libraries for socksGroup: Development/LibrariesRequires: dante%description develAdditional libraries required to compile programs that use socks.%prep%setup# This file is embedded here instead of being another source in order# to the prefix directorycat >sockd.init <<EOF#!/bin/sh## sockd         This shell script takes care of starting and stopping#               the Dante server.## chkconfig: 2345 65 35# description: sockd implements a socks v4/v5 proxy server# Source function library.. /etc/rc.d/init.d/functions# Source networking configuration.. /etc/sysconfig/network# Check that networking is up.[ \${NETWORKING} = "no" ] && exit 0[ -f %{prefix}/sbin/sockd ] || exit 0[ -f /etc/sockd.conf ] || exit 0# See how we were called.case "\$1" in  start)	# Start daemons.	echo -n "Starting sockd: "	daemon %{prefix}/sbin/sockd -D	echo	touch /var/lock/subsys/sockd	;;  stop)	# Stop daemons.	echo -n "Shutting down sockd: "	killproc sockd	echo	rm -f /var/lock/subsys/sockd	;;  restart)	\$0 stop	\$0 start	;;  status)	status sockd	;;  *)	echo "Usage: sockd {start|stop|restart|status}"	exit 1esacexit 0EOF%buildCFLAGS="${RPM_OPT_FLAGS}" ./configure --prefix=%{prefix}make%installrm -rf ${RPM_BUILD_ROOT}make install DESTDIR=${RPM_BUILD_ROOT}#set library as executable - prevent ldd from complainingchmod +x ${RPM_BUILD_ROOT}%{prefix}/lib/*.so.*.*install -d ${RPM_BUILD_ROOT}/etc/rc.d/init.d ${RPM_BUILD_ROOT}%{prefix}/bininstall -m 644 example/socks.conf ${RPM_BUILD_ROOT}/etcinstall -m 644 example/sockd.conf ${RPM_BUILD_ROOT}/etcinstall -m 755 sockd.init ${RPM_BUILD_ROOT}/etc/rc.d/init.d/sockd%cleanrm -rf $RPM_BUILD_ROOT%post/sbin/ldconfig%postun/sbin/ldconfig%post server/sbin/chkconfig --add sockd%postun serverif [ $1 = 0 ]; then   /sbin/chkconfig --del sockdfi%files%defattr(-,root,root)#files beginning with two capital letters are docs: BUGS, README.foo etc.%doc [A-Z][A-Z]*%{prefix}/lib/libsocks.so.0.1.0%{prefix}/lib/libsocks.so.0%{prefix}/lib/libsocks.so%{prefix}/lib/libdsocks.so.0.1.0%{prefix}/lib/libdsocks.so.0%{prefix}/lib/libdsocks.so%{prefix}/bin/socksify%{prefix}/man/man5/socks.conf.5%config /etc/socks.conf%files server%defattr(-,root,root)%{prefix}/man/man8/sockd.8%{prefix}/sbin/sockd%{prefix}/man/man5/sockd.conf.5%config /etc/sockd.conf%config /etc/rc.d/init.d/sockd%files devel%{prefix}/lib/libsocks.la%{prefix}/lib/libsocks.a%{prefix}/lib/libdsocks.la%changelog* Wed Mar 10 1999 Karl-Andre' Skevik <karls@inet.no>- Integrated into CVS- socksify patch no longer needed* Thu Mar 04 1999 Oren Tirosh <oren@hishome.net>- configurable %{prefix}, fixed daemon init script- added /lib/libdl.so to socksify* Wed Mar 03 1999 Oren Tirosh <oren@hishome.net>- First spec file for Dante

⌨️ 快捷键说明

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