wok-next annotate grub2/receipt @ rev 13206
fail2ban: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Aug 06 14:55:22 2012 +0200 (2012-08-06) |
parents | b2098fa1f6ea |
children | c86fbbc54081 |
rev | line source |
---|---|
pascal@4478 | 1 # SliTaz package receipt. |
pascal@4478 | 2 |
pascal@4478 | 3 PACKAGE="grub2" |
pascal@4478 | 4 SOURCE="grub" |
pascal@13114 | 5 VERSION="2.00" |
pascal@4478 | 6 CATEGORY="base-system" |
pascal@4478 | 7 SHORT_DESC="GRUB2 boot loader." |
pascal@4478 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@13114 | 9 TARBALL="$SOURCE-$VERSION.tar.xz" |
pascal@13115 | 10 DEPENDS="zlib freetype ncurses libusb-compat grep libusb libdevmapper" |
pascal@13115 | 11 BUILD_DEPENDS="flex bison zlib-dev xz-dev freetype-dev ncurses-dev \ |
pascal@13115 | 12 libusb-compat-dev libusb-dev libdevmapper-dev" |
pascal@4478 | 13 WEB_SITE="http://www.gnu.org/software/grub/" |
pascal@13114 | 14 WGET_URL="ftp://ftp.gnu.org/gnu/grub/$TARBALL" |
pascal@4478 | 15 |
pascal@4478 | 16 # Rules to configure and make the package. |
pascal@4478 | 17 compile_rules() |
pascal@4478 | 18 { |
pascal@4478 | 19 cd $src |
pascal@4480 | 20 chmod +x install-sh |
pascal@4478 | 21 ./configure --prefix=/usr --sysconfdir=/etc \ |
pascal@4478 | 22 --mandir=/usr/share/man $CONFIGURE_ARGS && |
pascal@4478 | 23 make && |
pascal@13114 | 24 make DESTDIR=$DESTDIR install |
pascal@4478 | 25 } |
pascal@4478 | 26 |
pascal@4478 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4478 | 28 genpkg_rules() |
pascal@4478 | 29 { |
pascal@4478 | 30 mkdir -p $fs/boot/grub $fs/usr |
pascal@4478 | 31 cp -a $_pkg/usr/bin $fs/usr |
pascal@4478 | 32 cp -a $_pkg/usr/sbin $fs/usr |
pascal@4478 | 33 cp -a $_pkg/usr/lib $fs/usr |
pascal@4478 | 34 cp -a $_pkg/etc $fs |
pascal@4478 | 35 |
pascal@4478 | 36 # Example config file (grub.cfg). |
pascal@4478 | 37 cp stuff/example-grub.cfg $fs/boot/grub |
pascal@4478 | 38 } |
pascal@4478 | 39 |