wok-stable view tazpanel/receipt @ rev 12465

Up e2fsprogs (1.44.2)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 04 18:42:23 2019 +0100 (2019-03-04)
parents ccc42dc5096b
children
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpanel"
4 VERSION="1.5.7"
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 # installer.cgi user validation fix
21 patch -p0 < $stuff/installer.patch || return 1
22 make &&
23 make DESTDIR=$DESTDIR install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/etc/init.d
30 cp -a $install/* $fs
31 # Init script use tazpanel cmdline
32 cd $fs/etc/init.d && ln -s ../../usr/bin/tazpanel .
33 }
35 # Pre and post install commands for Tazpkg.
36 post_install()
37 {
38 grep -qs tazpanel $1/etc/hosts ||
39 sed -i 's/^127.0.0.1.*/& tazpanel/' $1/etc/hosts
40 }