Magellan Linux

Contents of /smage/trunk/extras/lighttpd/lighttpd-1.4.28-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1060 - (show annotations) (download)
Mon Dec 27 15:16:53 2010 UTC (13 years, 4 months ago) by niro
File size: 1269 byte(s)
auto added: ver bump to 1.4.28-r1
1 # $Id$
2
3 PNAME="lighttpd"
4 PVER="1.4.28"
5 PBUILD="r1"
6
7 PCATEGORIE="net-www"
8 STATE="unstable"
9
10 DESCRIPTION="The Apache HTTP web server."
11 HOMEPAGE="http://www.lighttpd.net/"
12
13 DEPEND=">= sys-libs/zlib-1.2"
14
15 SRCFILE="${PNAME}-${PVER}.tar.gz"
16 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
17
18 sminclude mtools
19
20 SRC_URI=(
21 http://download.lighttpd.net/${PNAME}/releases-${PVER%.*}.x/${SRCFILE}
22 mirror://${PNAME}/${SRCFILE}
23 )
24
25 UP2DATE="updatecmd http://www.lighttpd.net/download/ | firsttarball gz"
26
27 src_prepare()
28 {
29 munpack ${SRCFILE} || die
30 }
31
32 src_compile()
33 {
34 cd ${SRCDIR}
35
36 mconfigure \
37 --libdir=/usr/$(mlibdir)/${PNAME} \
38 --enable-lfs \
39 --disable-ipv6 \
40 --without-bzip2 \
41 --without-fam \
42 --without-gdbm \
43 --without-ldap \
44 --without-libev \
45 --without-lua \
46 --without-memcache \
47 --without-mysql \
48 --without-pcre \
49 --without-openssl \
50 --without-webdav-props \
51 --without-webdav-locks \
52 --without-attr \
53 || die
54
55 mmake || die
56 }
57
58 src_install()
59 {
60 cd ${SRCDIR}
61 mmake DESTDIR=${BINDIR} install || die
62 }
63
64 preinstall()
65 {
66 # adding apache user
67 ${MLIBDIR}/mgroupadd -o -r lighttpd
68 ${MLIBDIR}/museradd -o "-r -g lighttpd -d /var/www/localhost/htdocs -s /bin/false" lighttpd
69 }
70
71 postinstall()
72 {
73 mstartservice lighttpd
74 }
75
76 postremove()
77 {
78 mstopservice lighttpd
79 }