wok-next rev 1313
Add apache
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Aug 27 18:36:44 2008 +0000 (2008-08-27) |
parents | 71ef79e50038 |
children | 32fa0b9984a6 |
files | apache-dev/receipt apache-doc/receipt apache/receipt apache/stuff/slitaz.layout |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/apache-dev/receipt Wed Aug 27 18:36:44 2008 +0000 1.3 @@ -0,0 +1,19 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="apache-dev" 1.7 +VERSION="2.2.9" 1.8 +CATEGORY="development" 1.9 +SHORT_DESC="HTTP server development files." 1.10 +MAINTAINER="pascal.bellard@slitaz.org" 1.11 +WEB_SITE="http://www.apache.org/" 1.12 +WANTED="apache" 1.13 + 1.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.15 +genpkg_rules() 1.16 +{ 1.17 + mkdir -p $fs/usr/share/apache $fs/usr/bin 1.18 + cp -a $_pkg/usr/include $fs/usr 1.19 + cp -a $_pkg/usr/bin/apxs $fs/usr/bin 1.20 + cp -a $_pkg/usr/share/apache/build $fs/usr/share/apache 1.21 +} 1.22 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 2.2 +++ b/apache-doc/receipt Wed Aug 27 18:36:44 2008 +0000 2.3 @@ -0,0 +1,17 @@ 2.4 +# SliTaz package receipt. 2.5 + 2.6 +PACKAGE="apache-doc" 2.7 +VERSION="2.2.9" 2.8 +CATEGORY="development" 2.9 +SHORT_DESC="HTTP server documentation files." 2.10 +MAINTAINER="pascal.bellard@slitaz.org" 2.11 +WEB_SITE="http://www.apache.org/" 2.12 +WANTED="apache" 2.13 + 2.14 +# Rules to gen a SliTaz package suitable for Tazpkg. 2.15 +genpkg_rules() 2.16 +{ 2.17 + mkdir -p $fs/usr/share 2.18 + cp -a $_pkg/usr/share/doc $fs/usr/share 2.19 +} 2.20 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 3.2 +++ b/apache/receipt Wed Aug 27 18:36:44 2008 +0000 3.3 @@ -0,0 +1,71 @@ 3.4 +# SliTaz package receipt. 3.5 + 3.6 +PACKAGE="apache" 3.7 +VERSION="2.2.9" 3.8 +CATEGORY="network" 3.9 +SHORT_DESC="Secure, efficient and extensible HTTP server." 3.10 +MAINTAINER="pascal.bellard@slitaz.org" 3.11 +SOURCE="httpd" 3.12 +TARBALL="$SOURCE-$VERSION.tar.bz2" 3.13 +WEB_SITE="http://www.apache.org/" 3.14 +WGET_URL="${WEB_SITE}dist/$SOURCE/$TARBALL" 3.15 +DEPENDS="apr-util apr" 3.16 +BUILD_DEPENDS="apr-util-dev apr-dev" 3.17 +CONFIG_FILES="/etc/apache /var/www" 3.18 + 3.19 +# Rules to configure and make the package. 3.20 +compile_rules() 3.21 +{ 3.22 + ln -s $SOURCE-$VERSION $PACKAGE-$VERSION 3.23 + cd $src 3.24 + grep -q Slitaz config.layout || \ 3.25 + cat ../stuff/slitaz.layout >> config.layout 3.26 + ./configure --mandir=/usr/share/man --enable-mods-shared=all \ 3.27 + --enable-layout=Slitaz $CONFIGURE_ARGS && \ 3.28 + make && make DESTDIR=$PWD/_pkg install 3.29 +} 3.30 + 3.31 +# Rules to gen a SliTaz package suitable for Tazpkg. 3.32 +genpkg_rules() 3.33 +{ 3.34 + mkdir -p $fs/usr/share/apache $fs/etc/init.d $fs/etc/apache/conf.d 3.35 + cp -a $_pkg/usr/share/apache/icons $fs/usr/share/apache 3.36 + cp -a $_pkg/usr/share/apache/error $fs/usr/share/apache 3.37 + cp -a $_pkg/usr/share/apache/modules $fs/usr/share/apache 3.38 + cp -a $_pkg/usr/bin $fs/usr 3.39 + rm -r $fs/usr/bin/apxs 3.40 + cp -a $_pkg/etc $fs 3.41 + cp -a $_pkg/var $fs 3.42 + ln -s /usr/bin/apachectl $fs/etc/init.d/apache 3.43 + sed -i -e 's|User daemon|User www|' -e 's|Group daemon|Group www|' \ 3.44 + -e 's|ServerAdmin you@example.com|ServerAdmin root@localhost|' \ 3.45 + $fs/etc/apache/httpd.conf 3.46 + echo "Include /etc/apache/conf.d" >> $fs/etc/apache/httpd.conf 3.47 + # Cook all packages based on apache 3.48 + for i in $(cd $WOK; ls -d apache-*) 3.49 + do 3.50 + tazwok genpkg $i 3.51 + done 3.52 +} 3.53 + 3.54 +# Pre and post install commands for Tazpkg. 3.55 +# We stop the server by default in case of upgarde. 3.56 +pre_install() 3.57 +{ 3.58 + echo "Processing pre-install commands..." 3.59 + [ -f /etc/init.d/$PACKAGE ] && /etc/init.d/$PACKAGE stop 3.60 +} 3.61 + 3.62 +post_install() 3.63 +{ 3.64 + echo "Processing post-install commands..." 3.65 + # Just in case. 3.66 + chown www.www $1/var/log/$PACKAGE 3.67 + /etc/init.d/$PACKAGE start 3.68 +} 3.69 + 3.70 +# Rules to clean extras dirs or files 3.71 +clean_wok() 3.72 +{ 3.73 + rm -rf $WOK/$PACKAGE/${PACKAGE}.${VERSION} 3.74 +}
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/apache/stuff/slitaz.layout Wed Aug 27 18:36:44 2008 +0000 4.3 @@ -0,0 +1,22 @@ 4.4 + 4.5 +<Layout Slitaz> 4.6 + prefix: /usr 4.7 + exec_prefix: /usr 4.8 + bindir: /usr/bin 4.9 + sbindir: /usr/bin 4.10 + libdir: /usr/lib 4.11 + libexecdir: /usr/share/apache/modules 4.12 + sysconfdir: /etc/apache 4.13 + datadir: /usr/share/apache 4.14 + installbuilddir: /usr/share/apache/build 4.15 + errordir: /usr/share/apache/error 4.16 + iconsdir: /usr/share/apache/icons 4.17 + htdocsdir: /var/www 4.18 + manualdir: /usr/share/doc/apache 4.19 + cgidir: /var/www/cgi-bin 4.20 + includedir: /usr/include 4.21 + localstatedir: /var/lib/apache 4.22 + runtimedir: /var/run/apache 4.23 + logfiledir: /var/log/apache 4.24 + proxycachedir: /var/lib/apache/proxy 4.25 +</Layout>