Contents of /smage/branches/alx-0_9_0/dropbear/dropbear-0.51-r3.smage2
Parent Directory | Revision Log
Revision 4 -
(show annotations)
(download)
Sun Jan 11 00:50:17 2009 UTC (15 years, 8 months ago) by niro
Original Path: smage/branches/branch_0.9.0/dropbear/dropbear-0.51-r3.smage2
File size: 1445 byte(s)
Sun Jan 11 00:50:17 2009 UTC (15 years, 8 months ago) by niro
Original Path: smage/branches/branch_0.9.0/dropbear/dropbear-0.51-r3.smage2
File size: 1445 byte(s)
"copied"
1 | # $Header: /alx-cvs/smage-eglibc/dropbear/dropbear-0.51-r3.smage2,v 1.1 2008/06/10 22:27:56 niro Exp $ |
2 | |
3 | PNAME="dropbear" |
4 | PVER="0.51" |
5 | PBUILD="r3" |
6 | |
7 | PCATEGORIE="net-misc" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="Dropbear SSH2 has a small memory footprint and is suitable for memory-constrained environments." |
11 | HOMEPAGE="http://matt.ucc.asn.au/dropbear/dropbear.html" |
12 | |
13 | DEPEND=">= sys-libs/zlib-1.2.1" |
14 | |
15 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
16 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
17 | |
18 | sminclude mbuild mtools alx |
19 | |
20 | # dropbear.rc cvs revision |
21 | CVS_REV=1.2 |
22 | |
23 | SRC_URI=( |
24 | http://matt.ucc.asn.au/${PNAME}/releases/${SRCFILE} |
25 | mirror://${PNAME}/${SRCFILE} |
26 | mirror://${PNAME}/dropbear.rc-${CVS_REV} |
27 | ) |
28 | |
29 | src_compile() |
30 | { |
31 | cd ${SRCDIR} |
32 | |
33 | mconfigure --enable-zlib --disable-pam || die |
34 | mmake || die |
35 | |
36 | # compile scp too |
37 | mmake scp || die |
38 | } |
39 | |
40 | src_install() |
41 | { |
42 | cd ${SRCDIR} |
43 | make DESTDIR=${BINDIR} install || die |
44 | |
45 | # install scp too |
46 | minstallexec scp || die |
47 | |
48 | # install our initscript |
49 | minstallrc dropbear.rc-${CVS_REV} dropbear || die |
50 | |
51 | # needed to run sshd |
52 | mkeepdir /etc/dropbear || die |
53 | mkeepdir /var/empty || die |
54 | mchown root:sys /var/empty || die |
55 | |
56 | minstalldocs CHANGES INSTALL LICENSE _MTN MULTI SMALL TODO || die |
57 | } |
58 | |
59 | preinstall() |
60 | { |
61 | # adding ssh user |
62 | ${MLIBDIR}/mgroupadd -o "-g 22" sshd |
63 | ${MLIBDIR}/museradd -o "-u 22 -g sshd -d /var/empty -s /bin/false" sshd |
64 | } |
65 | |
66 | postinstall() |
67 | { |
68 | mstartservice dropbear |
69 | } |
70 | |
71 | postremove() |
72 | { |
73 | [[ ! -f /usr/sbin/dropbear ]] && mstopservice dropbear |
74 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |