wok view tazpanel/receipt @ rev 25074

Add python-ipaddress
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Jun 13 19:39:39 2022 +0000 (23 months ago)
parents 7e911016a644
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"
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 make -j 1 &&
32 make DESTDIR=$DESTDIR VERSION=$VERSION install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/etc/init.d
39 cp -a $install/* $fs
41 # Init script use tazpanel cmdline
42 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
43 }
45 # Pre and post install commands for Tazpkg.
46 post_install()
47 {
48 rm -f "$1"/var/cache/tazpanel/* 2> /dev/null
49 grep -qs tazpanel "$1"/etc/hosts ||
50 sed -i 's/^127.0.0.1.*/& tazpanel/' "$1"/etc/hosts
52 # Do we need TazPanel restart? It freezes when updating using web interface.
53 #[ -z "$1" ] && tazpanel restart
54 }