wok-next diff pxe-kexec/receipt @ rev 21682

updated gifsicle (1.91 -> 1.92)
author Hans-G?nter Theisgen
date Mon Jun 29 15:15:42 2020 +0100 (2020-06-29)
parents 8e1b2a143eb3
children
line diff
     1.1 --- a/pxe-kexec/receipt	Sat Sep 01 16:21:51 2018 +0300
     1.2 +++ b/pxe-kexec/receipt	Mon Jun 29 15:15:42 2020 +0100
     1.3 @@ -1,46 +1,41 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="pxe-kexec"
     1.8  VERSION="0.2.5"
     1.9  CATEGORY="misc"
    1.10  MAINTAINER="pascal.bellard@slitaz.org"
    1.11 -SHORT_DESC="Boots linux with kexec using pxelinux configuration."
    1.12 +SHORT_DESC="Boots linux with kexec using pxelinux configuration"
    1.13  LICENSE="GPL2"
    1.14  WEB_SITE="https://web.archive.org/web/20100819083125/http://pxe-kexec.berlios.de/"
    1.15 +
    1.16  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17  WGET_URL="$SF_MIRROR/$PACKAGE.berlios/$TARBALL"
    1.18  
    1.19 -DEPENDS="curl readline kexec-tools gcc-lib-base"
    1.20  BUILD_DEPENDS="cmake curl-dev ncurses-dev perl"
    1.21  
    1.22 -# Rules to configure and make the package.
    1.23 -compile_rules()
    1.24 -{
    1.25 +compile_rules() {
    1.26  	mkdir build
    1.27 -	cd build
    1.28 -	cmake -DCMAKE_INSTALL_PREFIX=/usr .. &&
    1.29 +	cd    build
    1.30 +	cmake \
    1.31 +		-DCMAKE_INSTALL_PREFIX=/usr \
    1.32 +		.. &&
    1.33  	make &&
    1.34 -	make DESTDIR=$DESTDIR install
    1.35 -}
    1.36 -	
    1.37 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.38 -genpkg_rules()
    1.39 -{
    1.40 -	mkdir -p $fs/usr
    1.41 -	cp -a $install/usr/sbin $fs/usr
    1.42 +	make DESTDIR=$install install
    1.43  }
    1.44  
    1.45 -# Pre and post install commands for Tazpkg.
    1.46 -post_install()
    1.47 -{
    1.48 +genpkg_rules() {
    1.49 +	copy @std
    1.50 +	DEPENDS="curl readline kexec-tools gcc-lib-base"
    1.51 +}
    1.52 +
    1.53 +post_install() {
    1.54  	grep -q kexec "$1/etc/init.d/rc.shutdown" &&
    1.55  	cat >> "$1/etc/init.d/rc.shutdown" <<EOT
    1.56  # pxe-kexec want kexec in shutdown script.
    1.57 -kexec -e 2>&1 > /dev/null
    1.58 +kexec -e 2>&1 >/dev/null
    1.59  EOT
    1.60  }
    1.61  
    1.62 -post_remove()
    1.63 -{
    1.64 +post_remove() {
    1.65  	sed -i '/kexec/d' "$1/etc/init.d/rc.shutdown"
    1.66  }