openssh-vl.spec 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949
  1. %bcond_with systemd
  2. # SELinux
  3. %define WITH_SELINUX 0
  4. # OpenSSH privilege separation requires a user & group ID
  5. %define sshd_uid 74
  6. %define sshd_gid 74
  7. # Do we want to disable building of gnome-askpass? (1=yes 0=no)
  8. %define no_gnome_askpass 0
  9. # Use GTK3 for gnome-ssh-askpass
  10. %define gtk3 1
  11. # Build position-independent executables (requires toolchain support)?
  12. %define pie 1
  13. # Do we want to link against a static libcrypto? (1=yes 0=no)
  14. %define static_libcrypto 0
  15. # Do we want smartcard support (1=yes 0=no)
  16. %define scard 0
  17. # Disable IPv6 (avoids DNS hangs on some glibc versions)
  18. %define noip6 0
  19. # Do we want kerberos5 support (1=yes 0=no)
  20. %define kerberos5 0
  21. # Reserve options to override askpass settings with:
  22. # rpm -ba|--rebuild --define 'skip_xxx 1'
  23. %{?skip_gnome_askpass:%define no_gnome_askpass 1}
  24. # Options for static OpenSSL link:
  25. # rpm -ba|--rebuild --define "static_openssl 1"
  26. %{?static_openssl:%define static_libcrypto 1}
  27. # Options for Smartcard support: (needs libsectok and openssl-engine)
  28. # rpm -ba|--rebuild --define "smartcard 1"
  29. %{?smartcard:%define scard 1}
  30. # Option to disable ipv6
  31. # rpm -ba|--rebuild --define "noipv6 1"
  32. %{?noipv6:%define noip6 1}
  33. # Is this a build for the rescue CD (without PAM)? (1=yes 0=no)
  34. %define rescue 0
  35. %{?build_rescue:%define rescue 1}
  36. # Turn off some stuff for resuce builds
  37. %if %{rescue}
  38. %define kerberos5 0
  39. %endif
  40. Summary: The OpenSSH implementation of SSH.
  41. Summary(ja): OpenSSH - フリーの Secure Shell (SSH) の実装
  42. Name: openssh
  43. Version: 9.4p1
  44. Release: 1%{_dist_release}%{?with_systemd:.systemd}
  45. Group: network
  46. Vendor: Project Vine
  47. Distribution: Vine Linux
  48. Packager: daisuke
  49. License: BSD
  50. URL: https://www.openssh.com/portable.html
  51. Source0: https://cdn.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
  52. # files for systemd
  53. Source7: sshd.sysconfig
  54. Source9: sshd@.service
  55. Source10: sshd.socket
  56. Source11: sshd.service
  57. Source12: sshd-keygen@.service
  58. Source13: sshd-keygen
  59. Source14: sshd.tmpfiles
  60. Source15: sshd-keygen.target
  61. Patch0: openssh-8.7p1-vine.patch
  62. #Patch4: openssh-8.0p1-vendor.patch
  63. # Patch12: openssh-selinux.patch
  64. # Patch20: openssh-3.9p1-gssapimitm.patch
  65. Patch21: openssh-7.6p1-safe-stop.patch
  66. Patch24: openssh-7.6p1-fromto-remote.patch
  67. Patch26: openssh-5.2p1-pam-no-stack.patch
  68. # Patch27: openssh-5.1p1-log-in-chroot.patch
  69. # Patch30: openssh-5.6p1-exit-deadlock.patch
  70. # Patch31: openssh-3.9p1-skip-used.patch
  71. Patch35: openssh-8.2p1-askpass-progress-gtk3.patch
  72. # Help systemd to track the running service
  73. Patch948: openssh-7.4p1-systemd.patch
  74. # Vine Source
  75. Source100: sshd.init.vine
  76. Source110: sshd.sysconfig.vine
  77. BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
  78. Obsoletes: ssh
  79. BuildRequires: perl, openssl-devel
  80. BuildRequires: util-linux
  81. %if "%{_dist_release}" >= "vl7"
  82. BuildRequires: libdb-devel
  83. %else
  84. BuildRequires: db4-devel
  85. %endif
  86. BuildRequires: pam-devel
  87. BuildRequires: zlib-devel
  88. %if ! %{no_gnome_askpass}
  89. BuildRequires: libX11-devel
  90. BuildRequires: gtk3-devel
  91. %endif
  92. BuildRequires: xorg-x11-xauth
  93. BuildRequires: groff
  94. BuildRequires: libedit-devel
  95. %if %{with systemd}
  96. BuildRequires: systemd-devel
  97. %endif
  98. %description
  99. SSH (Secure SHell) is a program for logging into and executing
  100. commands on a remote machine. SSH is intended to replace rlogin and
  101. rsh, and to provide secure encrypted communications between two
  102. untrusted hosts over an insecure network. X11 connections and
  103. arbitrary TCP/IP ports can also be forwarded over the secure channel.
  104. OpenSSH is OpenBSD's version of the last free version of SSH, bringing
  105. it up to date in terms of security and features, as well as removing
  106. all patented algorithms to separate libraries.
  107. This package includes the core files necessary for both the OpenSSH
  108. client and server. To make this package useful, you should also
  109. install openssh-clients, openssh-server, or both.
  110. #'
  111. %description -l ja
  112. OpenSSH は、ネットワーク接続ツールである SSH プロトコル実装の フリー版 です。
  113. Ssh はリモートマシンへログインしたり、リモートマシンでコマンドを実行したり
  114. するためのプログラムです。rlogin や rsh を置き換えるもので、二つの信頼でき
  115. ないホスト間の信頼できない通信路でセキュアで暗号化された通信を行うことが
  116. 可能にします。X11 のコネクションやあらゆる TCP/IP のポートもまた、セキュア
  117. な通信路の中を通すことができます。
  118. OpenSSH は OpenBSD による最後のフリーのバージョンの再実装で、
  119. 最新のセキュリティと機能を提供しています。またすべての特許がからむ
  120. アルゴリズムは分割したライブラリにわかれています。
  121. このパッケージは OpenSSH のクライアントとサーバの両方で必要とされる
  122. コアのファイルを含んでいます。実際に使用するにはこのパッケージの他に
  123. openssh-clients および/または openssh-server が必要です。
  124. %package clients
  125. Summary: OpenSSH clients.
  126. Summary(ja): OpenSSH Secure Shell プロトコルクライアント
  127. Requires: openssh = %{version}-%{release}
  128. Group: network
  129. Obsoletes: ssh-clients
  130. Obsoletes: openssh-contrib
  131. %description clients
  132. OpenSSH is a free version of SSH (Secure SHell), a program for logging
  133. into and executing commands on a remote machine. This package includes
  134. the clients necessary to make encrypted connections to SSH servers.
  135. You'll also need to install the openssh package on OpenSSH clients.
  136. #'
  137. %description -l ja clients
  138. OpenSSH は、ネットワーク接続ツールである SSH プロトコル実装の フリー版 です。
  139. Ssh はリモートマシンへログインしたり、リモートマシンでコマンドを実行したり
  140. するためのプログラムです。rlogin や rsh を置き換えるもので、二つの信頼でき
  141. ないホスト間の信頼できない通信路でセキュアで暗号化された通信を行うことが
  142. 可能にします。X11 のコネクションやあらゆる TCP/IP のポートもまた、セキュア
  143. な通信路の中を通すことができます。
  144. OpenSSH は OpenBSD による最後のフリーのバージョンの再実装で、
  145. 最新のセキュリティと機能を提供しています。またすべての特許がからむ
  146. アルゴリズムは分割したライブラリにわかれています。
  147. このパッケージは OpenSSH をクライアントとして使用する場合に
  148. 必要なものを含んでいます。
  149. %package server
  150. Summary: The OpenSSH server daemon.
  151. Summary(ja): OpenSSH Secure Shell プロトコルサーバ (sshd)
  152. Group: servers
  153. Obsoletes: ssh-server
  154. Requires(post): openssh = %{version}-%{release}
  155. Requires(post): chkconfig
  156. Requires(pre): shadow-utils
  157. Requires(post): initscripts >= 5.20
  158. Requires: pam
  159. %description server
  160. OpenSSH is a free version of SSH (Secure SHell), a program for logging
  161. into and executing commands on a remote machine. This package contains
  162. the secure shell daemon (sshd). The sshd daemon allows SSH clients to
  163. securely connect to your SSH server. You also need to have the openssh
  164. package installed.
  165. %description -l ja server
  166. OpenSSH は、ネットワーク接続ツールである SSH プロトコル実装の フリー版 です。
  167. Ssh はリモートマシンへログインしたり、リモートマシンでコマンドを実行したり
  168. するためのプログラムです。rlogin や rsh を置き換えるもので、二つの信頼でき
  169. ないホスト間の信頼できない通信路でセキュアで暗号化された通信を行うことが
  170. 可能にします。X11 のコネクションやあらゆる TCP/IP のポートもまた、セキュア
  171. な通信路の中を通すことができます。
  172. OpenSSH は OpenBSD による最後のフリーのバージョンの再実装で、
  173. 最新のセキュリティと機能を提供しています。またすべての特許がからむ
  174. アルゴリズムは分割したライブラリにわかれています。
  175. このパッケージは OpenSSH をサーバとして使用する場合に必要な
  176. デーモンなどを含んでいます。
  177. %package askpass-gnome
  178. Summary: A passphrase dialog for OpenSSH, X, and GNOME.
  179. Summary(ja): OpenSSH GNOME パスフレーズ入力ダイアログ
  180. Group: network
  181. Requires: openssh = %{version}-%{release}
  182. Obsoletes: ssh-extras
  183. Obsoletes: openssh-askpass < 5.5p1-3vl6
  184. Provides: openssh-askpass = %{version}-%{release}
  185. %description askpass-gnome
  186. OpenSSH is a free version of SSH (Secure SHell), a program for logging
  187. into and executing commands on a remote machine. This package contains
  188. an X11 passphrase dialog for OpenSSH and the GNOME GUI desktop
  189. environment.
  190. %description -l ja askpass-gnome
  191. OpenSSH は、ネットワーク接続ツールである SSH プロトコル実装の フリー版 です。
  192. Ssh はリモートマシンへログインしたり、リモートマシンでコマンドを実行したり
  193. するためのプログラムです。rlogin や rsh を置き換えるもので、二つの信頼でき
  194. ないホスト間の信頼できない通信路でセキュアで暗号化された通信を行うことが
  195. 可能にします。X11 のコネクションやあらゆる TCP/IP のポートもまた、セキュア
  196. な通信路の中を通すことができます。
  197. OpenSSH は OpenBSD による最後のフリーのバージョンの再実装で、
  198. 最新のセキュリティと機能を提供しています。またすべての特許がからむ
  199. アルゴリズムは分割したライブラリにわかれています。
  200. このパッケージは GNOME 用のパスフレーズ入力ダイアログを含んでいます。
  201. %debug_package
  202. %prep
  203. %setup -q
  204. %patch0 -p1 -b .vine
  205. #patch4 -p1 -b .vendor
  206. %if %{WITH_SELINUX}
  207. #SELinux
  208. #%patch12 -p1 -b .selinux
  209. %endif
  210. %patch21 -p1 -b .safe-stop
  211. %patch24 -p1 -b .fromto-remote
  212. %patch26 -p1 -b .stack
  213. # %patch27 -p1 -b .log-chroot
  214. # %patch30 -p1 -b .exit-deadlock
  215. # %patch35 -p1 -b .progress
  216. %if %{with systemd}
  217. %patch948 -p1
  218. %endif
  219. autoreconf
  220. %build
  221. CFLAGS="$RPM_OPT_FLAGS -fvisibility=hidden"; export CFLAGS
  222. %if %{pie}
  223. %ifarch s390 s390x sparc sparc64
  224. CFLAGS="$CFLAGS -fPIC"
  225. %else
  226. CFLAGS="$CFLAGS -fpic"
  227. %endif
  228. SAVE_LDFLAGS="$LDFLAGS"
  229. LDFLAGS="$LDFLAGS -pie -z relro -z now"; export LDFLAGS
  230. export CFLAGS
  231. export LDFLAGS
  232. %endif
  233. # for glibc-2.34 on older kenel
  234. export ac_cv_func_closefrom=no
  235. %configure \
  236. --sysconfdir=%{_sysconfdir}/ssh \
  237. --libexecdir=%{_libexecdir}/openssh \
  238. --datadir=%{_datadir}/openssh \
  239. --with-default-path=/usr/local/bin:/bin:/usr/bin \
  240. --with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin --with-privsep-path=%{_var}/empty/sshd \
  241. --disable-strip \
  242. --without-zlib-version-check \
  243. --with-ssl-engine \
  244. --with-ipaddr-display \
  245. --with-pie=no \
  246. --enable-vendor-patchlevel="VL-%{version}-%{release}" \
  247. --with-libedit \
  248. --with-xauth=/usr/bin/xauth \
  249. %if %{scard}
  250. --with-smartcard \
  251. %endif
  252. %if %{noip6}
  253. --with-ipv4-default \
  254. %endif
  255. %if %{rescue}
  256. --without-pam --with-md5-passwords \
  257. %else
  258. --with-pam \
  259. %endif
  260. %if %{with systemd}
  261. --with-systemd \
  262. %endif
  263. %{nil}
  264. %if %{static_libcrypto}
  265. perl -pi -e "s|-lcrypto|%{_libdir}/libcrypto.a|g" Makefile
  266. %endif
  267. %make_build
  268. %if %{gtk3}
  269. gtk3=yes
  270. %else
  271. gtk3=no
  272. %endif
  273. %if ! %{no_gnome_askpass}
  274. pushd contrib
  275. if [ $gtk3 = yes ]; then
  276. make gnome-ssh-askpass3
  277. mv gnome-ssh-askpass3 gnome-ssh-askpass
  278. else
  279. make gnome-ssh-askpass2
  280. mv gnome-ssh-askpass2 gnome-ssh-askpass
  281. fi
  282. popd
  283. %endif
  284. %install
  285. rm -rf $RPM_BUILD_ROOT
  286. mkdir -p -m755 $RPM_BUILD_ROOT%{_sysconfdir}/ssh
  287. mkdir -p -m755 $RPM_BUILD_ROOT%{_libexecdir}/openssh
  288. mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd
  289. mkdir -p -m755 $RPM_BUILD_ROOT%{_var}/empty/sshd/etc
  290. make install DESTDIR=$RPM_BUILD_ROOT
  291. touch $RPM_BUILD_ROOT%{_var}/empty/sshd/etc/localtime
  292. install -d $RPM_BUILD_ROOT/etc/pam.d/
  293. install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
  294. install -d $RPM_BUILD_ROOT/etc/sysconfig/
  295. install -d $RPM_BUILD_ROOT%{_libexecdir}/openssh
  296. install -m644 contrib/redhat/sshd.pam $RPM_BUILD_ROOT/etc/pam.d/sshd
  297. %if %{with systemd}
  298. install -d -m755 $RPM_BUILD_ROOT/%{_unitdir}
  299. install -m644 %{SOURCE9} $RPM_BUILD_ROOT/%{_unitdir}/sshd@.service
  300. install -m644 %{SOURCE10} $RPM_BUILD_ROOT/%{_unitdir}/sshd.socket
  301. install -m644 %{SOURCE11} $RPM_BUILD_ROOT/%{_unitdir}/sshd.service
  302. install -m644 %{SOURCE12} $RPM_BUILD_ROOT/%{_unitdir}/sshd-keygen@.service
  303. install -m644 %{SOURCE15} $RPM_BUILD_ROOT/%{_unitdir}/sshd-keygen.target
  304. install -m744 %{SOURCE13} $RPM_BUILD_ROOT/%{_libexecdir}/openssh/sshd-keygen
  305. install -m755 contrib/ssh-copy-id $RPM_BUILD_ROOT%{_bindir}/
  306. install contrib/ssh-copy-id.1 $RPM_BUILD_ROOT%{_mandir}/man1/
  307. install -m644 -D %{SOURCE14} $RPM_BUILD_ROOT%{_tmpfilesdir}/%{name}.conf
  308. install -m644 %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/sshd
  309. %else
  310. install -m755 %{SOURCE100} $RPM_BUILD_ROOT/etc/rc.d/init.d/sshd
  311. install -m644 %{SOURCE110} $RPM_BUILD_ROOT/etc/sysconfig/sshd
  312. %endif
  313. %if ! %{scard}
  314. rm -f $RPM_BUILD_ROOT%{_datadir}/openssh/Ssh.bin
  315. %endif
  316. %if ! %{no_gnome_askpass}
  317. install -s contrib/gnome-ssh-askpass $RPM_BUILD_ROOT%{_libexecdir}/openssh/gnome-ssh-askpass
  318. install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
  319. install -m 755 contrib/redhat/gnome-ssh-askpass.{sh,csh} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/
  320. %endif
  321. %if %{no_gnome_askpass}
  322. rm -f $RPM_BUILD_ROOT/etc/profile.d/gnome-ssh-askpass.*
  323. %endif
  324. # for contrib package
  325. install -m 0755 contrib/ssh-copy-id $RPM_BUILD_ROOT%{_bindir}
  326. install -m 0644 contrib/ssh-copy-id.1 $RPM_BUILD_ROOT%{_mandir}/man1
  327. mv contrib/README contrib/README.contrib
  328. perl -pi -e "s|$RPM_BUILD_ROOT||g" $RPM_BUILD_ROOT%{_mandir}/man*/*
  329. %clean
  330. rm -rf $RPM_BUILD_ROOT
  331. %triggerun server -- ssh-server
  332. if [ "$1" != 0 -a -r /var/run/sshd.pid ] ; then
  333. touch /var/run/sshd.restart
  334. fi
  335. %triggerun server -- openssh-server < 2.5.0p1
  336. # Count the number of HostKey and HostDsaKey statements we have.
  337. gawk 'BEGIN {IGNORECASE=1}
  338. /^hostkey/ || /^hostdsakey/ {sawhostkey = sawhostkey + 1}
  339. END {exit sawhostkey}' /etc/ssh/sshd_config
  340. # And if we only found one, we know the client was relying on the old default
  341. # behavior, which loaded the the SSH2 DSA host key when HostDsaKey wasn't
  342. # specified. Now that HostKey is used for both SSH1 and SSH2 keys, specifying
  343. # one nullifies the default, which would have loaded both.
  344. if [ $? -eq 1 ] ; then
  345. echo HostKey /etc/ssh/ssh_host_rsa_key >> /etc/ssh/sshd_config
  346. echo HostKey /etc/ssh/ssh_host_dsa_key >> /etc/ssh/sshd_config
  347. fi
  348. %triggerpostun server -- ssh-server
  349. if [ "$1" != 0 ] ; then
  350. /sbin/chkconfig --add sshd
  351. if test -f /var/run/sshd.restart ; then
  352. rm -f /var/run/sshd.restart
  353. # /sbin/service sshd start > /dev/null 2>&1 || :
  354. /sbin/service sshd start
  355. fi
  356. fi
  357. %if %{with systemd}
  358. %pre
  359. getent group ssh_keys >/dev/null || groupadd -r ssh_keys || :
  360. %endif
  361. %pre server
  362. %{_sbindir}/groupadd -r -g %{sshd_gid} sshd 2>/dev/null || :
  363. %{_sbindir}/useradd -d /var/empty/sshd -s /bin/false -u %{sshd_uid} \
  364. -g sshd -M -r sshd 2>/dev/null || :
  365. %post server
  366. %if %{with systemd}
  367. %systemd_post sshd.service sshd.socket
  368. %else
  369. /sbin/chkconfig --add sshd
  370. %endif
  371. %postun server
  372. %if %{with systemd}
  373. %systemd_postun_with_restart sshd.service
  374. %else
  375. # /sbin/service sshd condrestart > /dev/null 2>&1 || :
  376. if [ "$1" -gt 0 ]; then
  377. /sbin/service sshd condrestart
  378. fi
  379. exit 0
  380. %endif
  381. %preun server
  382. %if %{with systemd}
  383. %systemd_preun sshd.service sshd.socket
  384. %else
  385. if [ "$1" = 0 -o -x /bin/systemctl ]; then
  386. /sbin/service sshd stop > /dev/null 2>&1 || :
  387. /sbin/chkconfig --del sshd
  388. fi
  389. %endif
  390. %files
  391. %defattr(-,root,root)
  392. %license LICENCE
  393. %doc CREDITS ChangeLog INSTALL OVERVIEW PROTOCOL* README* TODO
  394. %attr(0755,root,root) %dir %{_sysconfdir}/ssh
  395. %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/moduli
  396. %attr(644,root,root) %{_mandir}/man5/moduli.5*
  397. %if ! %{rescue}
  398. %attr(0755,root,root) %{_bindir}/ssh-keygen
  399. %attr(0644,root,root) %{_mandir}/man1/ssh-keygen.1*
  400. %attr(0755,root,root) %dir %{_libexecdir}/openssh
  401. %attr(4711,root,root) %{_libexecdir}/openssh/ssh-keysign
  402. %attr(0644,root,root) %{_mandir}/man8/ssh-keysign.8*
  403. %endif
  404. %if %{scard}
  405. %attr(0755,root,root) %dir %{_datadir}/openssh
  406. %attr(0644,root,root) %{_datadir}/openssh/Ssh.bin
  407. %endif
  408. %files clients
  409. %defattr(-,root,root)
  410. %attr(0755,root,root) %{_bindir}/scp
  411. %attr(0755,root,root) %{_bindir}/ssh
  412. %attr(0644,root,root) %{_mandir}/man1/scp.1*
  413. %attr(0644,root,root) %{_mandir}/man1/ssh.1*
  414. %attr(0644,root,root) %{_mandir}/man5/ssh_config.5*
  415. # %attr(0644,root,root) %{_mandir}/man1/slogin.1*
  416. %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ssh/ssh_config
  417. # %attr(-,root,root) %{_bindir}/slogin
  418. %if ! %{rescue}
  419. %attr(0755,root,root) %{_bindir}/ssh-agent
  420. %attr(0755,root,root) %{_bindir}/ssh-add
  421. %attr(0755,root,root) %{_bindir}/ssh-keyscan
  422. %attr(0755,root,root) %{_bindir}/sftp
  423. %attr(0755,root,root) %{_bindir}/ssh-copy-id
  424. %attr(0755,root,root) %{_libexecdir}/openssh/ssh-pkcs11-helper
  425. %attr(0755,root,root) %{_libexecdir}/openssh/ssh-sk-helper
  426. %attr(0644,root,root) %{_mandir}/man1/ssh-agent.1*
  427. %attr(0644,root,root) %{_mandir}/man1/ssh-add.1*
  428. %attr(0644,root,root) %{_mandir}/man1/ssh-keyscan.1*
  429. %attr(0644,root,root) %{_mandir}/man1/sftp.1*
  430. %attr(0644,root,root) %{_mandir}/man1/ssh-copy-id.1*
  431. %attr(0644,root,root) %{_mandir}/man8/ssh-pkcs11-helper.8*
  432. %attr(0644,root,root) %{_mandir}/man8/ssh-sk-helper.8*
  433. %endif
  434. %if ! %{rescue}
  435. %files server
  436. %defattr(-,root,root)
  437. %dir %attr(0711,root,root) %{_var}/empty/sshd
  438. %dir %attr(0755,root,root) %{_var}/empty/sshd/etc
  439. %ghost %verify(not md5 size mtime) %{_var}/empty/sshd/etc/localtime
  440. %attr(0755,root,root) %{_sbindir}/sshd
  441. %attr(0755,root,root) %{_libexecdir}/openssh/sftp-server
  442. %attr(0644,root,root) %{_mandir}/man5/sshd_config.5*
  443. %attr(0644,root,root) %{_mandir}/man8/sshd.8*
  444. %attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
  445. %attr(0755,root,root) %dir %{_sysconfdir}/ssh
  446. %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config
  447. %attr(0600,root,root) %config(noreplace) /etc/pam.d/sshd
  448. %attr(0755,root,root) %config /etc/sysconfig/sshd
  449. %if %{with systemd}
  450. %attr(0755,root,root) %{_libexecdir}/openssh/sshd-keygen
  451. %attr(0644,root,root) %{_unitdir}/sshd.service
  452. %attr(0644,root,root) %{_unitdir}/sshd@.service
  453. %attr(0644,root,root) %{_unitdir}/sshd.socket
  454. %attr(0644,root,root) %{_unitdir}/sshd-keygen@.service
  455. %attr(0644,root,root) %{_unitdir}/sshd-keygen.target
  456. %attr(0644,root,root) %{_tmpfilesdir}/openssh.conf
  457. %else
  458. %attr(0755,root,root) %config /etc/rc.d/init.d/sshd
  459. %endif
  460. %endif
  461. %if ! %{no_gnome_askpass}
  462. %files askpass-gnome
  463. %defattr(-,root,root)
  464. %attr(0755,root,root) %config %{_sysconfdir}/profile.d/gnome-ssh-askpass.*
  465. %attr(0755,root,root) %{_libexecdir}/openssh/gnome-ssh-askpass
  466. %endif
  467. %changelog
  468. * Wed Sep 20 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.4p1-1
  469. - new upstream release.
  470. * Tue Aug 01 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.3p2-1
  471. - new upstream release.
  472. * Tue Mar 28 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.3p1-1
  473. - new upstream release.
  474. * Mon Feb 13 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 9.2p1-1
  475. - new upstream release.
  476. * Tue Oct 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.8p1-3
  477. - built with workaround for glibc-2.34 on older kernel.
  478. * Sat Oct 09 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.8p1-2
  479. - rebuilt with openssl-3.0.0.
  480. * Fri Oct 01 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.8p1-1
  481. - new upstream release.
  482. * Fri Aug 20 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.7p1-1
  483. - new upstream release.
  484. - updated Patch0.
  485. * Wed Apr 21 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.6p1-1
  486. - new upstream release.
  487. * Tue Mar 09 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.5p1-1
  488. - new upstream release.
  489. * Wed Oct 07 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.4p1-1
  490. - new upstream release.
  491. - updated Patch0.
  492. - disabled Patch35.
  493. * Wed May 27 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.3p1-1
  494. - new upstream release.
  495. * Thu Apr 02 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.2p1-2
  496. - added systemd support (disabled as default).
  497. * Thu Mar 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.2p1-1
  498. - new upstream release.
  499. - updated Patch35.
  500. * Thu Oct 17 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.1p1-1
  501. - new upstream release.
  502. * Sat Jun 22 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 8.0p1-1
  503. - new upstream release.
  504. - moved scp to openssh-clients.
  505. - changed "PasswordAuthentication" to "no" as default.
  506. - dropped Patch4.
  507. - updated Patch35 to use GTK+3 for gnome-ssh-askpass.
  508. * Tue Nov 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.9p1-1
  509. - new upstream release.
  510. - updated Patch4.
  511. * Wed Nov 15 2017 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 7.6p1-1
  512. - new upstream release.
  513. - update patch0,4,21,24
  514. - update patch35 from fc26
  515. - drop patch12,20,30
  516. * Fri Aug 5 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.2p2-2
  517. - disabled rsa1 hostkey generation.
  518. * Sat Jul 30 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 7.2p2-1
  519. - new upstream release.
  520. * Wed Mar 9 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 7.2p1-1
  521. - new upstream release
  522. - built with openssl 1.0.2g
  523. - drop slogin command and manual, this is upstream change.
  524. * Sun Jan 17 2016 Daisuke SUZUKI <daisuke@vinelinux.org> 7.1p2-1
  525. - update to 7.1p2
  526. * Mon Dec 28 2015 Daisuke SUZUKI <daisuke@vinelinux.org> 7.1p1-1
  527. - update to 7.1p1
  528. - remove patch100 to use default value "prohibit-password" for PermitRootLogin
  529. * Tue Oct 14 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.7p1-1
  530. - update to 6.7p1
  531. - fix sshd.init
  532. * Thu Aug 07 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 6.6p1-1
  533. - update to 6.6p1
  534. - remove BR: sharutils
  535. - add BR: libdb-devel instead of db4-devel
  536. * Tue Feb 04 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 6.5p1-1
  537. - update to 6.5p1
  538. - update sshd_config
  539. - generate ED25519 host key.
  540. * Tue Nov 12 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 6.4p1-1
  541. - update to 6.4p1
  542. * Mon May 20 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 6.2p2-1
  543. - update to 6.2p2
  544. * Fri Mar 22 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 6.2p1-1
  545. - update to 6.2p1
  546. * Fri Nov 2 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 6.1p1-1
  547. - new upstream release
  548. - add -with-xauth option in configure
  549. - patch4, 30, 35 are updated from fc18
  550. * Mon May 07 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 6.0p1-1
  551. - new upstream release
  552. * Tue Mar 06 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 5.9p1-1
  553. - new upstream release
  554. * Sun May 8 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.8p2-1
  555. - new upstream release
  556. * Tue Apr 19 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.8p1-2
  557. - add our own sshd.init based on fedora's sshd.init
  558. - generate ECDSA host key.
  559. * Sat Feb 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.8p1-1
  560. - new upstream release
  561. * Tue Jan 25 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.7p1-1
  562. - new upstream release
  563. * Mon Jan 10 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 5.6p1-1
  564. - new upstream release
  565. - obsolete contrib subpackage, move ssh-copy-id to client subpackage
  566. * Sun Jan 9 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.5p1-4
  567. - rebuilt with openssl 1.0.0c
  568. * Sun May 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 5.5p1-3
  569. - drop x11-askpass, add Obsoletes: openssh-askpass
  570. - add BR: groff
  571. - enable --with-libedit option, add BR: libedit-devel
  572. - remove unrecognized option '--with-rsh'
  573. * Sun May 23 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 5.5p1-2
  574. - add BR: xorg-x11-xauth for X11 forwarding support
  575. * Thu Apr 22 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 5.5p1-1
  576. - new upstream release
  577. - update patch0,2
  578. - drop patch3,22
  579. * Tue Feb 24 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 5.2p1-1
  580. - new upstream release
  581. * Tue Jul 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.1p1-1
  582. - new upstream release
  583. * Thu May 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 5.0p1-2
  584. - rebuild with xorg-x11-7.3
  585. * Fri Apr 04 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 5.0p1-1
  586. - new upstream release with security fix (CVE-2008-1483)
  587. - drop patch31 which is included in new release (This was for CVE-2008-1483)
  588. * Tue Apr 01 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.9p1-1
  589. - new upstream release with security fix ("ForceCommand" Directive)
  590. - turn on daemon restart message
  591. - new versioning policy
  592. * Mon Nov 26 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.7p1-0vl2
  593. - add /var/empty/sshd/etc/localtime to fix secure log bad timestamps
  594. * Tue Nov 13 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.7p1-0vl1
  595. - new upstream release
  596. * Thu May 17 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6p1-0vl2
  597. - build with -fpie/-pie by default.
  598. - enable ipv6 by default.
  599. * Fri May 04 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 4.6p1-0vl1
  600. - new upstream release
  601. * Wed Nov 08 2006 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 4.5p1-0vl1
  602. - new upstream release
  603. * Fri Sep 29 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.4p1-0vl1
  604. - new upstream release
  605. * Thu Jul 27 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.3p2-0vl1
  606. - new upstream release
  607. * Mon Apr 10 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 4.3p1-0vl1
  608. - new upstream release
  609. - remove build6x stuff
  610. - remove libgnome-devel from BuildRequires
  611. - cleanup BuildRequires
  612. - drop Patch200, it is merged in upstream.
  613. - import patches(25-35) from FC-devel
  614. * Mon Apr 10 2006 IWAI, Masaharu <iwai@alib.jp> 4.2p1-0vl3
  615. - SECURITY FIX: CVE-2006-0225
  616. - add scp no system patch ( Patch200 ): from Fedora Core 4 4.2p1-fc4.10
  617. - update BuildPreReq: s/XFree86-devel/XOrg-devel/
  618. - fix BuildPreReq for GNOME: gnome-libs-devel ( GNOME1 ) was always used
  619. - When GNOME2 is used, using libgnome-devel
  620. - add BuildPreReq: gtk2-devel for GNOME2
  621. * Sat Sep 24 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2p1-0vl2
  622. - rebuild with gtk+-2.8 final
  623. * Sun Sep 4 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.2p1-0vl1
  624. - new upstream release
  625. - build with gtk+-2.7
  626. * Sun May 29 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.1p1-0vl1
  627. - new upstream release
  628. * Fri Apr 01 2005 KOBAYASHI Taizo <tkoba@vinelinux.org> 4.0p1-0vl2
  629. - cleanup obsolete patches and added patches from fedora
  630. * Wed Mar 16 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 4.0p1-0vl1
  631. - new upstream release
  632. * Thu Aug 19 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.9pl1-0vl1
  633. - new upstream release
  634. * Wed Apr 21 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8.1p1-0vl1
  635. - new upstream release
  636. * Fri Mar 26 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8p1-0vl2
  637. - rebuild with openssl-0.9.7d
  638. * Fri Feb 27 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 3.8p1-0vl1
  639. - new upstream release
  640. * Thu Oct 2 2003 IWAI, Masaharu <iwai@alib.jp> 3.7.1p2-0vl2
  641. - create contrib package
  642. * Wed Sep 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.1p2-0vl1
  643. - new upstream release
  644. - fix security issue: http://www.openssh.com/txt/sshpam.adv
  645. * Wed Sep 17 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7.1p1-0vl1
  646. - new upstream release
  647. - fix security issue: http://www.openssh.com/txt/buffer.adv
  648. * Wed Sep 17 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 3.7p1-0vl1
  649. - new upstream release
  650. * Thu May 1 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 3.6.1p2-0vl1.1
  651. - rebuild with gtk2
  652. * Thu May 1 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 3.6.1p2-0vl1
  653. - new upstream release
  654. * Sun Apr 13 2003 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.5p1-0vl2
  655. - rebuild with new tool chain
  656. * Tue Oct 29 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.5p1-0vl1
  657. - new upstream release
  658. - merge with upstream spec (drop anonymous mmap patch, suid of ssh)
  659. * Tue Aug 20 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.4p1-0vl3
  660. - change some defines in spec files
  661. * Thu Jun 27 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.4p1-0vl2
  662. - add patch110 ( 3.4p1 does not include mmap-fallback patch )
  663. * Thu Jun 27 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.4p1-0vl1
  664. - new upstream release
  665. - security fix
  666. - drop patch10
  667. * Wed Jun 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.3p1-0vl2
  668. - add patch from Solar Designer to make privsep work with a 2.2 kernel.
  669. * Sun Jun 23 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.3p1-0vl1
  670. - new upstream release
  671. - add {sshd,ssh}_config.5 manpages
  672. - add ssh-keysign
  673. * Sun May 26 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.3p1-0vl1
  674. - new upstream release
  675. * Sat May 18 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.2.2p1-0vl1
  676. - new upstream release
  677. - drop patch1
  678. * Fri Mar 08 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 3.1p1-2vl1
  679. - new upstream release
  680. - merged with rawhide release.
  681. - drop Patch101 (merged in upstream)
  682. * Fri Mar 08 2002 Toru Sagami <sagami@vinelinux.org> 3.0.2p1-2vl2
  683. - seurity patch for off-by-one bug
  684. * Wed Jan 30 2002 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 3.0.2p-2vl1
  685. - merged with Rawhide 3.0.2p1-2
  686. * Sun Dec 02 2001 Toru Sagami <sagami@vinelinux.org>
  687. - updated to 3.0.2p1
  688. * Mon Nov 19 2001 Toru Sagami <sagami@vinelinux.org>
  689. - updated to 3.0.1p1
  690. * Thu Nov 08 2001 Toru Sagami <sagami@vinelinux.org> 3.0p1-0vl0
  691. - updated to 3.0p1
  692. * Sun Sep 30 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 2.9.9p2-0vl2
  693. - add japanese summery and descriptions.
  694. - update x11-askpass 1.2.5
  695. * Sun Sep 30 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 2.9.9p2-0vl1
  696. - update to openssh-2.9.9p2
  697. * Mon Jul 16 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org> 2.5.2p2-0vl3
  698. - rebuilt with openssl-0.9.6b
  699. * Tue Mar 27 2001 Jun Nishii <jun@vinelinux.org> 2.5.2p2-0vl2
  700. - do not Permit RootLogin
  701. * Tue Mar 27 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.2p2-0vl1
  702. - update to openssh-2.5.2p2
  703. * Wed Mar 21 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.2p1-0vl1
  704. - update to openssh-2.5.2p1
  705. * Thu Mar 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.1p2-0vl1
  706. - update to openssh-2.5.1p2
  707. * Thu Mar 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.1p2-0vl1
  708. - update to openssh-2.5.1p1
  709. * Wed Feb 21 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 2.5.1p1-0vl1
  710. - update to openssh-2.5.1p1
  711. * Thu Dec 28 2000 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0p1-0vl4
  712. - remove suid bit from ssh
  713. * Tue Dec 19 2000 Satoshi MACHINO <machino@vinelinux.org> 2.3.0p1-0vl3
  714. - moved man dir to /usr/share/man
  715. * Wed Dec 06 2000 Satoshi MACHINO <machino@vinelinux.org> 2.3.0p1-0vl2
  716. - fixed askpass's link in ssh-add
  717. - partially used rpmmacros
  718. * Fri Nov 10 2000 Daisuke SUZUKI <daisuke@linux.or.jp> 2.3.0p1-0vl1
  719. - update to 2.3.0p1
  720. - update x11-askpass 1.0.3
  721. * Wed Oct 18 2000 Damien Miller <djm@mindrot.org>
  722. - Merge some of Nalin Dahyabhai <nalin@redhat.com> changes from the
  723. Redhat 7.0 spec file
  724. * Sat Oct 14 2000 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.0p2-2vl1
  725. - rebuild for Vine Linux
  726. * Tue Sep 05 2000 Damien Miller <djm@mindrot.org>
  727. - Use RPM configure macro
  728. * Tue Aug 08 2000 Damien Miller <djm@mindrot.org>
  729. - Some surgery to sshd.init (generate keys at runtime)
  730. - Cleanup of groups and removal of keygen calls
  731. * Wed Jul 12 2000 Damien Miller <djm@mindrot.org>
  732. - Make building of X11-askpass and gnome-askpass optional
  733. * Mon Jun 12 2000 Damien Miller <djm@mindrot.org>
  734. - Glob manpages to catch compressed files
  735. * Wed Mar 15 2000 Damien Miller <djm@ibs.com.au>
  736. - Updated for new location
  737. - Updated for new gnome-ssh-askpass build
  738. * Sun Dec 26 1999 Damien Miller <djm@mindrot.org>
  739. - Added Jim Knoble's <jmknoble@pobox.com> askpass
  740. * Mon Nov 15 1999 Damien Miller <djm@mindrot.org>
  741. - Split subpackages further based on patch from jim knoble <jmknoble@pobox.com>
  742. * Sat Nov 13 1999 Damien Miller <djm@mindrot.org>
  743. - Added 'Obsoletes' directives
  744. * Tue Nov 09 1999 Damien Miller <djm@ibs.com.au>
  745. - Use make install
  746. - Subpackages
  747. * Mon Nov 08 1999 Damien Miller <djm@ibs.com.au>
  748. - Added links for slogin
  749. - Fixed perms on manpages
  750. * Sat Oct 30 1999 Damien Miller <djm@ibs.com.au>
  751. - Renamed init script
  752. * Fri Oct 29 1999 Damien Miller <djm@ibs.com.au>
  753. - Back to old binary names
  754. * Thu Oct 28 1999 Damien Miller <djm@ibs.com.au>
  755. - Use autoconf
  756. - New binary names
  757. * Wed Oct 27 1999 Damien Miller <djm@ibs.com.au>
  758. - Initial RPMification, based on Jan "Yenya" Kasprzak's <kas@fi.muni.cz> spec.