wok-stable view tazpkg-web/receipt @ rev 8448
Up: nss to 3.12.9.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Feb 06 15:17:04 2011 +0000 (2011-02-06) |
parents | 84af4a5de089 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg-web"
4 VERSION="2.1"
5 CATEGORY="network"
6 SHORT_DESC="SliTaz packages Web interfaces (http://pkgs.slitaz.org/)."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="lighttpd"
9 WEB_SITE="http://www.slitaz.org/"
10 CONFIGS="/etc/slitaz/tazpkg-web.conf"
11 TAGS="slitaz package-manager"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 genpkg_rules()
15 {
16 mkdir -p \
17 $fs/usr/bin \
18 $fs/etc/slitaz \
19 $fs/var/lib/tazpkg-web
20 # Page generator and config file.
21 cp stuff/tazpkg-web $fs/usr/bin
22 cp stuff/tazpkg-web.conf $fs/etc/slitaz
23 # Var libs
24 for i in html style xml search.cgi
25 do
26 cp -a stuff/$i $fs/var/lib/tazpkg-web
27 done
28 chmod 755 $fs/usr/bin/*
29 chown -R root.root $fs
30 }
32 post_install()
33 {
34 # On Tank we have pkgs.slitaz.org virtual host in: /home/slitaz/www
35 if [ -d $1/home/slitaz/www/pkgs ]; then
36 # Overwrite existing files.
37 cp -a $1/var/lib/tazpkg-web/style/* $1/home/slitaz/www/pkgs
38 cp -a $1/var/lib/tazpkg-web/search.cgi $1/home/slitaz/www/pkgs
39 sed -i 's|/var/www/vhosts/pkgs|/home/slitaz/www/pkgs|' \
40 $1/etc/slitaz/tazpkg-web.conf
41 else
42 cat << _EOT_
44 To have a Tazpkg-web interface on your local system, you can add a vhost
45 to Lighttpd (or Apache) and the hostname to /etc/hosts. And you must also
46 copy files from: /var/lib/tazpkg-web. Example:
48 # mkdir -p /var/www/vhosts/pkgs && cd /var/lib/tazpkg-web
49 # cp -a search.cgi style/* /var/www/vhosts/pkgs
50 # tazpkg-web cooking
52 _EOT_
53 fi
54 }