wok-next view linux-dev/receipt @ rev 19722
Up net-snmp (5.7.3)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed May 24 18:42:05 2017 +0200 (2017-05-24) |
parents | |
children | f463de72afe3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="linux-dev"
4 VERSION="4.9.4"
5 KBASEVER="4.9"
6 CATEGORY="development"
7 SHORT_DESC="Menu based tool to configure the Linux Kernel"
8 MAINTAINER="devel@slitaz.org"
9 LICENSE="GPL2"
10 WEB_SITE="https://www.kernel.org/"
12 TARBALL="linux-$KBASEVER.tar.xz"
13 WGET_URL="https://www.kernel.org/pub/linux/kernel/v4.x/$TARBALL"
15 DEPENDS="ncurses"
16 BUILD_DEPENDS="ncurses-dev patch"
17 SIBLINGS="linux linux-api-headers linux-man"
18 COOKOPTS="!pngz !svgz !uiz"
20 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
21 PATCH="$(dirname $WGET_URL)/patch-$VERSION.xz"
22 EXTRA_SOURCE_FILES="$(basename $PATCH)"
23 fi
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 # Update sources to the $VERSION using base sources ($KBASEVER) and patch
29 if [ "$KBASEVER" != "${VERSION%.0}" ]; then
30 [ -s $SRC/$(basename $PATCH) ] || wget $PATCH -O $SRC/$(basename $PATCH)
31 # don't patch twice for `cook $PACKAGE --continue`
32 if [ ! -f "done.patch-$VERSION" ]; then
33 xzcat $SRC/$(basename $PATCH) | patch -Np1
34 touch done.patch-$VERSION
35 fi
36 fi
38 # Get and apply Aufs patches
39 . $WOK/linux/stuff/tools/aufs-patches
41 make defconfig
42 make menuconfig 2>&1 | grep -v Error
44 p="$install/usr/src/linux-$VERSION-slitaz"
45 mkdir -p $p
46 cp -a $src/* $src/.config $p
48 mkdir -p $install/usr/bin
49 mv $p/scripts/kconfig/mconf $install/usr/bin
50 cat > $install/usr/bin/menuconfig <<EOT
51 #!/bin/sh
52 p=\$PWD
53 cd ../src/linux-$VERSION-slitaz
54 SRCARCH=x86 ARCH=i386 KERNELVERSION=$VERSION \$p/mconf Kconfig
55 EOT
56 chmod a+x $install/usr/bin/menuconfig
57 }
59 # Rules to gen a SliTaz package suitable for Tazpkg.
60 genpkg_rules()
61 {
62 cook_copy_files Kconfig* mconf menuconfig .config
63 }