Magellan Linux

Annotation of /trunk/core/openssh/openssh-5.2p1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1119 - (hide annotations) (download)
Wed Apr 22 19:43:00 2009 UTC (15 years, 2 months ago) by niro
File size: 1624 byte(s)
auto added: ver bump to 5.2p1-r1
1 niro 1119 # $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.2p1"
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.8k
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     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     }

Properties

Name Value
svn:keywords Id