/
Buildfile
41 lines (33 loc) · 1.05 KB
/
Buildfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Description: Secure, fast, compliant and very flexible web server
# URL: http://www.lighttpd.net
# License: BSD
name=lighttpd
version=1.4.34
release=1
source=(http://download.$name.net/$name/releases-1.4.x/$name-$version.tar.bz2 \
$name.conf
$name.service
root_user.patch)
depends=(libpcre openssl bzip2)
build() {
cd $name-$version
patch -p1 < $SRC/root_user.patch
./configure --build=$BUILD \
--host=$HOST \
--prefix=/usr \
--libdir=/usr/lib/$name \
--with-openssl \
--with-pcre
make -j $JOBS PCRE_LIB='-lpcre'
make DESTDIR=$PKG install
install -D -m 644 $SRC/$name.conf $PKG/etc/$name/$name.conf
install -d $PKG/var/www/{htdocs,logs}
install -d $PKG/var/run
install -d $PKG/etc/ssl/certs
install -D -m 644 $SRC/$name.service $PKG/etc/systemd/system/$name.service
touch $PKG/var/run/lighttpd.pid
touch $PKG/etc/ssl/certs/lighttpd.pem
chmod 0600 $PKG/etc/ssl/certs/lighttpd.pem
# Fix libtool files
fix_la_files $PKG
}