Rép. : Re: Félicitations et quelques questions

[ Thread Index | Date Index | More lists.tuxfamily.org/slitaz Archives ]


merci pour les réponses! je vais tenter la méthode avec addfiles,,  
Voici quelques une de mes recettes:

# SliTaz package receipt.

PACKAGE="freeradius"
VERSION="1.1.7"
CATEGORY="security"
SHORT_DESC="radius server"
MAINTAINER="Alan DeKok..."
DEPENDS=""
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="www.freeradius.org"
WGET_URL="http://freeradius.portal-to-web.de/$TARBALL";

# Rules to configure and make the package.
compile_rules()
{
	cd $src
	./configure --prefix=/usr --infodir=/usr/share/info \
	--mandir=/usr/share/man $CONFIGURE_ARGS
	make
	make R=$PWD/_pkg install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
	mkdir -p $fs/usr

	cp -a $_pkg/usr $fs/
        rm -Rf $_pkg/usr/share/doc
        rm -Rf $_pkg/usr/share/man

        strip -s $fs/usr/bin/*
        strip -s $fs/usr/sbin/*
        strip -s $fs/usr/lib/*
}

# SliTaz package receipt.

PACKAGE="tcpdump"
VERSION="3.9.8"
CATEGORY="tools"
SHORT_DESC="wire sniffer"
MAINTAINER="sd"
DEPENDS="libpcap"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="www.tcpdump.org"
WGET_URL="http://www.tcpdump.org/release/$TARBALL";

# Rules to configure and make the package.
compile_rules()
{
        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()
{
        mkdir -p $fs/usr
        cp -a $_pkg/usr/sbin $fs/usr
        strip -s $fs/usr/sbin/*
}


# SliTaz package receipt.

PACKAGE="libpcap"
VERSION="0.9.8"
CATEGORY="tools"
SHORT_DESC="library for tcpdump"
MAINTAINER="sd"
DEPENDS=""
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="www.tcpdump.org"
WGET_URL="http://www.tcpdump.org/release/$TARBALL";

# Rules to configure and make the package.
compile_rules()
{
        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()
{
        mkdir -p $fs/usr
        cp -a $_pkg/usr/include $fs/usr
        cp -a $_pkg/usr/lib $fs/usr
        strip -s $fs/usr/lib/*
}


---
SliTaz GNU/Linux Mailing list.
Web site : http://www.slitaz.org/


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/