wok-current view tazpanel/receipt @ rev 25707

Fix miss file need for grub2-efi install (kernel.img, modinfo.sh)
author Stanislas Leduc <shann@slitaz.org>
date Thu May 30 20:14:23 2024 +0000 (3 months ago)
parents 1c472d55ff93
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpanel"
4 VERSION="638"
5 CATEGORY="system-tools"
6 SHORT_DESC="SliTaz administration and configuration panel."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="BSD"
9 WEB_SITE="http://www.slitaz.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="http://hg.slitaz.org/tazpanel/archive/$VERSION.tar.gz"
13 CONFIG_FILES="/etc/slitaz/tazpanel.conf /etc/slitaz/httpd.conf"
15 SUGGESTED="tazinst-gui tazinst"
16 DEPENDS="busybox gettext-base libjpeg sundown tazweb-legacy"
17 BUILD_DEPENDS="gettext jsmin tidy-html5"
18 SIBLINGS="tazpanel-extra"
19 HOST_ARCH="i486 arm"
21 current_version()
22 {
23 wget -O - http://hg.slitaz.org/$PACKAGE/ 2>/dev/null | \
24 sed '/^Changeset/!d;s|.*">|http://hg.slitaz.org/'$PACKAGE'/rev/|;s|<.*||' | \
25 xargs wget -O - 2>/dev/null | sed '/rev /!d;s|.*rev ||;s| .*||'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # Patch to use tazweb-legacy instead tazweb with webkitgtk
32 patch -p1 < $stuff/tazweb_libwebkit.patch
34 make -j 1 &&
35 make DESTDIR=$DESTDIR VERSION=$VERSION install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/etc/init.d
42 cp -a $install/* $fs
44 # Init script use tazpanel cmdline
45 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
46 }
48 # Pre and post install commands for Tazpkg.
49 post_install()
50 {
51 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null
52 grep -qs tazpanel "$1"/etc/hosts ||
53 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts
55 # Do we need TazPanel restart? It freezes when updating using web interface.
56 #[ -z "$1" ] && tazpanel restart
57 }