Magellan Linux

Contents of /trunk/core/openssh/openssh-5.1p1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 206 - (show annotations) (download)
Wed Oct 15 09:26:54 2008 UTC (15 years, 7 months ago) by niro
File size: 1580 byte(s)
-ver bump to 5.1p1-r1
1 # $Header: /magellan-cvs/smage/openssh/openssh-5.0p1-r1.smage2,v 1.1 2008/04/04 16:42:30 niro Exp $
2
3 PNAME="openssh"
4 PVER="5.1p1"
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-0.9.8i
14 >= sys-libs/zlib-1.2.1
15 >= sys-apps/sed-4"
16
17 SRCFILE="${PNAME}-${PVER}.tar.gz"
18 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
19
20 sminclude mbuild mtools
21
22 SRC_URI=(
23 ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/${SRCFILE}
24 mirror://${PNAME}/${SRCFILE}
25 mirror://${PNAME}/sshd.rc
26 )
27
28 UP2DATE="updatecmd ftp://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable | lasttarball gz"
29
30 src_compile()
31 {
32 cd ${SRCDIR}
33
34 mconfigure \
35 --sysconfdir=/etc/ssh \
36 --libexecdir=/usr/$(mlibdir)/misc \
37 --datadir=/usr/share/openssh \
38 --disable-suid-ssh \
39 --with-privsep-path=/var/empty \
40 --with-privsep-user=sshd \
41 --with-md5-passwords \
42 --with-ipv4-default \
43 --without-zlib-version-check \
44 || die
45
46 mmake || die
47 }
48
49 src_install()
50 {
51 cd ${SRCDIR}
52 mmake DESTDIR=${BINDIR} install-nokeys || die
53
54 # install our initscript
55 minstallrc sshd.rc sshd || die
56
57 # needed to run sshd
58 mkeepdir /var/empty || die
59 mchown root:sys /var/empty || die
60
61 minstalldocs CREDITS ChangeLog LICENCE OVERVIEW \
62 README* RFC.nroff TODO WARNING.RNG || die
63 }
64
65 preinstall()
66 {
67 # adding ssh user
68 ${MLIBDIR}/mgroupadd -o "-g 22" sshd
69 ${MLIBDIR}/museradd -o "-u 22 -g sshd -d /var/empty -s /bin/false" sshd
70 }
71
72 postinstall()
73 {
74 mstartservice sshd
75 }
76
77 postremove()
78 {
79 [[ ! -f /usr/sbin/sshd ]] && mstopservice sshd
80 }

Properties

Name Value
svn:keywords Id