wok-6.x view tazpanel/receipt @ rev 18240

syslinux/taziso: do not use /media/cdrom
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jul 28 08:46:03 2015 +0200 (2015-07-28)
parents e12b8d32e95b
children c50866b1c9cb
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpanel"
4 VERSION="510"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz administration and configuration panel."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz"
12 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
13 HOST_ARCH="i486 arm"
15 SUGGESTED="tazinst-gui tazinst"
16 DEPENDS="busybox gettext-base"
17 BUILD_DEPENDS="gettext"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 make && make DESTDIR=$DESTDIR VERSION=$VERSION install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/etc/init.d
29 cp -a $install/* $fs
30 # Init script use tazpanel cmdline
31 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
33 cd $fs/var/www/tazpanel; rm test.cgi locale.cgi powersaving.cgi
34 }
36 # Pre and post install commands for Tazpkg.
37 post_install()
38 {
39 grep -qs tazpanel $1/etc/hosts ||
40 sed -i 's/^127.0.0.1.*/& tazpanel/' $1/etc/hosts
42 # Do we need TazPanel restart? It freezes when updating using web interface.
43 #[ -z "$1" ] && tazpanel restart
44 }