Contents of /branches/R11-stable/core/openssh/openssh-6.2p2-r2.smage2
Parent Directory | Revision Log
Revision 17781 -
(show annotations)
(download)
Wed Jun 26 12:30:45 2013 UTC (11 years, 3 months ago) by niro
File size: 2533 byte(s)
Wed Jun 26 12:30:45 2013 UTC (11 years, 3 months ago) by niro
File size: 2533 byte(s)
-release branches/R11-stable
1 | # $Id$ |
2 | |
3 | PNAME="openssh" |
4 | PVER="6.2p2" |
5 | PBUILD="r2" |
6 | |
7 | PCAT="net-misc" |
8 | |
9 | DESCRIPTION="Port of OpenBSD's free SSH release." |
10 | HOMEPAGE="http://www.openssh.com/" |
11 | |
12 | DEPEND=">= dev-libs/openssl-1.0.1e |
13 | >= sys-libs/zlib-1.2.5 |
14 | >= virtual/sed" |
15 | |
16 | PROVIDE="virtual/ssh-server |
17 | virtual/ssh-client" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.gz" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | sminclude mbuild mtools |
23 | msetfeature "!check" |
24 | |
25 | SVC_REV=1.3 |
26 | |
27 | SRC_URI=( |
28 | ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${SRCFILE} |
29 | mirror://${PNAME}/${SRCFILE} |
30 | mirror://${PNAME}/sshd.service-${SVC_REV} |
31 | # mirror://${PNAME}/sshd.socket |
32 | mirror://${PNAME}/ssh-keygen-dsa.service |
33 | mirror://${PNAME}/ssh-keygen-ecdsa.service |
34 | mirror://${PNAME}/ssh-keygen-rsa1.service |
35 | mirror://${PNAME}/ssh-keygen-rsa.service |
36 | mirror://${PNAME}/sshd.conf.tempfile |
37 | ) |
38 | |
39 | UP2DATE="updatecmd http://ftp2.eu.openbsd.org/pub/OpenBSD/OpenSSH/portable/ | lasttarball gz" |
40 | |
41 | src_compile() |
42 | { |
43 | cd ${SRCDIR} |
44 | |
45 | mconfigure \ |
46 | --sysconfdir=/etc/ssh \ |
47 | --libexecdir=/usr/$(mlibdir)/misc \ |
48 | --datadir=/usr/share/openssh \ |
49 | --disable-suid-ssh \ |
50 | --with-privsep-path=/var/empty \ |
51 | --with-privsep-user=sshd \ |
52 | --with-md5-passwords \ |
53 | --with-ipv4-default \ |
54 | --without-zlib-version-check \ |
55 | || die |
56 | |
57 | mmake || die |
58 | } |
59 | |
60 | src_install() |
61 | { |
62 | cd ${SRCDIR} |
63 | mmake DESTDIR=${BINDIR} install-nokeys || die |
64 | |
65 | # install systemd units |
66 | minstallunit sshd.service-${SVC_REV} sshd.service || die |
67 | # minstallunit sshd.socket || die |
68 | minstallunit ssh-keygen-dsa.service || die |
69 | minstallunit ssh-keygen-ecdsa.service || die |
70 | minstallunit ssh-keygen-rsa1.service || die |
71 | minstallunit ssh-keygen-rsa.service || die |
72 | minstalltmp sshd.conf.tempfile sshd.conf || die |
73 | |
74 | # needed to run sshd |
75 | mkeepdir /var/empty || die |
76 | mchown root:sys /var/empty || die |
77 | |
78 | minstalldocs CREDITS ChangeLog LICENCE OVERVIEW \ |
79 | README* RFC.nroff TODO WARNING.RNG || die |
80 | } |
81 | |
82 | preinstall() |
83 | { |
84 | # adding ssh user |
85 | ${MLIBDIR}/mgroupadd -o "-g 22" sshd |
86 | ${MLIBDIR}/museradd -o "-u 22 -g sshd -d /var/empty -s /bin/false" sshd |
87 | } |
88 | |
89 | postinstall() |
90 | { |
91 | mstartunit ssh-keygen-dsa.service sshd |
92 | mstartunit ssh-keygen-ecdsa.service sshd |
93 | mstartunit ssh-keygen-rsa1.service sshd |
94 | mstartunit ssh-keygen-rsa.service sshd |
95 | mstartunit sshd.service |
96 | # per socket connection not supported atm |
97 | #mstartunit sshd.socket |
98 | } |
99 | |
100 | postremove() |
101 | { |
102 | mstopunit ssh-keygen-dsa.service sshd |
103 | mstopunit ssh-keygen-ecdsa.service sshd |
104 | mstopunit ssh-keygen-rsa1.service sshd |
105 | mstopunit ssh-keygen-rsa.service sshd |
106 | mstopunit sshd.service |
107 | # per socket connection not supported atm |
108 | #mstopunit sshd.socket |
109 | } |