diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /sys-power/suspend | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'sys-power/suspend')
-rw-r--r-- | sys-power/suspend/Manifest | 3 | ||||
-rw-r--r-- | sys-power/suspend/files/suspend-1.0-automake-1.13.patch | 11 | ||||
-rw-r--r-- | sys-power/suspend/files/suspend-1.0-bzip2.patch | 37 | ||||
-rw-r--r-- | sys-power/suspend/files/suspend-1.0-errno.patch | 10 | ||||
-rw-r--r-- | sys-power/suspend/metadata.xml | 19 | ||||
-rw-r--r-- | sys-power/suspend/suspend-1.0.ebuild | 60 | ||||
-rw-r--r-- | sys-power/suspend/suspend-1.0_p20150622.ebuild | 58 |
7 files changed, 198 insertions, 0 deletions
diff --git a/sys-power/suspend/Manifest b/sys-power/suspend/Manifest new file mode 100644 index 000000000000..3c4fdccd2310 --- /dev/null +++ b/sys-power/suspend/Manifest @@ -0,0 +1,3 @@ +DIST suspend-1.0_p20120915.tar.xz 111080 SHA256 4fa7551ec5ce3ed5d7412ad14e01f5fbac3a541db9d94ad6adf20b87d9c32eca SHA512 bb714b4a7c0f5749c4b711a5c38ca5d8cb5078176a75387957123f75cfe8348adc3aa4e96335eb65c14ad1dd2f99fd6dbca3b415525dd39b3c547f9b13b775be WHIRLPOOL 6f5ea4a17572bc1e30d70258a0439b40a29ea67f0251cecec81bdd3dee92e7801645c37dbb868b0f498c093193bd574f361dc015810965c09f53d75cfb391e7f +DIST suspend-1.0_p20150622.patch.xz 6052 SHA256 bc05a8896b89520b70a5c3b1a9903d94b75bc82756f6edbdddf53c6d1120af14 SHA512 8ca6d51e96b4d405133b4ee3bc246d79e4270052fe10202f94a85075dad314a33bb586ebbcf3a04c2ab93c74eb5f8d4e1dfca1c88fc56467d347eda147e4d3aa WHIRLPOOL 09f07d6ece378715c0bb1017ade8b97277f818e00accec0f2b5b4573664aafb68dc3713fe1780d4b38707120c0b62c35ec6d6818aec0f59ad3c14247b4cf1a7b +DIST suspend-utils-1.0.tar.bz2 408451 SHA256 0206ba6332860b6da57acc79cc0f8604150ef0835ff9633fd42d59d181a6c85d SHA512 481f7ab6e6d43b963cf7abf4d16a9911035dbce13d96e11eeadd50bbd2b9671c597eab0e3060536dcb0d6d848e30ac0e7ff534275fc2d66d2064b75066a4adb8 WHIRLPOOL 4321dcaeda4b5b7d822a1cade82b88094d8706d0daaa06b72d3c053a4bac14ed85b55a4681e0a52f116a63e3b8f4255c57e55fb43961f77149faf1b8aa918d58 diff --git a/sys-power/suspend/files/suspend-1.0-automake-1.13.patch b/sys-power/suspend/files/suspend-1.0-automake-1.13.patch new file mode 100644 index 000000000000..8aacea520b32 --- /dev/null +++ b/sys-power/suspend/files/suspend-1.0-automake-1.13.patch @@ -0,0 +1,11 @@ +--- suspend-utils-1.0/configure.ac ++++ suspend-utils-1.0/configure.ac +@@ -9,7 +9,7 @@ + AC_PREREQ([2.59]) + AC_INIT([suspend-utils], [1.0]) + AM_INIT_AUTOMAKE([${PACKAGE_NAME}], [${PACKAGE_VERSION}]) +-AM_CONFIG_HEADER([config.h]) ++AC_CONFIG_HEADERS([config.h]) + AC_CONFIG_SRCDIR([suspend.c]) + + AC_CANONICAL_HOST diff --git a/sys-power/suspend/files/suspend-1.0-bzip2.patch b/sys-power/suspend/files/suspend-1.0-bzip2.patch new file mode 100644 index 000000000000..abe5afab819b --- /dev/null +++ b/sys-power/suspend/files/suspend-1.0-bzip2.patch @@ -0,0 +1,37 @@ +--- a/Makefile.am 2011-03-07 00:24:15.000000000 +0100 ++++ b/Makefile.am 2012-05-22 10:52:49.023010001 +0200 +@@ -171,7 +171,8 @@ + fbsplash_funcs.c \ + fbsplash-test.c + fbsplash_test_LDADD=\ +- $(FBSPLASH_LIBS) ++ $(FBSPLASH_LIBS) \ ++ $(BZ2_LIBS) + + whitelist.c: whitelist.csv + $(PERL) wlcsv2c.pl whitelist.csv whitelist.c +--- a/configure.ac 2011-03-07 00:24:15.000000000 +0100 ++++ b/configure.ac 2012-05-22 10:52:37.918148832 +0200 +@@ -74,6 +74,22 @@ + , + [enable_fbsplash="no"] + ) ++BZ2_LIBS= ++AS_IF( ++ [test "x${fbsplash}" = "xyes"], ++ [ ++ PKG_CHECK_MODULES( ++ [FREETYPE2], ++ [freetype2], ++ , ++ [AC_MSG_ERROR([freetype was not found.])] ++ ) ++ AC_CHECK_LIB([bz2], [BZ2_bzDecompress], ++ [BZ2_LIBS="${BZ2_LIBS} -lbz2"], ++ [AC_MSG_ERROR(['libbz2' library was not found.])] ++ ) ++ ] ++) + AC_ARG_WITH( + [devdir], + [AC_HELP_STRING([--with-devdir=DIR], [use if --enable-create-device, put devices in this directory, default /dev])], diff --git a/sys-power/suspend/files/suspend-1.0-errno.patch b/sys-power/suspend/files/suspend-1.0-errno.patch new file mode 100644 index 000000000000..ea8a378a5abe --- /dev/null +++ b/sys-power/suspend/files/suspend-1.0-errno.patch @@ -0,0 +1,10 @@ +--- swsusp.h.orig 2010-10-03 13:40:47.000000000 -0600 ++++ swsusp.h 2010-10-04 14:38:38.000000000 -0600 +@@ -11,6 +11,7 @@ + + #include <stdint.h> + #include <linux/fs.h> ++#include <errno.h> + + #include "suspend_ioctls.h" + #include "encrypt.h" diff --git a/sys-power/suspend/metadata.xml b/sys-power/suspend/metadata.xml new file mode 100644 index 000000000000..98dfbe79ca36 --- /dev/null +++ b/sys-power/suspend/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>xmw@gentoo.org</email> + <name>Michael Weber</name> + </maintainer> + <maintainer> + <email>bircoph@gentoo.org</email> + <name>Andrew Savchenko</name> + </maintainer> + <use> + <flag name="fbsplash">Add support for framebuffer splash</flag> + <flag name="crypt">Allows suspend and resume from encrypted disk</flag> + </use> + <upstream> + <remote-id type="sourceforge">suspend</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-power/suspend/suspend-1.0.ebuild b/sys-power/suspend/suspend-1.0.ebuild new file mode 100644 index 000000000000..22af7802da22 --- /dev/null +++ b/sys-power/suspend/suspend-1.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=4 + +inherit autotools eutils + +DESCRIPTION="Userspace Software Suspend and S2Ram" +HOMEPAGE="http://suspend.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P/-/-utils-}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="fbsplash crypt threads" + +X86_RDEPEND="dev-libs/libx86" +X86_DEPEND=" + ${X86_RDEPEND} + >=sys-apps/pciutils-2.2.4" +RDEPEND=">=dev-libs/lzo-2[static-libs] + fbsplash? ( >=media-gfx/splashutils-1.5.2 ) + crypt? ( <dev-libs/libgcrypt-1.6.0:0[static-libs] + dev-libs/libgpg-error[static-libs] ) + x86? ( ${X86_RDEPEND} ) + amd64? ( ${X86_RDEPEND} )" +DEPEND="${RDEPEND} + x86? ( ${X86_DEPEND} ) + amd64? ( ${X86_DEPEND} ) + virtual/pkgconfig" + +S="${WORKDIR}/${P/-/-utils-}" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-errno.patch \ + "${FILESDIR}"/${P}-bzip2.patch \ + "${FILESDIR}"/${P}-automake-1.13.patch + eautoreconf +} + +src_configure() { + econf \ + --docdir="/usr/share/doc/${PF}" \ + --enable-compress \ + $(use_enable crypt encrypt) \ + $(use_enable fbsplash) \ + $(use_enable threads) +} + +src_install() { + dodir etc + emake DESTDIR="${D}" install +} + +pkg_postinst() { + elog "In order to make this package work with genkernel see:" + elog "http://bugs.gentoo.org/show_bug.cgi?id=156445" +} diff --git a/sys-power/suspend/suspend-1.0_p20150622.ebuild b/sys-power/suspend/suspend-1.0_p20150622.ebuild new file mode 100644 index 000000000000..330716ff6b8d --- /dev/null +++ b/sys-power/suspend/suspend-1.0_p20150622.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils + +BASE_PV="1.0_p20120915" + +DESCRIPTION="Userspace Software Suspend and S2Ram" +HOMEPAGE="http://suspend.sourceforge.net/" +SRC_URI="http://dev.gentoo.org/~bircoph/distfiles/${PN}-${BASE_PV}.tar.xz + http://dev.gentoo.org/~bircoph/patches/${P}.patch.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="crypt fbsplash +lzo threads" + +RDEPEND=" + dev-libs/libx86 + crypt? ( + >=dev-libs/libgcrypt-1.6.3:0[static-libs] + dev-libs/libgpg-error[static-libs] ) + fbsplash? ( >=media-gfx/splashutils-1.5.2 ) + lzo? ( >=dev-libs/lzo-2[static-libs] ) " +DEPEND="${RDEPEND} + >=dev-lang/perl-5.10 + >=sys-apps/pciutils-2.2.4 + virtual/pkgconfig" + +S="${WORKDIR}/${PN}" + +src_prepare() { + epatch "${WORKDIR}/${P}.patch" + eautoreconf +} + +src_configure() { + econf \ + --docdir="/usr/share/doc/${PF}" \ + $(use_enable crypt encrypt) \ + $(use_enable fbsplash) \ + $(use_enable lzo compress) \ + $(use_enable threads) +} + +src_install() { + dodir etc + emake DESTDIR="${D}" install + rm "${D}/usr/share/doc/${PF}"/COPYING* || die +} + +pkg_postinst() { + elog "In order to make this package work with genkernel see:" + elog "http://bugs.gentoo.org/show_bug.cgi?id=156445" +} |