wok rev 17227

Add snimpy
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Oct 16 13:21:39 2014 +0200 (2014-10-16)
parents 95d1f6282a65
children 0a8635d4a41c
files memtest/receipt snimpy/receipt
line diff
     1.1 --- a/memtest/receipt	Wed Oct 15 16:37:48 2014 +0200
     1.2 +++ b/memtest/receipt	Thu Oct 16 13:21:39 2014 +0200
     1.3 @@ -18,7 +18,7 @@
     1.4  {
     1.5  	cd $src
     1.6  	sed -i '/scp memtest.bin/d' Makefile
     1.7 -	for i in array-size io O0; do
     1.8 +	for i in array-size io ; do
     1.9  		patch -p1 < $stuff/$SOURCE-$VERSION-$i.patch
    1.10  	done
    1.11  	make
    1.12 @@ -30,11 +30,13 @@
    1.13  	sed -i "s/VERSION/$VERSION/" pack
    1.14  	./pack --build bootloader.bin unpack.bin
    1.15  	./pack memtest.bin memtest.packed
    1.16 +	mv memtest.bin memtest.bin.console
    1.17  	sed -i  -e 's/SERIAL_CONSOLE_DEFAULT 0/SERIAL_CONSOLE_DEFAULT 1/' \
    1.18  		-e 's/SERIAL_BAUD_RATE 9600/SERIAL_BAUD_RATE 115200/' config.h
    1.19  	make clean
    1.20  	make
    1.21  	./pack memtest.bin memtest.packed-115200
    1.22 +	mv memtest.bin memtest.bin.serial
    1.23  } 
    1.24  
    1.25  
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/snimpy/receipt	Thu Oct 16 13:21:39 2014 +0200
     2.3 @@ -0,0 +1,29 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="snimpy"
     2.7 +VERSION="0.8.3"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="Interactive SNMP tool with Python."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE="ISC"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="http://snimpy.readthedocs.org/"
    2.14 +WGET_URL="https://github.com/vincentbernat/snimpy/archive/$VERSION.tar.gz"
    2.15 +
    2.16 +DEPENDS="python"
    2.17 +BUILD_DEPENDS="wget python setuptools libffi-dev glib"
    2.18 +
    2.19 +# Rules to configure and make the package.
    2.20 +compile_rules()
    2.21 +{
    2.22 +	python setup.py build &&
    2.23 +	python setup.py install --root=$DESTDIR
    2.24 +}
    2.25 +
    2.26 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.27 +genpkg_rules()
    2.28 +{
    2.29 +	mkdir -p $fs/usr
    2.30 +	cp -a $install/usr/bin $fs/usr
    2.31 +	cp -a $install/usr/lib $fs/usr
    2.32 +}