# HG changeset patch # User Claudinei Pereira # Date 1270692352 0 # Node ID c7d0836e6f82a14e95e2181a2bd46d92f88be24b # Parent 154ce5a120de41c63fae03f640fe8e5c12a60b7d Add: libnet* diff -r 154ce5a120de -r c7d0836e6f82 libnet-dev/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libnet-dev/receipt Thu Apr 08 02:05:52 2010 +0000 @@ -0,0 +1,22 @@ +# SliTaz package receipt. + +PACKAGE="libnet-dev" +VERSION="1.1.4" +CATEGORY="development" +SHORT_DESC="Libnet devel files" +MAINTAINER="claudinei@slitaz.org" +DEPENDS="" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://github.com/sam-github/libnet" +WANTED="libnet" + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/bin $fs/usr/lib + cp $_pkg/usr/bin/libnet-config $fs/usr/bin + chmod +x $fs/usr/bin/libnet-config + cp -a $_pkg/usr/include $fs/usr + cp -a $_pkg/usr/lib/*.*a $fs/usr/lib +} + diff -r 154ce5a120de -r c7d0836e6f82 libnet/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/libnet/receipt Thu Apr 08 02:05:52 2010 +0000 @@ -0,0 +1,34 @@ +# SliTaz package receipt. + +PACKAGE="libnet" +SOURCE="libnet-dev" +VERSION="1.1.4" +CATEGORY="development" +SHORT_DESC="Libnet provides a portable framework for low-level network packet construction." +MAINTAINER="claudinei@slitaz.org" +DEPENDS="" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://github.com/sam-github/libnet" +WGET_URL="$SF_MIRROR/$SOURCE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + src="$PACKAGE-$VERSION" + cd $src + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + _pkg="$WOK/$PACKAGE/$PACKAGE-$VERSION/_pkg" + mkdir -p $fs/usr/lib + cp -a $_pkg/usr/lib/*.so* $fs/usr/lib +} +