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