wok annotate tazpanel/receipt @ rev 13701

Add get-xcas
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Dec 17 10:11:05 2012 +0100 (2012-12-17)
parents fcdf91959237
children c791e2ee2765
rev   line source
pankso@9632 1 # SliTaz package receipt.
pankso@9632 2
pankso@9632 3 PACKAGE="tazpanel"
al@12712 4 VERSION="1.5.7"
pankso@9632 5 CATEGORY="system-tools"
pankso@9632 6 SHORT_DESC="SliTaz administration and configuration panel."
pankso@9632 7 MAINTAINER="pankso@slitaz.org"
pankso@9632 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@9632 9 WEB_SITE="http://www.slitaz.org/"
Christian@12110 10 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz"
pascal@10343 11 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
pankso@9632 12
pankso@9632 13 DEPENDS="busybox"
pankso@9632 14 BUILD_DEPENDS=""
pankso@9632 15
pankso@9632 16 # Rules to configure and make the package.
pankso@9632 17 compile_rules()
pankso@9632 18 {
pankso@10844 19 cd $src && make &&
pankso@10845 20 make DESTDIR=$DESTDIR install
pankso@9632 21 }
pankso@9632 22
pankso@9632 23 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@9632 24 genpkg_rules()
pankso@9632 25 {
pankso@9632 26 mkdir -p $fs/etc/init.d
pankso@10842 27 cp -a $install/* $fs
pankso@9632 28 # Init script use tazpanel cmdline
pankso@9632 29 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
pankso@9632 30 }
pascal@11360 31
pascal@11360 32 # Pre and post install commands for Tazpkg.
pascal@11360 33 post_install()
pascal@11360 34 {
pascal@11360 35 grep -qs tazpanel $1/etc/hosts ||
pascal@11360 36 sed -i 's/^127.0.0.1.*/& tazpanel/' $1/etc/hosts
pascal@11360 37 }