wok view tazpanel/receipt @ rev 12221

Up: tazpanel (1.5.2)
author Christophe Lincoln <pankso@slitaz.org>
date Thu Apr 05 13:59:05 2012 +0200 (2012-04-05)
parents 1c8a76379d59
children af94a3f6e0f7
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpanel"
4 VERSION="1.5.2"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz administration and configuration panel."
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://www.slitaz.org/"
10 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz"
11 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
13 DEPENDS="busybox"
14 BUILD_DEPENDS=""
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src && make &&
20 make DESTDIR=$DESTDIR install
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/etc/init.d
27 cp -a $install/* $fs
28 # Init script use tazpanel cmdline
29 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
30 }
32 # Pre and post install commands for Tazpkg.
33 post_install()
34 {
35 grep -qs tazpanel $1/etc/hosts ||
36 sed -i 's/^127.0.0.1.*/& tazpanel/' $1/etc/hosts
37 }