# lighttpd port for VectorLinux # Writer: M0E-lnx name=lighttpd version=1.4.18 release=1 source=(http://www.lighttpd.net/download/$name-$version.tar.gz http://www.lighttpd.net/download/$name-1.4.x_mod_fastcgi_overrun.patch) build() { cd $name-$version/src patch -p0 -R <$CWD/$name-1.4.x_mod_fastcgi_overrun.patch --verbose cd .. #cd $name-$version ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/man \ --libdir=/usr/lib \ --localstatedir=/var \ --with-pcre \ --with-atr \ --with-openssl \ --with-included-gettext || exit 1 make || exit 1 make DESTDIR=$PKG install-strip || exit 1 mkdir -p $PKG/var/{cache,log}/$name chmod 0700 $PKG/var/cache/$name mkdir -p $PKG/var/www/hhtdocs-$name touch $PKG/var/log/$name/{access,error}.log mkdir -p $PKG/etc/logrotate.d install -D -m 0755 $CWD/rc.$name $PKG/etc/rc.d/rc.$name.new install -D -m 0644 $CWD/$name.conf $PKG/etc/$name/$name.conf.new install -D -m 0644 $CWD/$name.logrotate $PKG/etc/logrotate.d/$name.new }