wok view tazpkg/receipt @ rev 4649

Add openvas-scanner
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Dec 27 11:39:42 2009 +0100 (2009-12-27)
parents f363091678b1
children 9849eb128cfc
line source
1 # SliTaz package receipt.
3 PACKAGE="tazpkg"
4 VERSION="3.1"
5 CATEGORY="base-system"
6 SHORT_DESC="SliTaz packages manager."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="busybox"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.slitaz.org/"
11 WGET_URL="http://mirror.slitaz.org/sources/tazpkg/$TARBALL"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 #
15 # Tazpkg is SliTaz packages manager. On an other GNU/Linux install
16 # can be do with : make install from the sources directory.
17 #
18 genpkg_rules()
19 {
20 mkdir -p $fs/usr/bin $fs/usr/lib/slitaz $fs/usr/share/doc/$PACKAGE
21 cp -a $src/tazpkg $fs/usr/bin
22 cp -a $src/tazpkgbox $fs/usr/bin
23 cp -a $src/lib/* $fs/usr/lib/slitaz
24 cp -a $src/applications $fs/usr/share
25 cp -a $src/pixmaps $fs/usr/share
26 cp -a $src/mime $fs/usr/share
27 cp -a $src/doc/$PACKAGE.html $fs/usr/share/doc/$PACKAGE
28 chmod 755 $fs/usr/bin/$PACKAGE
29 chown -R root.root $fs
30 # Default icon for mimetype (freedesktop standard compliant file
31 # manager will diplay a tazpkg icon for SliTaz packages).
32 mkdir -p $fs/usr/share/icons/hicolor/32x32/mimetypes
33 cd $fs/usr/share/icons/hicolor/32x32/mimetypes
34 ln -s /usr/share/pixmaps/tazpkg.png package-x-tazpkg.png
35 ln -s /usr/share/pixmaps/tazpkg.png gnome-mime-application-x-tazpkg.png
36 }
38 post_install()
39 {
40 # update mime-cache
41 echo "Updating mime-types database..."
42 update-mime-database $1/usr/share/mime
43 }