wok-6.x view tazpkg-web/receipt @ rev 3992
Add: visualnqc
author | Matthew Sheets <rcx@zoominternet.net> |
---|---|
date | Sat Aug 29 22:37:07 2009 +0000 (2009-08-29) |
parents | c075da96e08a |
children | 48aebe803b83 |
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg-web"
4 VERSION="1.0"
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"
12 # Rules to gen a SliTaz package suitable for Tazpkg.
13 genpkg_rules()
14 {
15 mkdir -p \
16 $fs/usr/bin \
17 $fs/etc/slitaz \
18 $fs/var/lib/tazpkg-web
19 # Page generator and config file.
20 cp stuff/tazpkg-web $fs/usr/bin
21 cp stuff/tazpkg-web.conf $fs/etc/slitaz
22 # Var libs
23 for i in html style xml search.cgi
24 do
25 cp -a stuff/$i $fs/var/lib/tazpkg-web
26 done
27 chmod 755 $fs/usr/bin/*
28 chown -R root.root $fs
29 }
31 post_install()
32 {
33 # On Tank we have pkgs.slitaz.org virtual host in: /home/slitaz/www
34 if [ -d $1/home/slitaz/www/pkgs ]; then
35 # Overwrite existing files.
36 cp -a $1/var/lib/tazpkg-web/style/* $1/home/slitaz/www/pkgs
37 cp -a $1/var/lib/tazpkg-web/search.cgi $1/home/slitaz/www/pkgs
38 sed -i 's|/var/www/vhosts/pkgs|/home/slitaz/www/pkgs|' \
39 $1/etc/slitaz/tazpkg-web.conf
40 else
41 cat << _EOT_
43 To have a Tazpkg-web interface on your local system, you can add a vhost
44 to Lighttpd (or Apache) and the hostname to /etc/hosts. And you must also
45 copy files from: /var/lib/tazpkg-web. Example:
47 # mkdir -p /var/www/vhosts/pkgs && cd /var/lib/tazpkg-web
48 # cp -a search.cgi style/* /var/www/vhosts/pkgs
49 # tazpkg-web cooking
51 _EOT_
52 fi
53 }