Magellan Linux

Contents of /branches/magellan-next/core/openssh/openssh-5.5p1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 6233 - (show annotations) (download)
Thu Aug 19 21:24:56 2010 UTC (13 years, 9 months ago) by niro
File size: 1588 byte(s)
auto added: ver bump to 5.5p1-r1
1 # $Id: openssh-5.3p1-r1.smage2 3170 2009-10-14 07:59:30Z niro $
2
3 PNAME="openssh"
4 PVER="5.5p1"
5 PBUILD="r1"
6
7 PCATEGORIE="net-misc"
8 STATE="unstable"
9
10 DESCRIPTION="Port of OpenBSD's free SSH release."
11 HOMEPAGE="http://www.openssh.com/"
12
13 DEPEND=">= dev-libs/openssl-1.0.0a
14 >= sys-libs/zlib-1.2.5
15 >= sys-apps/sed-4"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 RC_CVS_REV=1.2
21
22 sminclude mbuild mtools
23
24 SRC_URI=(
25 ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${SRCFILE}
26 mirror://${PNAME}/${SRCFILE}
27 mirror://${PNAME}/sshd.rc-${RC_CVS_REV}
28 )
29
30 UP2DATE="updatecmd ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable | lasttarball gz"
31
32 src_compile()
33 {
34 cd ${SRCDIR}
35
36 mconfigure \
37 --sysconfdir=/etc/ssh \
38 --libexecdir=/usr/$(mlibdir)/misc \
39 --datadir=/usr/share/openssh \
40 --disable-suid-ssh \
41 --with-privsep-path=/var/empty \
42 --with-privsep-user=sshd \
43 --with-md5-passwords \
44 --with-ipv4-default \
45 --without-zlib-version-check \
46 || die
47
48 mmake || die
49 }
50
51 src_install()
52 {
53 cd ${SRCDIR}
54 mmake DESTDIR=${BINDIR} install-nokeys || die
55
56 # install our initscript
57 minstallrc sshd.rc-${RC_CVS_REV} sshd || die
58
59 # needed to run sshd
60 mkeepdir /var/empty || die
61 mchown root:sys /var/empty || die
62
63 minstalldocs CREDITS ChangeLog LICENCE OVERVIEW \
64 README* RFC.nroff TODO WARNING.RNG || die
65 }
66
67 preinstall()
68 {
69 # adding ssh user
70 ${MLIBDIR}/mgroupadd -o "-g 22" sshd
71 ${MLIBDIR}/museradd -o "-u 22 -g sshd -d /var/empty -s /bin/false" sshd
72 }
73
74 postinstall()
75 {
76 mstartservice sshd
77 }
78
79 postremove()
80 {
81 [[ ! -f /usr/sbin/sshd ]] && mstopservice sshd
82 }