wok-current view dummynet/receipt @ rev 17238
dovecot, proftpd: CVE-2014-3566
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 18 14:31:43 2014 +0200 (2014-10-18) |
parents | 5946b996ee93 |
children | dfef8de3d270 |
line source
1 # SliTaz package receipt.
3 PACKAGE="dummynet"
4 VERSION="20120812"
5 CATEGORY="network"
6 SHORT_DESC="Network testing/emulation tool."
7 MAINTAINER="samuel_trassare@yahoo.com"
8 LICENSE="BSD"
9 WEB_SITE="http://info.iet.unipi.it/~luigi/dummynet/"
10 TARBALL="$VERSION-ipfw3.tgz"
11 WGET_URL="http://info.iet.unipi.it/~luigi/doc/$TARBALL"
13 BUILD_DEPENDS="linux-module-headers"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 installed=/var/lib/tazpkg/installed
19 kvers=$(. $installed/linux-module-headers/receipt ; echo $VERSION)
20 sed -i "s/WARN := -O1 -Wall -Werror/WARN := -O1 -Wall/" kipfw/Makefile
21 sed -i "s/uname -r/echo $kvers-slitaz/" Makefile.inc
22 make
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 mkdir -p $fs/usr/bin \
29 $fs/lib/modules/$kvers-slitaz/kernel/net
30 cp -a $src/ipfw/ipfw $fs/usr/bin
31 cp -a $src/kipfw-mod/ipfw_mod.ko $fs/lib/modules/$kvers-slitaz/kernel/net
32 }
34 post_install()
35 {
36 echo "/lib/modules/`uname -r`/kernel/net/ipfw_mod.ko" >> /lib/modules/modules.dep
37 depmod
38 }