wok-6.x annotate airoscript-ng/receipt @ rev 15272

ntop: remove a wrong error trigger
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Sep 25 13:23:35 2013 +0000 (2013-09-25)
parents 01a07ddd852f
children 45507bfb2b0d
rev   line source
slaxemulator@7524 1 # SliTaz package receipt.
slaxemulator@7524 2
slaxemulator@7524 3 PACKAGE="airoscript-ng"
slaxemulator@13168 4 VERSION="1.2rc3"
slaxemulator@7524 5 CATEGORY="network"
slaxemulator@7524 6 SHORT_DESC="Airoscript ng"
slaxemulator@7524 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15201 8 LICENSE="GPL2"
slaxemulator@13168 9 TARBALL="$PACKAGE-${VERSION%rc3}-3.tar.gz"
slaxemulator@7524 10 WEB_SITE="http://code.google.com/p/airoscript/"
slaxemulator@7524 11 WGET_URL="http://airoscript.googlecode.com/files/$TARBALL"
slaxemulator@7524 12
pascal@15201 13 DEPENDS="bash"
pascal@15201 14
slaxemulator@7524 15 # Rules to configure and make the package.
slaxemulator@7524 16 compile_rules()
slaxemulator@7524 17 {
slaxemulator@7524 18 cd $src
slaxemulator@13168 19 # Remove broken install parts
slaxemulator@13168 20 sed -i '/install-docs \\/ d' Makefile-Linux
slaxemulator@13168 21 sed -i '/install-locale \\/ d' Makefile-Linux
slaxemulator@13168 22 sed -i '/install-desktop \\/ d' Makefile-Linux
slaxemulator@13168 23 make -j1 DESTDIR=$DESTDIR \
slaxemulator@13168 24 prefix=usr \
slaxemulator@13168 25 picdir=$DESTDIR/usr/share/pixmaps/ \
slaxemulator@13168 26 appdir=$DESTDIR/usr/share/applications/ \
slaxemulator@13168 27 etcdir=$DESTDIR/etc/$PACKAGE install
slaxemulator@13168 28 # Patch config - replace "usr/local" by "usr"
slaxemulator@13168 29 sed -i 's/usr\/local/usr/g' $DESTDIR/etc/$PACKAGE/airoscript-ng_advanced.conf
slaxemulator@13168 30
slaxemulator@13168 31 # Patch executable to find config files
slaxemulator@13168 32 sed -i 's/etc\//etc\/airoscript-ng\//g' $DESTDIR/usr/sbin/$PACKAGE
slaxemulator@7524 33 }
slaxemulator@7524 34
slaxemulator@7524 35 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7524 36 genpkg_rules()
slaxemulator@7524 37 {
slaxemulator@7524 38 mkdir -p $fs/usr/share
pascal@15201 39 cp -a $install/usr/sbin $fs/usr
pascal@15201 40 cp -a $install/usr/share/airoscript-ng $fs/usr/share
pascal@15201 41 cp -a $install/etc $fs
slaxemulator@7524 42 }
slaxemulator@7524 43