# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ S=${WORKDIR} INSTALL_SCRIPT="suspend.sh" DESCRIPTION="Suspend-To-Disk aka hibernate support" HOMEPAGE="http://swsusp.sourceforge.net" SRC_URI="mirror://sourceforge/${PN}/${INSTALL_SCRIPT}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" RDEPEND="virtual/linux-sources sys-apps/gawk" src_unpack() { cp ${DISTDIR}/${INSTALL_SCRIPT} ${S} cd ${S} epatch ${FILESDIR}/prefix.patch } src_compile() { return } src_install() { cd ${S} chmod +x ${INSTALL_SCRIPT} PREFIX=${D} ./${INSTALL_SCRIPT} --install --force } pkg_postinst() { if [ ! -d /proc/swsusp ] then ewarn "It looks like the running kernel is not compiled" ewarn "with support for swsusp2. Please patch your kernel" ewarn "if needed with the patches from ${HOMEPAGE}" ewarn "and recompile your kernel with swsusp2 activated." echo fi }