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