wok-next rev 11224

Add from wok-undigest: micro_proxy moosefs motion muninlite
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Nov 04 00:09:32 2011 +0100 (2011-11-04)
parents ea3283ffaffe
children 6d24611d6736
files micro_proxy/receipt moosefs/receipt motion/receipt muninlite/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/micro_proxy/receipt	Fri Nov 04 00:09:32 2011 +0100
     1.3 @@ -0,0 +1,25 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="micro_proxy"
     1.7 +VERSION="30oct2002"
     1.8 +CATEGORY="network"
     1.9 +SHORT_DESC="A small HTTP/HTTPS proxy."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +TARBALL="${PACKAGE}_$VERSION.tar.gz"
    1.12 +WEB_SITE="http://www.acme.com/software/micro_proxy/"
    1.13 +WGET_URL="${WEB_SITE}$TARBALL"
    1.14 +
    1.15 +# Rules to configure and make the package.
    1.16 +compile_rules()
    1.17 +{
    1.18 +	mv $PACKAGE $PACKAGE-$VERSION 2> /dev/null
    1.19 +	cd $src
    1.20 +	make
    1.21 +}
    1.22 +
    1.23 +# Rules to gen a SliTaz package suitable for Tazpkg.   
    1.24 +genpkg_rules()                                      
    1.25 +{
    1.26 +	mkdir -p $fs/usr/bin
    1.27 +	cp -a $src/$PACKAGE $fs/usr/bin
    1.28 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/moosefs/receipt	Fri Nov 04 00:09:32 2011 +0100
     2.3 @@ -0,0 +1,38 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="moosefs"
     2.7 +VERSION="1.6.20-2"
     2.8 +SOURCE="mfs"
     2.9 +CATEGORY="system-tools"
    2.10 +SHORT_DESC="Fault tolerant, network distributed file system."
    2.11 +MAINTAINER="pascal.bellard@slitaz.org"
    2.12 +TARBALL="$SOURCE-$VERSION.tar.gz"
    2.13 +WEB_SITE="http://www.moosefs.org/"
    2.14 +WGET_URL="${WEB_SITE}tl_files/mfscode/$TARBALL"
    2.15 +
    2.16 +DEPENDS="python fuse zlib"
    2.17 +BUILD_DEPENDS="python pkg-config fuse-dev zlib-dev"
    2.18 +
    2.19 +# Rules to configure and make the package.
    2.20 +compile_rules()
    2.21 +{
    2.22 +	cd $src
    2.23 +	sed -i 's/bash/sh/' mfsmount/mfssnapshot
    2.24 +	./configure --prefix=/usr --mandir=/usr/share/man \
    2.25 +		--sysconfdir=/etc \
    2.26 +		--localstatedir=/var \
    2.27 +	$CONFIGURE_ARGS &&
    2.28 +	make &&
    2.29 +	make DESTDIR=$DESTDIR install
    2.30 +}
    2.31 +
    2.32 +# Rules to gen a SliTaz package suitable for Tazpkg.   
    2.33 +genpkg_rules()                                      
    2.34 +{
    2.35 +	mkdir -p $fs/usr/share
    2.36 +	cp -a $_pkg/etc $fs
    2.37 +	cp -a $_pkg/var $fs
    2.38 +	cp -a $_pkg/usr/share/mfscgi $fs/usr/share
    2.39 +	cp -a $_pkg/usr/sbin $fs/usr
    2.40 +	cp -a $_pkg/usr/bin $fs/usr
    2.41 +}
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/motion/receipt	Fri Nov 04 00:09:32 2011 +0100
     3.3 @@ -0,0 +1,30 @@
     3.4 +# SliTaz package receipt.
     3.5 +
     3.6 +PACKAGE="motion"
     3.7 +VERSION="3.2.12"
     3.8 +CATEGORY="multimedia"
     3.9 +SHORT_DESC="Motion is a program that monitors the video signal from cameras."
    3.10 +MAINTAINER="pankso@slitaz.org"
    3.11 +DEPENDS="libpthread-stubs jpeg ffmpeg"
    3.12 +BUILD_DEPENDS="$DEPENDS jpeg-dev ffmpeg-dev"
    3.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    3.14 +WEB_SITE="http://www.lavrsen.dk/foswiki/bin/view/Motion"
    3.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    3.16 +
    3.17 +# Rules to configure and make the package.
    3.18 +compile_rules()
    3.19 +{
    3.20 +	cd $src
    3.21 +	./configure \
    3.22 +		--sysconfdir=/etc/motion &&
    3.23 +	make && make install
    3.24 +}
    3.25 +
    3.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    3.27 +genpkg_rules()
    3.28 +{
    3.29 +	mkdir -p $fs/usr
    3.30 +	cp -a $_pkg/etc $fs
    3.31 +	cp -a $_pkg/usr/bin $fs/usr
    3.32 +	chmod 0644 $fs/etc/motion/*
    3.33 +}
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/muninlite/receipt	Fri Nov 04 00:09:32 2011 +0100
     4.3 @@ -0,0 +1,37 @@
     4.4 +# SliTaz package receipt.
     4.5 +
     4.6 +PACKAGE="muninlite"
     4.7 +VERSION="1.0.4"
     4.8 +CATEGORY="network"
     4.9 +SHORT_DESC="Simple Munin node."
    4.10 +MAINTAINER="pascal.bellard@slitaz.org"
    4.11 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    4.12 +WEB_SITE="http://$PACKAGE.sourceforge.net/"
    4.13 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    4.14 +
    4.15 +BUILD_DEPENDS="perl"
    4.16 +
    4.17 +# Rules to configure and make the package.
    4.18 +compile_rules()
    4.19 +{
    4.20 +	cd $src
    4.21 +	make
    4.22 +}
    4.23 +
    4.24 +# Rules to gen a SliTaz package suitable for Tazpkg.   
    4.25 +genpkg_rules()                                      
    4.26 +{
    4.27 +	mkdir -p $fs/usr/bin
    4.28 +	cp -a $src/munin-node $fs/usr/bin
    4.29 +}
    4.30 +
    4.31 +# Pre and post install commands for Tazpkg.
    4.32 +post_install()
    4.33 +{
    4.34 +	grep -q 4949 $1/etc/services ||
    4.35 +	echo "munin		4949/tcp" >> $1/etc/services
    4.36 +	grep -q ^munin $1/etc/inetd.conf || cat >> $1/etc/inetd.conf <<EOT
    4.37 +munin   stream  tcp     nowait  root    /usr/bin/munin-node
    4.38 +EOT
    4.39 +	echo "/etc/inetd.conf is up to date"
    4.40 +}