# HG changeset patch # User Aleksej Bobylev # Date 1361294073 0 # Node ID 427b650440cd82b9e25d3cb97cc112e47b5c09b3 # Parent ce42c34a283265b4b872b5ad261088fd5b6226dd catfish: fix build and force it to work with SliTaz diff -r ce42c34a2832 -r 427b650440cd bozohttpd/description.txt --- a/bozohttpd/description.txt Tue Feb 19 12:45:48 2013 +0100 +++ b/bozohttpd/description.txt Tue Feb 19 17:14:33 2013 +0000 @@ -1,3 +1,7 @@ -bozohttpd is a small and secure http version 1.1 server. its main feature is the lack of features, reducing the code size and improving verifiability. +bozohttpd is a small and secure HTTP server. Its main feature is the lack +of features, reducing code size and improving verifiability. It has +no configuration file by design. -it supports CGI/1.1, HTTP/1.1, HTTP/1.0, HTTP/0.9, ~user translations, virtual hosting support, as well as multiple IP-based servers on a single machine. it is capable of serving pages via the IPv6 protocol. it has ssl support. it has no configuration file by design. \ No newline at end of file +It supports CGI/1.1, HTTP/1.1, HTTP/1.0, HTTP/0.9, ~user translations, virtual +hosting support, as well as multiple IP-based servers on a single machine, +and is able to serve pages via the IPv6 protocol. diff -r ce42c34a2832 -r 427b650440cd catfish/description.txt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/catfish/description.txt Tue Feb 19 17:14:33 2013 +0000 @@ -0,0 +1,8 @@ +Catfish is a handy file searching tool for linux and unix. Basically it is +a frontend for different search engines (daemons) which provides a unified +interface. The interface is intentionally lightweight and simple, using only +GTK+2 and Python. You can configure it to your needs by using several command +line options. + +You are encouraged to run 'catfish --help' to check out the various command +line options. diff -r ce42c34a2832 -r 427b650440cd catfish/receipt --- a/catfish/receipt Tue Feb 19 12:45:48 2013 +0100 +++ b/catfish/receipt Tue Feb 19 17:14:33 2013 +0000 @@ -3,31 +3,56 @@ PACKAGE="catfish" VERSION="0.3.2" CATEGORY="utilities" -SHORT_DESC="Catfish is a versatile file searching tool." +SHORT_DESC="Catfish is a versatile file searching tool" MAINTAINER="devl547@gmail.com" TARBALL="$PACKAGE-$VERSION.tar.gz" -WEB_SITE="http://www.twotoasts.de/" -WGET_URL="http://www.twotoasts.de/media/catfish/$TARBALL" -BUILD_DEPENDS="pygtk-dev libglade-dev" -DEPENDS="pygtk libglade python-xdg" +WEB_SITE="http://twotoasts.de/index.php/catfish/" +WGET_URL="http://twotoasts.de/media/$PACKAGE/$TARBALL" + +DEPENDS="pygtk python-xdg findutils" +BUILD_DEPENDS="pygtk-dev libglade-dev python-xdg" # Rules to configure and make the package. compile_rules() { - cd $src ./configure --prefix=/usr && make && - make DESTDIR=$PWD/_pkg install + make DESTDIR=$install install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr/share/catfish - mkdir $fs/usr/share - - cp -a $_pkg/usr/bin $fs/usr - cp -a $_pkg/usr/share/catfish $fs/usr/share - cp -a $_pkg/usr/share/icons $fs/usr/share - cp -a $_pkg/usr/share/applications $fs/usr/share + mkdir -p $fs/usr/bin $fs/usr/share/catfish + cat > $fs/usr/bin/catfish << EOT +#!/bin/sh +. /etc/slitaz/applications.conf +# use default FILE_MANAGER to open both folders and files + +cd /usr/share/catfish +python catfish.py --large-icons --thumbnails --path=\$HOME \ +--fileman=\$FILE_MANAGER --wrapper=\$FILE_MANAGER "\$@" +EOT + chmod +x $fs/usr/bin/catfish + + cd $fs/usr/share/catfish + + cp -a $install/usr/share/catfish/catfish.glade . + # minify glade file + gzip ./catfish.glade; mv ./catfish.glade.gz catfish.glade + + # can't copy *.pyc because 'cook' removes it from package! + #cp -a $install/usr/share/catfish/catfish.pyc . + cp -a $src/catfish.py . + + # seems catfish --wrapper not works at all, fix it (attention spaces!) + sed -i "189 a\ +\ self.open_wrapper = self.options.open_wrapper" \ + $fs/usr/share/catfish/catfish.py + + cp -a $install/usr/share/icons $fs/usr/share + ln -s ../icons/hicolor/scalable/apps/catfish.svg catfish.svg + + cp -a $install/usr/share/locale $fs/usr/share + ln -s ../locale locale }