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

📄 openssh.spec

📁 OpenSSL Source code for SFTP, SSH, and many others
💻 SPEC
字号:
%define use-stable	1%if %{use-stable}  %define version 	3.3p1  %define cvs		%{nil}  %define release 	1%else  %define version 	3.3  %define cvs		cvs20020515  %define release 	0r1%endif%define xsa		x11-ssh-askpass		%define askpass		%{xsa}-1.2.4.1Name        	: opensshVersion     	: %{version}%{cvs}Release     	: %{release}Group       	: System/NetworkSummary     	: OpenSSH free Secure Shell (SSH) implementation.Copyright   	: BSDPackager    	: Raymund Will <ray@caldera.de>URL         	: http://www.openssh.com/Obsoletes   	: ssh, ssh-clients, openssh-clientsBuildRoot   	: /tmp/%{Name}-%{Version}# %{use-stable}==1:	ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable# %{use-stable}==0:	:pserver:cvs@bass.directhit.com:/cvs/openssh_cvsSource0: see-above:/.../openssh-%{Version}.tar.gz%if %{use-stable}Source1: see-above:/.../openssh-%{Version}.tar.gz.sig%endifSource2: http://www.ntrnet.net/~jmknoble/software/%{xsa}/%{askpass}.tar.gzSource3: http://www.openssh.com/faq.html%Package serverGroup       	: System/NetworkRequires    	: openssh = %{Version}Obsoletes   	: ssh-serverSummary     	: OpenSSH Secure Shell protocol server (sshd).%Package askpassGroup       	: System/NetworkRequires    	: openssh = %{Version}URL       	: http://www.ntrnet.net/~jmknoble/software/x11-ssh-askpass/Obsoletes   	: ssh-extrasSummary     	: OpenSSH X11 pass-phrase dialog.%Prep%setup %([ -z "%{cvs}" ] || echo "-n %{Name}_cvs") -a2%if ! %{use-stable}  autoreconf%endif%BuildCFLAGS="$RPM_OPT_FLAGS" \./configure \            --prefix=/usr \            --sysconfdir=/etc/ssh \            --libexecdir=/usr/lib/ssh \            --with-pam \            --with-tcp-wrappers \            --with-ipv4-default \makecd %{askpass}./configurexmkmfmake includesmake%Install%{mkDESTDIR}make DESTDIR="$DESTDIR" installmake -C %{askpass} BINDIR="/usr/lib/ssh" install# OpenLinux specific configurationmkdir -p $DESTDIR/{etc/pam.d,%{SVIcdir},%{SVIdir}}# enabling X11 forwarding on the server is convenient and okay,# on the client side we consider it a potential security risk!%{fixUP} -vT  $DESTDIR/etc/ssh/sshd_config -e '   s/#X11Forwarding no/X11Forwarding yes/i'install -m644 contrib/caldera/sshd.pam $DESTDIR/etc/pam.d/sshd# FIXME: disabled, find out why this doesn't work with NIS%{fixUP} -vT $DESTDIR/etc/pam.d/sshd -e 's/^(.*pam_limits.*)$/#$1/'install -m 0755 contrib/caldera/sshd.init $DESTDIR%{SVIdir}/sshd%{fixUP} -vT $DESTDIR/%{SVIdir} -e 's:\@SVIdir\@:%{SVIdir}: +   s:\@sysconfdir\@:/etc/ssh:'cat <<-EoD > $DESTDIR%{SVIcdir}/sshd	IDENT=sshd	DESCRIPTIVE="OpenSSH secure shell daemon"	# This service will be marked as 'skipped' on boot if there	# is no host key. Use ssh-host-keygen to generate one.	ONBOOT="yes"	OPTIONS=""EoDSKG=$DESTDIR/usr/sbin/ssh-host-keygeninstall -m 0755 contrib/caldera/ssh-host-keygen $SKG%{fixUP} -T $SKG -e 's:\@sysconfdir\@:/etc/ssh: +   s:\@sshkeygen\@:/usr/bin/ssh-keygen:'# install remaining docsDocD="$DESTDIR%{_defaultdocdir}/%{Name}-%{Version}"; mkdir -p $DocD/00-LEGALcp -a LICENCE $DocD/00-LEGALcp -a CREDITS ChangeLog OVERVIEW README* TODO  $DocDinstall -p -m 0444 -o 0 -g 0 %{SOURCE3}  $DocD/faq.htmlmkdir -p $DocD/%{askpass}cp -a %{askpass}/{README,ChangeLog,TODO,SshAskpass*.ad}  $DocD/%{askpass}cp -p %{askpass}/%{xsa}.man $DESTDIR/usr/man/man1/%{xsa}.1ln -s  %{xsa}.1 $DESTDIR/usr/man/man1/ssh-askpass.1%{fixManPages}# generate file lists%{mkLists} -c %{Name}%{mkLists} -d %{Name} << 'EOF'/etc/ssh				base^/etc/					IGNORED%{_defaultdocdir}/$			IGNOREDaskpass					askpass*					defaultEOF%{mkLists} -a -f %{Name} << 'EOF'^/etc					*		prefix(%%config)/usr/X11R6/lib/X11/app-defaults 	IGNOREDSsh.bin 				IGNORED		# for now[Aa]skpass				askpass%{_defaultdocdir}/%{Name}-%{Version}/	basessh-keygen				basemoduli					serversshd					serversftp-server				server.*					baseEOF%Clean%{rmDESTDIR}%Post# Generate host key when none is present to get up and running,# both client and server require this for host-based auth!# ssh-host-keygen checks for existing keys./usr/sbin/ssh-host-keygen: # to protect the rpm database%Post serverif [ -x %{LSBinit}-install ]; then  %{LSBinit}-install sshdelse  lisa --SysV-init install sshd S55 2:3:4:5 K45 0:1:6fi! %{SVIdir}/sshd status || %{SVIdir}/sshd restart: # to protect the rpm database%PreUn server[ "$1" = 0 ] || exit 0! %{SVIdir}/sshd status || %{SVIdir}/sshd stop: # to protect the rpm database%PostUn serverif [ -x %{LSBinit}-remove ]; then  %{LSBinit}-remove sshdelse  lisa --SysV-init remove sshd $1fi: # to protect the rpm database%Files -f files-%{Name}-base%defattr(-,root,root)%Files server -f files-%{Name}-server%defattr(-,root,root)%Files askpass -f files-%{Name}-askpass%defattr(-,root,root)%DescriptionOpenSSH (Secure Shell) provides access to a remote system. It replacestelnet, rlogin,  rexec, and rsh, and provides secure encrypted communications between two untrusted hosts over an insecure network.  X11 connections and arbitrary TCP/IP ports can also be forwarded over the secure channel.%Description serverThis package installs the sshd, the server portion of OpenSSH. %Description askpassThis package contains an X11-based pass-phrase dialog used perdefault by ssh-add(1). It is based on %{askpass}by Jim Knoble <jmknoble@pobox.com>.%ChangeLog* Mon Jan 01 1998 ...$Id: openssh.spec,v 1.33.4.1 2002/06/21 15:49:56 djm Exp $

⌨️ 快捷键说明

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