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