From 68495bd52e2bb05ae5a1993424d842a948f51438 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Mon, 22 Oct 2012 23:06:05 +0000 Subject: [PATCH] pentoo-installer: automatically set swap to RAM size for the purpose of hibernation --- pentoo/pentoo-installer/Manifest | 2 ++ .../files/auto-set-swap-to-ram.patch | 12 +++++++ .../pentoo-installer-0.1.3.2-r5.ebuild | 36 +++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 pentoo/pentoo-installer/files/auto-set-swap-to-ram.patch create mode 100644 pentoo/pentoo-installer/pentoo-installer-0.1.3.2-r5.ebuild diff --git a/pentoo/pentoo-installer/Manifest b/pentoo/pentoo-installer/Manifest index dfb85e73f..bb5f1262d 100644 --- a/pentoo/pentoo-installer/Manifest +++ b/pentoo/pentoo-installer/Manifest @@ -1,5 +1,6 @@ AUX 7500-ext4.patch 732 SHA256 cc139f34f29dbf2d797eb4b4da0f5887a2aea27d130722fb2165ed3338e82e72 SHA512 04c80c3da0987ec013d7fcb5b04def19b10693826c4c2ab8624187b3049eaf9a46609c2237defe3bcaf8fae7ccfc73e3571436d0182c3e732b3801a2d082e553 WHIRLPOOL 3ca4e7fbb23e2aa3a23c46025bbcbf93c0bd61a6108824f4e4abde100e2963ddf707dbf5320ad5442591ceb888a1ca33c931bb9bc369dc1453eb9926fe2b57f5 AUX 8000-ext4.patch 763 SHA256 e53e752ec4cc3f32e5a70b5f2b4e29a5fb1afce4fc9c8d44f0d97f58009736fb SHA512 42ce2bcc1ffa7484c2c7dcb0fce7afb76b40f2e323d0fd4a11b152c5903566ee8f300951defcacebcf2d3db6e7074aa340e9b969478a7d05c7b99297a900f4b2 WHIRLPOOL 93a982d3d669de34e10c3fbe64593a329d465048d270d4227173c058667d648ad990c7d2bfe8903423fa635dd85aafb832ee8198d2d4babc5321c4ded0c32c64 +AUX auto-set-swap-to-ram.patch 940 SHA256 9e613682d853070959c0fdac30a8ad9f85a05160f67b211e123b07798fb40883 SHA512 af390b7e15ee0fea0766b7dd654ce94aed03fdc4905ec7db1e0bf851a7b6c68694abe780326637671c7bc85501a46019209b073d7fdbbe6951850038bc0b542b WHIRLPOOL 165de9065078592d5c4c809942d71ca1b7d96e5e12299e5548b6eea955b777298ca1def85a5193d4bdeab8a59dda2180ba5740ff59c425e293627a116e951e8b AUX fix-useflags-on-install.diff 455 SHA256 9f0b8542f21d6d06e35f6171d2b6925cc72872fd6724ca8008e5b63f972da796 SHA512 fae7b01232aec28f7f9dfd8536dcd4a8003ac172f686059f316645b8127181398a316bd888f09a4f7e1536e760a82c1a9a00b786ec9e1cd5b777784ab678a76e WHIRLPOOL 9c8afffce5d0f131fc8726c4e0f410ed3c7bb97d15cb7c4eb17dea4ffa5caf8d4afc6ff59a306408239aaa579abfc3af722621da05df47774e8ee3ab0e8d6584 AUX more-fixes-for-installer-bugs.patch 4582 SHA256 693ea18c861a941c141b66b4c4d5e3dee112ec3c729bc991708f1b62d74f7784 SHA512 764522f9f3d5ece2b2a432ab200e4ee32b45934c95625b201a85b4a7d32663244e1d1093705eecb01508164c320ea8fce9b8605b034417dffe9a711b666e8033 WHIRLPOOL 2491cfce7c024bdfa94ac46b0282c6ae594c4a1f4c534b88d2c634c97db9f30dc48d8efd7ba3cd6df1f6946a1c0bc193df6e9a05642468ec8d54180db692beed AUX pentoo-installer.desktop 213 SHA256 81e5bdc9639e24a7b727c571f3db4dd76020f4f5bd094b1b78cdb8ddd8da8278 SHA512 d3c8fa5d220d29fdb4fd007283a1095dde2207a68ca1dbde7d72a26affabc45e9d7f9268ff35bbd8ebe7bc50c7d3078c3352c2f9ece6312557dc367a1f497319 WHIRLPOOL aeb3631bce78ff66e0e4297934a323988cea9d5f3d796059c37da4deb1ede0ee4a234cd7e47141f6e57805a9828f20d271c6454b89b62c6b95090a8315363ef4 @@ -8,4 +9,5 @@ EBUILD pentoo-installer-0.1.3.2-r1.ebuild 618 SHA256 cbf48e69d310a100a96a37194a5 EBUILD pentoo-installer-0.1.3.2-r2.ebuild 669 SHA256 866cdd5ea28c26a86c32f2474b4dd9e1911aaa0ac291d6a42daf4a36ba49d85b SHA512 10b27b42072925ae07d61a15dd075786ec525f17b95ef5b74e3273faaa583c2572075d0b34d9d7aedcc2191967f8db8fccf0d4f661a7182ebf056318bf6be601 WHIRLPOOL 42ff47f07c3ef44818cad530e015b63a68db04ef9ca15afb28626823fc850305acbc287c8e7c7b882c82f61decafbd0e35476c89e1f047e719271649e8d9227d EBUILD pentoo-installer-0.1.3.2-r3.ebuild 782 SHA256 ced75233cbfc0f902a5c511ba86b4c0b9eec033fc96949133dcb6bd39e8101ed SHA512 ebd7cd97bd93a50fffb04911e4928267cd144ba0baccee95abe41b5af6e4d1f86f12951662fdbff2c751779bf1b5747d34dfcb2c16a6b872850b54a18e0b8b6d WHIRLPOOL 5d849d78932c42c081a28545a7c568238c0598ecbe6198b35017dfc483f073d918838b270f2146c1e906cc67a36d22259c2382680190750d9be4235ef9811bf3 EBUILD pentoo-installer-0.1.3.2-r4.ebuild 840 SHA256 9faed8d20a8ad4e3367ac72363a0262286eff522636a669baee5c0563f55e499 SHA512 e7aeff7496af501aeb9be3d3fd905b991c02fbc627b4991cecbf49e06f669ac04bc8a0ef8593400e5bc99c6bee61222b630328a73c12abcbcfcfb118fe4bbce8 WHIRLPOOL 124305fbdc9b4e6e6f9b67a2d1f8a606ca46f636ed39bdf8f161dbcd4dfc7c49d6c7840410f56101a824e47f8e17b610ae39a511c9ec99c25d72ea6328467582 +EBUILD pentoo-installer-0.1.3.2-r5.ebuild 889 SHA256 254a2aba2619b324508bef18e36cb761a43ad7bf04311592dc43ef3927630ac9 SHA512 6d738c2691544c00753878ad37ba58b355f74c2d81525f3416c91f732fd8e1d3998721268e9f2237625f929c4598d79ca6329532b08eddc4be20c45d99c7f7ec WHIRLPOOL 7a5ea0b5d993d0a1d2bc26ebd8e60adc43bec6f244aeeff05356f9d4ec885f7bc3d34a35a2bdc9426e80176a6ff6b90c31d0c689fdb255a11baac14f2803a51b EBUILD pentoo-installer-0.1.3.2.ebuild 552 SHA256 09347afb7d09592787a88a1d76414155de65129be6abfa29aa476d052b0f4be8 SHA512 2bac023d1a2a35bf5cf0a75219992e47c2f15d39c3d8ba6509d9da29ba415bcd5f0cb48bca916e0f90f66d975317843ec8d05eb176e665f98378f3c20f4dcc30 WHIRLPOOL b265471c8ffeb7e823d4077b850e66dbe606db5ad61a61bbb9cefab62fe8a250c3c74e4aaf0cdf0c62f0642451879e900125e424a4a270dec083353067a8ec14 diff --git a/pentoo/pentoo-installer/files/auto-set-swap-to-ram.patch b/pentoo/pentoo-installer/files/auto-set-swap-to-ram.patch new file mode 100644 index 000000000..abb7dc6f7 --- /dev/null +++ b/pentoo/pentoo-installer/files/auto-set-swap-to-ram.patch @@ -0,0 +1,12 @@ +--- pentoo-installer.orig 2012-10-22 19:01:48.855787355 -0400 ++++ pentoo-installer 2012-10-22 19:04:24.971791536 -0400 +@@ -380,7 +380,8 @@ + done + DISC_SIZE=$(($DISC_SIZE-$BOOT_PART_SIZE)) + while [ "$SWAP_PART_SET" = "" ]; do +- DIALOG --inputbox "Enter the size (MiB) of your swap partition. Minimum value is > 0.\n\nDisk space left: $DISC_SIZE MiB" 10 65 "4096" 2>$ANSWER || return 1 ++ SUGGESTED_SWAP_SIZE=`awk '/MemTotal/ {printf( "%.2f\n", int ( $2 / 1024 ) + 1)}' /proc/meminfo` ++ DIALOG --inputbox "Enter the size (MiB) of your swap partition. Minimum value is > 0.\n\nDisk space left: $DISC_SIZE MiB" 10 65 "${SUGGESTED_SWAP_SIZE}" 2>$ANSWER || return 1 + SWAP_PART_SIZE=$(cat $ANSWER) + if [ "$SWAP_PART_SIZE" = "" -o "$SWAP_PART_SIZE" -le "0" ]; then + DIALOG --msgbox "ERROR: You have entered an invalid size, please enter again." 0 0 diff --git a/pentoo/pentoo-installer/pentoo-installer-0.1.3.2-r5.ebuild b/pentoo/pentoo-installer/pentoo-installer-0.1.3.2-r5.ebuild new file mode 100644 index 000000000..4215d6dcb --- /dev/null +++ b/pentoo/pentoo-installer/pentoo-installer-0.1.3.2-r5.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=4 + +inherit eutils + +DESCRIPTION="ncurses based installer for pentoo, based on the Arch Linux installer" +HOMEPAGE="http://gitorious.org/pentoo/pentoo-installer" +SRC_URI="http://dev.pentoo.ch/~jensp/distfiles/$P.tar.xz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="amd64 x86" +IUSE="" + +DEPEND="app-arch/xz-utils" +RDEPEND="dev-util/dialog + || (