Project

General

Profile

DevelGit » History » Revision 14

Revision 13 (stbuehler, 2016-04-08 16:24) → Revision 14/20 (gstrauss, 2021-06-18 07:02)

h3. git source browser h1. Git 

 View source code h2. Browser 

 You can check the "Repository"://git.lighttpd.net/lighttpd/lighttpd1.4.git in the "lighttpd 1.4 git repository"://git.lighttpd.net/lighttpd/lighttpd1.4.git 


 h3. git source checkout your browser for logs/sources. 

 read-only: @$ h2. Checkout 

 <pre> 
 $ git clone https://git.lighttpd.net/lighttpd/lighttpd1.4.git@ https://git.lighttpd.net/lighttpd/lighttpd1.4.git 
 developer: @$ </pre> 

 If you're developer the checkout command is: 
 <pre> 
 $ git clone git+ssh://git@lighttpd.net/lighttpd/lighttpd1.4.git@ 


 h3. build prerequisites git+ssh://git@lighttpd.net/lighttpd/lighttpd1.4.git 
 </pre> 

 lighttpd supports multiple build frameworks: automake, cmake, meson, and scons. h2. Building 

 Ensure you have installed the latest development tools and packages available, e.g. available for automake: the following packages: 
 * autoconf 
 * automake 
 * libtool 
 * m4 

 A minimal lighttpd build typically leverages PCRE and pkg-config  
 * pcre-devel / libpcre3-dev 
 * pkg-config 

 Optional lighttpd modules may require one or more additional libraries, e.g. choices among TLS modules 
 * openssl 
 * gnutls 
 * mbedtls 
 * nss 
 * wolfssl 

 Further details Then, you need to execute @./autogen.sh@ before you can be found in "lighttpd INSTALL"://git.lighttpd.net/lighttpd/lighttpd1.4/src/branch/master/INSTALL    *(Please read)* 


 h3. build commands (examples) use @./configure@ and friends. 

 automake 
 <pre> 
 git clone https://git.lighttpd.net/lighttpd/lighttpd1.4.git 
 cd lighttpd1.4 
 ./autogen.sh 
 ./configure -C --prefix=/usr/local 
 make -j 4 && make check && sudo make install 
 </pre> 
 cmake 
 <pre> 
 git clone https://git.lighttpd.net/lighttpd/lighttpd1.4.git 
 cd lighttpd1.4 
 cmake -DCMAKE_INSTALL_PREFIX=/usr/local -Wno-dev . 
 make -j 4 
 make test 
 sudo make install 
 </pre> 
 meson 
 <pre> 
 git clone https://git.lighttpd.net/lighttpd/lighttpd1.4.git 
 cd lighttpd1.4 
 meson setup --prefix /usr/local build 
 cd build 
 meson compile 
 meson test 
 sudo meson install 
 </pre> 
 and scons should be working too. 
 <pre> 
 git clone https://git.lighttpd.net/lighttpd/lighttpd1.4.git 
 cd lighttpd1.4 
 scons -j 4 build_static=1 build_dynamic=0 prefix=/usr/local 
 sudo scons -j 4 build_static=1 build_dynamic=0 prefix=/usr/local install 
 </pre> 
 Examples commands for more fully-featured builds might reference "lighttpd scripts/ci-build.sh"://git.lighttpd.net/lighttpd/lighttpd1.4/src/branch/master/scripts/ci-build.sh 


 h3. distro packaging (external examples) 

 Debian: "debian/control":https://salsa.debian.org/debian/lighttpd/-/blob/master/debian/control 
 Fedora: "lighttpd.spec":https://src.fedoraproject.org/rpms/lighttpd/blob/rawhide/f/lighttpd.spec 
 OpenWRT: "net/lighttpd/Makefile":https://github.com/openwrt/packages/blob/master/net/lighttpd/Makefile