diff options
Diffstat (limited to 'sys-apps/readahead-list')
11 files changed, 264 insertions, 45 deletions
diff --git a/sys-apps/readahead-list/Manifest b/sys-apps/readahead-list/Manifest index 5ee99ec21479..4ac46ccbb7e7 100644 --- a/sys-apps/readahead-list/Manifest +++ b/sys-apps/readahead-list/Manifest @@ -1,8 +1,11 @@ +AUX 1.20060421.1016/0001-Modernise-autotools.patch 1535 BLAKE2B e73ca5fc69cb4a1f5856cc48caaeb82ac823a0003e284a66ecd335ad64344f03cf01705c4627f075ebcaa33af6d3068cbd1638255d4f533ffd8a48aea86c8de1 SHA512 e6e9bc0f9349cd8c0f5cad312c984f0fcd4b6198f376b11946b6092d668666fa22e9ef5d0a3e8a62d32bde144beeb107915b9567b494ca32ed50b31f8a866536 +AUX 1.20060421.1016/0002-Set-D_GNU_SOURCE-for-readahead-to-fix-Wimplicit-func.patch 2038 BLAKE2B 95ea6a5e5f88263c53d86ca470f143b60a3c9205db1f18cdcc0b2c15c5c8adbf97c888c0727f894bad0fb4a0304a29d0d646c7d8c9b774d1b9a7bba10c4777d5 SHA512 7ec81b5597418bb64b45167f29e7112bc24e4c1f20308d837d7d254b977d2468f24b4f132bb578ac2c51fe3837b5037d38b1db55fcb28bb90ebb7c5418e13273 +AUX 1.20060421.1016/0003-Simplify-setting-up-Large-File-Support-use-AC_SYS_LA.patch 1256 BLAKE2B db0ff77c8095a081aa2e92d31eb5e165a26d6840daeec8ab00f5e1a3f5e8dcbeb962d2bc2b8d2f47b6b6fec8cb7e3c0c52827cf9f18f9bb56c8bdbd6ac4b19fb SHA512 08bcec95702e491bb5bc7da7ed6b3741a8696eace33cbb9993fb3d257b343788e68578e1e1d96dac5a77d43fbc81b5fcb607d1b3a1ace5aa3a2d95ae8fc6a23a +AUX 1.20060421.1016/0004-filelist-order.cxx-Add-missing-cstdlib-include-for-e.patch 507 BLAKE2B b731a4e215cbbbe694607b15101daf6be712121e6e8330e5b3ae9735e8ebda7544dbe5c9766ce77380a23e6c427b86b881fa651faa8977740bf01559327b3fe8 SHA512 b9841297193ce85e9b1593e79d8fcf0002f1cbca9edbaf2401d7368368a51e97c2420fa7ca378fe93316a1aa076e0cee06d0e79a695a938aeedc789df5faf68c +AUX 1.20060421.1016/0005-Fix-build-with-modern-C.patch 1621 BLAKE2B ad1acace062cf2125f4a8dd84b8fc61d94556d910bbe880ff696eaadbdaaf19010ee068d1fbff92835f78bcf23215eb08d20a4baf0597b129d38ffb9cbde0e4f SHA512 a327c3ce7a6871850d8f6ad1ff30b9f4f09697d7823b12ba40a98d11b8ae1db3e73fcce628b56871ceb9b32ac720c7c46f1b9dbd437290baf7d27d820b21a3ae AUX conf.d-readahead-list 582 BLAKE2B 992bf29545e2f59f53a5d580b651f38d1b04c38d245a2e1630786175fc3f435bed5106752b3112ab4c11fb246855febc31273fa9fc1b6bb1ccdf926e05b6c9eb SHA512 00d5f750bdcfc1e68c602709575da4c329d22c8b1dd1e2c68ddb587217f4d2f2bca07ccec2bc0db19a47cd7864239a53f86786ee7c09eda438602fa4890bd0ea -AUX init.d-readahead-list 517 BLAKE2B b7a77a26c679dfb9f1abf11ee53fdf1e2e07a32e22b4200b02f24fb6a4a2d97c3c00b35a9dda5d163105198e613cd2fe8b073c6ba1a024dec5fd097e366a343c SHA512 aede2051cfdc41e6175517af532eb182b760ec61d12dcb756323694d017b1a3488f06db357a18790cd2fbcd951517f69fe0f9d16acd6b8bb6bd486acb926f445 -AUX init.d-readahead-list-early 516 BLAKE2B 61f56105177fa70318a0076ba327f9795023c3f7f8d37d65ddcab999b523c925ce91d98ad85ca6d0a8f05a72ee7daf2ebf29d02f00362b8b7d9416ccc201d520 SHA512 fc06d5008bb37b83e259b0868f168e51619a63aebca9b5105610e029c9130b633ca0bdcf44c7ccd741c13caab11b251bb34f051bcc8f76965ad68eb999c969f1 -AUX readahead-list-1.20060421.1016-gcc-4.3.patch 200 BLAKE2B ba4051a07214477f948af0e1c310b97e43cd7aaed9c1d79b3937da8ea42ad4b604bb69967a15da21dda219e82a5b71ccfa82c947f51f116f3a69ac2e1c67bc22 SHA512 eb292b74e4fdc167a7edaf9d0f3f8ebabd69eff14a18b860ecbe26241708875153dd43ba3bce41a94bd83892093cf8f41d3f7bc421fadaab8a88d9728cb67795 -AUX readahead-list-1.20060421.1016-gcc6.patch 674 BLAKE2B 5749541d931ec45679c3c43fc2afb0b625fa53e54c86f4da413774d6e2cdf8f94f9819e0f802fe27d2ec6bff8dffe368ca72952769d1d6596ae0958030625ebb SHA512 3b070f6ffe5c396c2535e0fb7cbe8ba3ed87dcada1cacc39e9a607298c8a9fa4af37dd0942733b3a6d9bdbf55f6d1ad3916da7ac25bcce3188ce29c76711bdc8 +AUX init.d-readahead-list 512 BLAKE2B 471f1d3a86cce3ffb27728b0d0f76ee3fe49330a09f733fe8be99535c13bde1d93811f8b500c45078d2b1959fce90d92594f4ebc69ef184b08a67388dd326186 SHA512 f734fb3408636e99a51db44600d18363463afcba1ebb02d24d41f8d9f99b046265207d6baf143ae03d1ddd7e14e111722da2dce2c6f612c363d9de2b85169254 +AUX init.d-readahead-list-early 510 BLAKE2B 26ce550c6c09863cf1274ed619b7b5043c4ec10e6819b4db832b4745665fd836524761fb52c12d06290af7ddc444242c87904aab23533085d63b246789d83f27 SHA512 9c7f7c2814df7d8ca05fda46094d9b0c1a308c26dbf152a8d2dff53c28c3ae077dfd9ff58af4a3bab37111dfccc54125ab4c8afa934cfea31d20367fb4be0450 DIST readahead-list-1.20060421.1016.tar.bz2 108337 BLAKE2B d806e5afd9ba5334522e90cae830496ba3316927a5b2f605834de4b6cd3cbf6a8fbf840e92069546bc526e65d0beac04bc8c6f6dbff5f2fdfc9f033b0f5a2682 SHA512 fa5644be139c37f9464823e20472a607d7ab754259c6545f83cc9679419bf643ee70aebd7aa4d496a8fb349048ba4836e2ac45ae727ade76156b5ad6e6889ec5 -EBUILD readahead-list-1.20060421.1016-r3.ebuild 1459 BLAKE2B 302d0597843d3cbf525d7b55923f6cec864ef888724fb1d65908b0483f3a9ef24b95f247977c374c546ceb2100491c9c71fea53a9503091d51668cb2a7663acb SHA512 b2e8fffd52c93142bc3f7771600d3f034f011e99362fecc595ec4dfbc40a96f52eb0c5b2c13a67d0f6bddc0a77a8d3573e68d1d9fd70dcbe989a05881bf00638 +EBUILD readahead-list-1.20060421.1016-r4.ebuild 1728 BLAKE2B 73ab375b60498c90e11b7c8fb4f2de7e11362b242792e706883cd5b828cb93bb3a7e3bad9369aaf59ebd955a35c3940b2771160e00368a95cf5b2a158513ae77 SHA512 af8217749c3e328f430ea99ee99788c5e3892dc02db0b7254d31543d86b53b839aa400b20b4be98434596de0e25c7c7cb230493b41582f3413c8831fb311c76b MISC metadata.xml 414 BLAKE2B b6764a2d07f42adfc6c7e3e22b4ff6168b6f348268af12502ce6710148f6ff5cea76ce83fa72d7063d6c8b9d1b8bc89fb5a067ec9bc60375bdbfd55b6ab7d0ac SHA512 af627ca8684c253508a5c564b1ce7ec0630dc9142a8a1d7dbeea02b62b0475e682191391d1fb2263dd10ec9277ec8d392db744013db1470bc015ae4d30b07df5 diff --git a/sys-apps/readahead-list/files/1.20060421.1016/0001-Modernise-autotools.patch b/sys-apps/readahead-list/files/1.20060421.1016/0001-Modernise-autotools.patch new file mode 100644 index 000000000000..bd8052139f62 --- /dev/null +++ b/sys-apps/readahead-list/files/1.20060421.1016/0001-Modernise-autotools.patch @@ -0,0 +1,44 @@ +https://github.com/robbat2/readahead-list/pull/1 + +From 8cfc35923827b6f6e3aff9641aa4cb7c4ac7949c Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 25 Dec 2022 20:33:44 +0000 +Subject: [PATCH 1/6] Modernise autotools + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.ac ++++ b/configure.ac +@@ -1,14 +1,14 @@ + # Copyright (C) 2004-2005 Robin Hugh Johnson <robbat2@orbis-terrarum.net> +-# ++# + # This file is free software; as a special exception the author gives +-# unlimited permission to copy and/or distribute it, with or without ++# unlimited permission to copy and/or distribute it, with or without + # modifications, as long as this notice is preserved. +-# ++# + # This program is distributed in the hope that it will be useful, but + # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the + # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + +-AC_PREREQ(2.59) ++AC_PREREQ([2.71]) + # version stamp is 0.YYYYMMDD.HHMM in UTC! + # date +"1.%Y%m%d.%H%M" -u + AC_INIT([readahead-list],[1.20060421.1016],[Robin H. Johnson robbat2@orbis-terrarum.net],[readahead-list]) +@@ -38,11 +38,9 @@ AC_PATH_PROG(SED, sed, sed) + AC_PATH_PROG(CMP, cmp, cmp) + + AC_CANONICAL_HOST +-LF_SET_WARNINGS + AC_PROG_RANLIB + + # Checks for header files. +-AC_HEADER_STDC + AC_CHECK_HEADERS([ errno.h fcntl.h getopt.h linux/fs.h sched.h stdio.h stdlib.h string.h sys/ioctl.h sys/mman.h sys/syscall.h sys/types.h unistd.h ]) + + # Checks for typedefs, structures, and compiler characteristics. +-- +2.39.0 + diff --git a/sys-apps/readahead-list/files/1.20060421.1016/0002-Set-D_GNU_SOURCE-for-readahead-to-fix-Wimplicit-func.patch b/sys-apps/readahead-list/files/1.20060421.1016/0002-Set-D_GNU_SOURCE-for-readahead-to-fix-Wimplicit-func.patch new file mode 100644 index 000000000000..3e368ef40829 --- /dev/null +++ b/sys-apps/readahead-list/files/1.20060421.1016/0002-Set-D_GNU_SOURCE-for-readahead-to-fix-Wimplicit-func.patch @@ -0,0 +1,70 @@ +https://github.com/robbat2/readahead-list/pull/1 + +From 37e699689661249c88a020681a70cd0633ee7ef4 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 25 Dec 2022 20:34:38 +0000 +Subject: [PATCH 2/6] Set -D_GNU_SOURCE for readahead() to fix + -Wimplicit-function-declaration +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +readahead-list.c: In function ‘process_file’: +readahead-list.c:111:17: error: implicit declaration of function ‘readahead’ [-Werror=implicit-function-declaration] + 111 | readahead(fd, (loff_t)0, (size_t)buf.st_size); + | ^~~~~~~~~ + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.ac ++++ b/configure.ac +@@ -40,6 +40,9 @@ AC_PATH_PROG(CMP, cmp, cmp) + AC_CANONICAL_HOST + AC_PROG_RANLIB + ++# Provides _GNU_SOURCE for readahead() ++AC_USE_SYSTEM_EXTENSIONS ++ + # Checks for header files. + AC_CHECK_HEADERS([ errno.h fcntl.h getopt.h linux/fs.h sched.h stdio.h stdlib.h string.h sys/ioctl.h sys/mman.h sys/syscall.h sys/types.h unistd.h ]) + +--- a/src/filelist-order.cxx ++++ b/src/filelist-order.cxx +@@ -14,6 +14,9 @@ + // along with this program; if not, write to the Free Software + // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + // ++ ++#include <../config.h> ++ + #include <map> + #include <set> + #include <iostream> +@@ -31,7 +34,6 @@ + + #include <fcntl.h> + #include <linux/fs.h> +-#include <../config.h> + + #ifndef BUFFER_SIZE + #define BUFFER_SIZE 2048 +--- a/src/readahead-list.c ++++ b/src/readahead-list.c +@@ -19,6 +19,7 @@ + // Based on code originally written by Erich Schubert <erich@debian.org>. + // $Header: /code/convert/cvsroot/infrastructure/readahead-list/src/readahead-list.c,v 1.5 2006/04/21 10:13:54 robbat2 Exp $ + ++#include <../config.h> + #include <stdio.h> + #include <stdlib.h> + #include <unistd.h> +@@ -31,7 +32,6 @@ + #include <sched.h> + #include <string.h> + #include <errno.h> +-#include <../config.h> + + #if __STDC_VERSION__ < 199901L + # if __GNUC__ >= 2 +-- +2.39.0 + diff --git a/sys-apps/readahead-list/files/1.20060421.1016/0003-Simplify-setting-up-Large-File-Support-use-AC_SYS_LA.patch b/sys-apps/readahead-list/files/1.20060421.1016/0003-Simplify-setting-up-Large-File-Support-use-AC_SYS_LA.patch new file mode 100644 index 000000000000..dc1a092eb117 --- /dev/null +++ b/sys-apps/readahead-list/files/1.20060421.1016/0003-Simplify-setting-up-Large-File-Support-use-AC_SYS_LA.patch @@ -0,0 +1,43 @@ +https://github.com/robbat2/readahead-list/pull/1 + +From 9d7b7a13ac265b76bb7933072a20bf462e5377a6 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 25 Dec 2022 20:35:38 +0000 +Subject: [PATCH 3/6] Simplify setting up Large File Support (use + AC_SYS_LARGEFILE) + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/configure.ac ++++ b/configure.ac +@@ -13,18 +13,15 @@ AC_PREREQ([2.71]) + # date +"1.%Y%m%d.%H%M" -u + AC_INIT([readahead-list],[1.20060421.1016],[Robin H. Johnson robbat2@orbis-terrarum.net],[readahead-list]) + +-LFS_CPPFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" + WARN_CFLAGS="-Wall -W" + CFLAGS="$CFLAGS $WARN_CFLAGS" + CXXFLAGS="$CXXFLAGS $WARN_CFLAGS" +-CPPFLAGS="$CPPFLAGS $LFS_CPPFLAGS" +-export CFLAGS CXXFLAGS CPPFLAGS ++export CFLAGS CXXFLAGS + + AC_CONFIG_AUX_DIR(config) + AC_CONFIG_HEADERS([config.h]) + AM_INIT_AUTOMAKE([dist-bzip2]) + +- + # Checks for programs. + AC_PROG_AWK + AC_PROG_CC +@@ -43,6 +40,8 @@ AC_PROG_RANLIB + # Provides _GNU_SOURCE for readahead() + AC_USE_SYSTEM_EXTENSIONS + ++AC_SYS_LARGEFILE ++ + # Checks for header files. + AC_CHECK_HEADERS([ errno.h fcntl.h getopt.h linux/fs.h sched.h stdio.h stdlib.h string.h sys/ioctl.h sys/mman.h sys/syscall.h sys/types.h unistd.h ]) + +-- +2.39.0 + diff --git a/sys-apps/readahead-list/files/1.20060421.1016/0004-filelist-order.cxx-Add-missing-cstdlib-include-for-e.patch b/sys-apps/readahead-list/files/1.20060421.1016/0004-filelist-order.cxx-Add-missing-cstdlib-include-for-e.patch new file mode 100644 index 000000000000..c9a23e309b66 --- /dev/null +++ b/sys-apps/readahead-list/files/1.20060421.1016/0004-filelist-order.cxx-Add-missing-cstdlib-include-for-e.patch @@ -0,0 +1,22 @@ +https://github.com/robbat2/readahead-list/pull/1 + +From f0f32adfb4eaf26e33fc1655a22a529961257db9 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 25 Dec 2022 20:38:01 +0000 +Subject: [PATCH 4/6] filelist-order.cxx: Add missing <cstdlib> include for + exit() + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/src/filelist-order.cxx ++++ b/src/filelist-order.cxx +@@ -17,6 +17,7 @@ + + #include <../config.h> + ++#include <cstdlib> + #include <map> + #include <set> + #include <iostream> +-- +2.39.0 + diff --git a/sys-apps/readahead-list/files/1.20060421.1016/0005-Fix-build-with-modern-C.patch b/sys-apps/readahead-list/files/1.20060421.1016/0005-Fix-build-with-modern-C.patch new file mode 100644 index 000000000000..7c456001e404 --- /dev/null +++ b/sys-apps/readahead-list/files/1.20060421.1016/0005-Fix-build-with-modern-C.patch @@ -0,0 +1,50 @@ +https://github.com/robbat2/readahead-list/pull/1 + +From 4a22080a30c8906f99eb5899218b9a5f1291b634 Mon Sep 17 00:00:00 2001 +From: Sam James <sam@gentoo.org> +Date: Sun, 25 Dec 2022 20:57:43 +0000 +Subject: [PATCH 5/6] Fix build with modern C++ +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +``` +filelist-order.cxx: In function ‘void printItem(std::pair<mapkey*, const char*>, std::vector<OrderField*>*)’: +filelist-order.cxx:276:37: error: unable to find string literal operator ‘operator""fmt’ with ‘const char [3]’, ‘long unsigned int’ arguments + 276 | #define case_entry(fmt,func) printf("%s"fmt,(first ? "" : " "),func_##func(mk)); break; + | ^~~~~~~ +``` + +Signed-off-by: Sam James <sam@gentoo.org> +--- a/src/filelist-order.cxx ++++ b/src/filelist-order.cxx +@@ -15,8 +15,6 @@ + // Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + // + +-#include <../config.h> +- + #include <cstdlib> + #include <map> + #include <set> +@@ -36,6 +34,8 @@ + #include <fcntl.h> + #include <linux/fs.h> + ++#include <../config.h> ++ + #ifndef BUFFER_SIZE + #define BUFFER_SIZE 2048 + #endif +@@ -275,7 +275,7 @@ void printItem(PAIR_COMPLETE_TYPE p,vector <OrderField*> *ofa) { + continue; + } + OrderField of = *ofp; +-#define case_entry(fmt,func) printf("%s"fmt,(first ? "" : " "),func_##func(mk)); break; ++#define case_entry(fmt,func) printf("%s" fmt,(first ? "" : " "),func_##func(mk)); break; + switch(of.type) { + case ST_DEV: case_entry("%lld",ST_DEV); + case ST_INO: case_entry("%lld",ST_INO); +-- +2.39.0 + diff --git a/sys-apps/readahead-list/files/init.d-readahead-list b/sys-apps/readahead-list/files/init.d-readahead-list index fa5d7fab8eb5..b9156acb7071 100644 --- a/sys-apps/readahead-list/files/init.d-readahead-list +++ b/sys-apps/readahead-list/files/init.d-readahead-list @@ -11,7 +11,7 @@ depend() { start() { # force reading - source /etc/conf.d/readahead-list + . /etc/conf.d/readahead-list f="${READAHEAD_LIST_call_main}" ebegin "readahead(2): ${f}" diff --git a/sys-apps/readahead-list/files/init.d-readahead-list-early b/sys-apps/readahead-list/files/init.d-readahead-list-early index dba700c6d398..3a0ff17f4c14 100644 --- a/sys-apps/readahead-list/files/init.d-readahead-list-early +++ b/sys-apps/readahead-list/files/init.d-readahead-list-early @@ -2,7 +2,6 @@ # Copyright 2005 Robin H. Johnson <robbat2@orbis-terrarum.net> # Distributed under the terms of the GNU General Public License v2 - depend() { after checkroot # this should start as early as possible @@ -12,7 +11,7 @@ depend() { start() { # force reading - source /etc/conf.d/readahead-list + . /etc/conf.d/readahead-list f="${READAHEAD_LIST_call_early}" ebegin "readahead(2): ${f}" /sbin/readahead-list ${f} diff --git a/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc-4.3.patch b/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc-4.3.patch deleted file mode 100644 index ccee025dcbf8..000000000000 --- a/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc-4.3.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- a/src/filelist-order.cxx -+++ b/src/filelist-order.cxx -@@ -19,6 +19,7 @@ - #include <iostream> - #include <fstream> - #include <vector> -+#include <cstdlib> - - #include <assert.h> - #include <string.h> diff --git a/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc6.patch b/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc6.patch deleted file mode 100644 index a987e4aa767d..000000000000 --- a/sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc6.patch +++ /dev/null @@ -1,15 +0,0 @@ -filelist-order.cxx:276:37: error: unable to find string literal operator ‘operator""fmt’ with ‘const char [3]’, ‘long unsigned int’ arguments - -https://bugs.gentoo.org/594092 - ---- a/src/filelist-order.cxx -+++ b/src/filelist-order.cxx -@@ -273,7 +273,7 @@ void printItem(PAIR_COMPLETE_TYPE p,vector <OrderField*> *ofa) { - continue; - } - OrderField of = *ofp; --#define case_entry(fmt,func) printf("%s"fmt,(first ? "" : " "),func_##func(mk)); break; -+#define case_entry(fmt,func) printf("%s" fmt,(first ? "" : " "),func_##func(mk)); break; - switch(of.type) { - case ST_DEV: case_entry("%lld",ST_DEV); - case ST_INO: case_entry("%lld",ST_INO); diff --git a/sys-apps/readahead-list/readahead-list-1.20060421.1016-r3.ebuild b/sys-apps/readahead-list/readahead-list-1.20060421.1016-r4.ebuild index f75dd67ab1d3..1c06ff2d1e17 100644 --- a/sys-apps/readahead-list/readahead-list-1.20060421.1016-r3.ebuild +++ b/sys-apps/readahead-list/readahead-list-1.20060421.1016-r4.ebuild @@ -1,11 +1,14 @@ -# Copyright 1999-2021 Gentoo Authors +# Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=8 + +inherit autotools DESCRIPTION="Preloads files into the page cache to accelerate program loading" HOMEPAGE="https://github.com/robbat2/readahead-list" SRC_URI="mirror://gentoo/${P}.tar.bz2" + LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 ppc x86" @@ -14,10 +17,16 @@ IUSE="doc" DEPEND="virtual/os-headers" PATCHES=( - "${FILESDIR}/${P}-gcc-4.3.patch" - "${FILESDIR}/${P}-gcc6.patch" + "${FILESDIR}/1.20060421.1016/" ) +src_prepare() { + default + + # Drop once ${P}-modernisation.patch is in a release + eautoreconf +} + src_configure() { econf --sbindir=/sbin } @@ -25,33 +34,37 @@ src_configure() { src_install() { default - # init scripts - #cd "${S}/contrib/init/gentoo/" + # Init scripts + #cd "${S}/contrib/init/gentoo" || die + #newinitd init.d-readahead-list readahead-list + #newinitd init.d-readahead-list-early readahead-list-early + #newconfd conf.d-readahead-list readahead-list newinitd "${FILESDIR}"/init.d-readahead-list readahead-list newinitd "${FILESDIR}"/init.d-readahead-list-early readahead-list-early newconfd "${FILESDIR}"/conf.d-readahead-list readahead-list - # default config + # Default config insinto /etc/readahead-list - cd "${S}/contrib/data" + cd "${S}/contrib/data" || die newins readahead.runlevel-default.list runlevel-default newins readahead.runlevel-boot.list runlevel-boot newins readahead._sbin_rc.list exec_sbin_rc # docs - cd "${S}" + cd "${S}" || die if use doc; then docinto scripts dodoc contrib/scripts/* fi - # clean up a bit - find "${D}/usr/share/doc/${PF}/" -type f -name 'Makefile*' -exec rm -f \{\} \; + + # Clean up a bit + find "${ED}/usr/share/doc/${PF}/" -type f -name 'Makefile*' -exec rm -f \{\} \; } pkg_postinst() { einfo "You should add readahead-list to your runlevels:" einfo " rc-update add readahead-list-early boot" einfo " rc-update add readahead-list boot" - einfo "Also consider customizing the lists in /etc/readahead-list" + einfo "Also consider customizing the lists in ${EROOT}/etc/readahead-list" einfo "for maximum performance gain." } |