wok annotate fluxbox/receipt @ rev 12197
apache: add default value for certificate
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Mar 26 16:24:33 2012 +0200 (2012-03-26) |
parents | d1768332cee0 |
children | 96d7eeb131d6 |
rev | line source |
---|---|
mallory@2868 | 1 # SliTaz package receipt. |
mallory@2868 | 2 |
mallory@2868 | 3 PACKAGE="fluxbox" |
pankso@11886 | 4 VERSION="1.3.2" |
mallory@2868 | 5 CATEGORY="x-window" |
pankso@11886 | 6 SHORT_DESC="Fluxbox is a light and fast window manager for X." |
pankso@11886 | 7 MAINTAINER="pankso@slitaz.org" |
mallory@2868 | 8 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
mallory@2868 | 9 WEB_SITE="http://www.fluxbox.org/" |
mallory@2868 | 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@3402 | 11 TAGS="wm window-manager" |
mallory@2868 | 12 |
pankso@11886 | 13 DEPENDS="xorg fontconfig imlib2" |
pankso@11886 | 14 BUILD_DEPENDS="xorg fontconfig imlib2" |
pankso@11886 | 15 |
mallory@2868 | 16 # Rules to configure and make the package. |
mallory@2868 | 17 compile_rules() |
mallory@2868 | 18 { |
mallory@2868 | 19 cd $src |
pankso@11886 | 20 #patch -p1 < $stuff/fluxbox-gcc-4.3.3.diff |
pankso@11886 | 21 ./configure $CONFIGURE_ARGS && |
pankso@11886 | 22 make && make install |
mallory@2868 | 23 } |
mallory@2868 | 24 |
mallory@2868 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2868 | 26 genpkg_rules() |
mallory@2868 | 27 { |
pankso@11886 | 28 mkdir -p $fs/usr/share/fluxbox/styles |
pankso@11886 | 29 cp -a $install/usr/bin $fs/usr |
pankso@11886 | 30 for f in apps keys overlay windowmenu init menu |
pankso@11886 | 31 do |
pankso@11886 | 32 cp -a $install/usr/share/fluxbox/$f $fs/usr/share/fluxbox |
pankso@11886 | 33 done |
pankso@11886 | 34 for s in Shade Flux bloe Results |
pankso@11886 | 35 do |
pankso@11886 | 36 cp -a $install/usr/share/fluxbox/styles/$s \ |
pankso@11886 | 37 $fs/usr/share/fluxbox/styles |
pankso@11886 | 38 done |
mallory@2868 | 39 } |
mallory@2868 | 40 |
mallory@3113 | 41 post_install() |
mallory@3113 | 42 { |
mallory@3113 | 43 res=`cat $1/etc/slim.conf | grep ^session | sed s/"sessions. *"//` |
mallory@3113 | 44 # Adding WM to SLIM available sessions. |
mallory@3113 | 45 if ! echo "$res" | grep -q $PACKAGE; then |
mallory@3113 | 46 echo -n "Adding $PACKAGE to /etc/slim.conf..." |
mallory@3113 | 47 sed -i "s/^sessions.*/sessions ${res},$PACKAGE/" /etc/slim.conf |
mallory@3113 | 48 status |
mallory@3113 | 49 fi |
mallory@3113 | 50 } |
mallory@3113 | 51 |
mallory@3113 | 52 post_remove() |
mallory@3113 | 53 { |
mallory@3113 | 54 # Remove WM from SLIM available sessions. |
mallory@3113 | 55 if grep -q $PACKAGE $1/etc/slim.conf; then |
mallory@3113 | 56 sed -i s/,$PACKAGE// $1/etc/slim.conf |
mallory@3113 | 57 fi |
mallory@3113 | 58 } |
mallory@3113 | 59 |