public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/prefix:master commit in: sys-apps/preload/, sys-apps/preload/files/
@ 2021-05-05  6:38 Fabian Groffen
  0 siblings, 0 replies; only message in thread
From: Fabian Groffen @ 2021-05-05  6:38 UTC (permalink / raw
  To: gentoo-commits

commit:     3d7518c7ed073b5200a49b168e7cd76e35c7de4b
Author:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Wed May  5 06:33:44 2021 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Wed May  5 06:33:44 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=3d7518c7

sys-apps/preload: drop in favour of gx86 version

Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 sys-apps/preload/Manifest                          |  1 -
 sys-apps/preload/files/00-patch-configure.diff     | 15 -----
 ...rly-restart-of-forking-readahead-children.patch | 64 ------------------
 .../0002-Create-short-overlapping-io-bursts.patch  | 29 ---------
 .../files/0003-Fix-wait_for_children-loop.patch    | 27 --------
 sys-apps/preload/files/02-patch-preload_conf.diff  | 21 ------
 .../preload/files/02-patch-preload_sysconfig.diff  | 39 -----------
 sys-apps/preload/files/preload-0.6.3-prefix.patch  | 20 ------
 .../preload-0.6.4-use-help2man-as-usual.patch      | 31 ---------
 .../preload-0.6.4-use-make-dependencies.patch      | 21 ------
 sys-apps/preload/files/preload-0.6.4.init.in       | 50 ---------------
 sys-apps/preload/files/preload-0.6.4.init.in-r1    | 66 -------------------
 sys-apps/preload/files/preload-0.6.4.init.in-r2    | 66 -------------------
 sys-apps/preload/metadata.xml                      | 11 ----
 sys-apps/preload/preload-0.6.4-r3.ebuild           | 75 ----------------------
 15 files changed, 536 deletions(-)

diff --git a/sys-apps/preload/Manifest b/sys-apps/preload/Manifest
deleted file mode 100644
index 99d89a5ed7..0000000000
--- a/sys-apps/preload/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST preload-0.6.4.tar.gz 140750 BLAKE2B 4992d2876bc7109d30551c16933c7b107e548d577faf2f78246bdeb6dfe16a81e09edce3a4f0ce15df346a28b81b730e246c7cba431b3d451ceaf6f48c8757bc SHA512 ffb533059b8c9cd171b0d02d52fc8c9bc45284fb16e12b9698ab74345d0e4f66cee61e17922074f7fbfaa90db254e473f815718fc72a689bb55346fcda9e823c

diff --git a/sys-apps/preload/files/00-patch-configure.diff b/sys-apps/preload/files/00-patch-configure.diff
deleted file mode 100644
index 0fa5feb47b..0000000000
--- a/sys-apps/preload/files/00-patch-configure.diff
+++ /dev/null
@@ -1,15 +0,0 @@
---- configure.ac~	2009-04-15 23:47:52.000000000 +0200
-+++ configure.ac	2010-03-29 17:59:39.000000000 +0200
-@@ -54,9 +54,9 @@
- PKG_CHECK_MODULES(GLIB, glib-2.0 >= 2.14)
- 
- # Directories we need.
--pkgdocdir='${datadir}/doc/'${PACKAGE_NAME}-${PACKAGE_VERSION}
--initddir='${sysconfdir}/rc.d/init.d'
--sysconfigdir='${sysconfdir}/sysconfig'
-+pkgdocdir='${datadir}/doc/'${PF}
-+initddir='${sysconfdir}/init.d'
-+sysconfigdir='${sysconfdir}/conf.d'
- logrotatedir='${sysconfdir}/logrotate.d'
- logdir='${localstatedir}/log'
- subsysdir='${localstatedir}/lock/subsys'

diff --git a/sys-apps/preload/files/0001-Early-restart-of-forking-readahead-children.patch b/sys-apps/preload/files/0001-Early-restart-of-forking-readahead-children.patch
deleted file mode 100644
index 2143ba3cc1..0000000000
--- a/sys-apps/preload/files/0001-Early-restart-of-forking-readahead-children.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-From 63cbd8862714a97c8ef752041dc8c351ba4fae1d Mon Sep 17 00:00:00 2001
-From: Kai Krakow <kai@kaishome.de>
-Date: Mon, 28 Jul 2008 19:50:22 +0200
-Subject: [PATCH] Early restart of forking readahead children
-
-This patch adds ability to wait_for_children() to restart
-forking new readahead children as soon as a slot becomes
-available which should make the effect of parallelism even
-more effective. Previous situation was:
-
-Wait for all children to exit as soon as the high water mark
-was reached. This resulted in 30 processes in peak, wait for
-them to reach 0 processes. Start another 30 processes in
-peak, wait again etc.
-
-New situation is: Start a new process as soon as a previous
-process exited which keeps the peak at 30 processes until
-the readahead list is finished.
-
-This introduces a new parameter to wait_for_children() which
-tells it to leave now more than XY processes running when
-returning.
----
- src/readahead.c |    8 ++++----
- 1 files changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/src/readahead.c b/src/readahead.c
-index c169e81..7617449 100644
---- a/src/readahead.c
-+++ b/src/readahead.c
-@@ -103,10 +103,10 @@ map_block_compare (const preload_map_t **pa, const preload_map_t **pb)
- static int procs = 0;
- 
- static void
--wait_for_children (void)
-+wait_for_children (int maxprocs)
- {
-   /* wait for child processes to terminate */
--  while (procs > 0)
-+  while (procs >= maxprocs)
-     {
-       int status;
-       if (wait (&status) > 0)
-@@ -121,7 +121,7 @@ process_file(const char *path, size_t offset, size_t length)
-   int maxprocs = conf->system.maxprocs;
- 
-   if (procs >= maxprocs)
--    wait_for_children ();
-+    wait_for_children (maxprocs);
- 
-   if (maxprocs > 0)
-     {
-@@ -257,7 +257,7 @@ preload_readahead (preload_map_t **files, int file_count)
-       path = NULL;
-     }
- 
--  wait_for_children ();
-+  wait_for_children (0);
- 
-   return processed;
- }
--- 
-1.5.4.5
-

diff --git a/sys-apps/preload/files/0002-Create-short-overlapping-io-bursts.patch b/sys-apps/preload/files/0002-Create-short-overlapping-io-bursts.patch
deleted file mode 100644
index 20ba67a1bb..0000000000
--- a/sys-apps/preload/files/0002-Create-short-overlapping-io-bursts.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From 97814f566aeb84f60031008c3dda5457ba176fe7 Mon Sep 17 00:00:00 2001
-From: Kai Krakow <kai@kaishome.de>
-Date: Mon, 28 Jul 2008 20:57:06 +0200
-Subject: [PATCH] Create short overlapping io bursts
-
-Modify the wait_for_children() mechanism to create short
-burst instead of constant flow of new io requests. This
-is more fair and should enable the kernel to rearrange
-io requests better.
----
- src/readahead.c |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/src/readahead.c b/src/readahead.c
-index 7617449..466961d 100644
---- a/src/readahead.c
-+++ b/src/readahead.c
-@@ -121,7 +121,7 @@ process_file(const char *path, size_t offset, size_t length)
-   int maxprocs = conf->system.maxprocs;
- 
-   if (procs >= maxprocs)
--    wait_for_children (maxprocs);
-+    wait_for_children (maxprocs >> 1);
- 
-   if (maxprocs > 0)
-     {
--- 
-1.5.4.5
-

diff --git a/sys-apps/preload/files/0003-Fix-wait_for_children-loop.patch b/sys-apps/preload/files/0003-Fix-wait_for_children-loop.patch
deleted file mode 100644
index dc37548638..0000000000
--- a/sys-apps/preload/files/0003-Fix-wait_for_children-loop.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-From 536714622135e53db3f8a5673db32c5de9620aa8 Mon Sep 17 00:00:00 2001
-From: Kai Krakow <kai@kaishome.de>
-Date: Tue, 29 Jul 2008 08:15:55 +0200
-Subject: [PATCH] Fix wait_for_children() loop
-
-Brain damage repaired: One should not wait while zero or
-more children exist... That's always the case. :-(
----
- src/readahead.c |    2 +-
- 1 files changed, 1 insertions(+), 1 deletions(-)
-
-diff --git a/src/readahead.c b/src/readahead.c
-index 466961d..08d9f4f 100644
---- a/src/readahead.c
-+++ b/src/readahead.c
-@@ -106,7 +106,7 @@ static void
- wait_for_children (int maxprocs)
- {
-   /* wait for child processes to terminate */
--  while (procs >= maxprocs)
-+  while (procs > maxprocs)
-     {
-       int status;
-       if (wait (&status) > 0)
--- 
-1.5.4.5
-

diff --git a/sys-apps/preload/files/02-patch-preload_conf.diff b/sys-apps/preload/files/02-patch-preload_conf.diff
deleted file mode 100644
index 70055c3bbb..0000000000
--- a/sys-apps/preload/files/02-patch-preload_conf.diff
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -urN preload-0.6.orig/src/preload.conf.in preload-0.6/src/preload.conf.in
---- preload-0.6.orig/src/preload.conf.in	2008-07-24 02:02:11.000000000 +0200
-+++ preload-0.6/src/preload.conf.in	2008-07-24 16:32:28.565184094 +0200
-@@ -132,7 +132,7 @@
- # preload doesn't special-handle device files internally.
- #
- # default: (empty list, accept all)
--mapprefix = /usr/;/lib;/var/cache/;!/
-+mapprefix = /usr/;/lib;/var/cache/;/opt/;/home/;!/
- 
- # exeprefix:
- #
-@@ -141,7 +141,7 @@
- # files instead of maps.
- #
- # default: (empty list, accept all)
--exeprefix = !/usr/sbin/;!/usr/local/sbin/;/usr/;!/
-+exeprefix = !/usr/sbin/;!/usr/local/sbin/;/usr/;/opt/;/usr/libexec/;!/
- 
- # maxprocs
- #

diff --git a/sys-apps/preload/files/02-patch-preload_sysconfig.diff b/sys-apps/preload/files/02-patch-preload_sysconfig.diff
deleted file mode 100644
index 2a8e14525b..0000000000
--- a/sys-apps/preload/files/02-patch-preload_sysconfig.diff
+++ /dev/null
@@ -1,39 +0,0 @@
-diff -urN preload-0.6.4.orig/preload.sysconfig preload-0.6.4/preload.sysconfig
---- preload-0.6.4.orig/preload.sysconfig	2008-10-23 03:08:20.000000000 +0200
-+++ preload-0.6.4/preload.sysconfig	2009-05-01 13:51:03.493828659 +0200
-@@ -1,10 +1,30 @@
-+# Copyright 1999-2008 Gentoo Foundation
-+# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/files/02-patch-preload_sysconfig.diff,v 1.1 2009/05/20 02:58:30 darkside Exp $
-+# preload configuration file
-+
-+PIDFILE="/var/run/preload.pid"
-+
-+# verbosity. 0-10, Default is 1.
-+#PRELOAD_VERBOSITY="1"
-+
-+# set this for niceness. Default is 15. Valid ranges are from -20 to 19. See
-+# nice(1) man page.
-+#PRELOAD_NICE="15"
-+
-+# log file (default is /var/log/preload.log )
-+#PRELOAD_LOGFILE="/var/log/preload.log"
-+
-+# preload state file (default location is /var/lib/preload/preload.state )
-+# Empty (commented out) means no state is saved.
-+PRELOAD_STATEFILE="/var/lib/preload/preload.state"
-+
- # Miminum memory that the system should have for preload to be launched.
--# In megabytes.
--MIN_MEMORY="256"
-+# In megabytes. Currently unused.
-+#MIN_MEMORY="256"
- 
- # Command-line arguments to pass to the daemon.  Read preload(8) man page
- # for available options.
--PRELOAD_OPTS="--verbose 1"
-+#PRELOAD_OPTS="--verbose 1"
- 
--# Option to call ionice with.  Leave empty to skip ionice.
--IONICE_OPTS="-c3"
-+# Option to call ionice with.  Leave empty to use defaults.
-+#IONICE_OPTS="-c3"

diff --git a/sys-apps/preload/files/preload-0.6.3-prefix.patch b/sys-apps/preload/files/preload-0.6.3-prefix.patch
deleted file mode 100644
index 8adf9be9ff..0000000000
--- a/sys-apps/preload/files/preload-0.6.3-prefix.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- src/preload.conf.in.orig	2008-10-27 10:23:14.000000000 -0500
-+++ src/preload.conf.in	2008-10-27 10:24:25.000000000 -0500
-@@ -132,7 +132,7 @@
- # preload doesn't special-handle device files internally.
- #
- # default: (empty list, accept all)
--mapprefix = /usr;/lib;/lib64;/lib32;/opt;/var/cache;!/
-+mapprefix = @GENTOO_PORTAGE_EPREFIX@/usr;@GENTOO_PORTAGE_EPREFIX@/lib;@GENTOO_PORTAGE_EPREFIX@/lib64;@GENTOO_PORTAGE_EPREFIX@/lib32;@GENTOO_PORTAGE_EPREFIX@/opt;@GENTOO_PORTAGE_EPREFIX@/var/cache;!/
- 
- # exeprefix:
- #
-@@ -141,7 +141,7 @@
- # files instead of maps.
- #
- # default: (empty list, accept all)
--exeprefix = !/usr/sbin;!/usr/local/sbin;/usr;/opt;!/
-+exeprefix = !@GENTOO_PORTAGE_EPREFIX@/usr/sbin;!@GENTOO_PORTAGE_EPREFIX@/usr/local/sbin;@GENTOO_PORTAGE_EPREFIX@/usr;@GENTOO_PORTAGE_EPREFIX@/opt;!@GENTOO_PORTAGE_EPREFIX@/
- 
- # maxprocs
- #

diff --git a/sys-apps/preload/files/preload-0.6.4-use-help2man-as-usual.patch b/sys-apps/preload/files/preload-0.6.4-use-help2man-as-usual.patch
deleted file mode 100644
index 61db506925..0000000000
--- a/sys-apps/preload/files/preload-0.6.4-use-help2man-as-usual.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- src/Makefile.am~	2009-04-15 23:46:04.000000000 +0200
-+++ src/Makefile.am	2010-04-09 12:56:45.000000000 +0200
-@@ -54,23 +54,11 @@
- 
- dist_man_MANS = preload.8
- 
--$(srcdir)/preload.8: cmdline.c ../configure.ac preload.8.i
--	$(MAKE) $(AM_MAKEFLAGS) preload
--	@echo "Creating $@ using help2man(1)"
--	@$(top_builddir)/missing --run \
--	   help2man --no-info --section=8 --include=preload.8.i \
--	   	    --help-option="-H" --output="$@.tmp" \
--		    --name 'Adaptive readahead daemon' ./preload \
--	 && mv "$@.tmp" "$@" \
--	  || ($(RM) "$@"; \
--	      echo Failed to update preload.8, the man page may be outdated >&2; \
--	      (test -f "$@" || echo help2man is required to generate this file. >> "$@"));
--
--install-data-hook:
--	@cd "$(DESTDIR)$(man8dir)" && gzip -c preload.8 > preload.8.gz.tmp && mv preload.8.gz.tmp preload.8.gz && $(RM) preload.8
--
--uninstall-hook:
--	$(RM) "$(DESTDIR)$(man8dir)/preload.8.gz"
-+preload.8: preload preload.8.i
-+	help2man \
-+		--no-info --section=8 --include=preload.8.i \
-+		--help-option="-H" --output="$@" \
-+		--name 'Adaptive readahead daemon' ./preload
- 
- ######################################################################
- 

diff --git a/sys-apps/preload/files/preload-0.6.4-use-make-dependencies.patch b/sys-apps/preload/files/preload-0.6.4-use-make-dependencies.patch
deleted file mode 100644
index 0f41780c31..0000000000
--- a/sys-apps/preload/files/preload-0.6.4-use-make-dependencies.patch
+++ /dev/null
@@ -1,21 +0,0 @@
---- src/Makefile.am~	2010-04-09 12:56:45.000000000 +0200
-+++ src/Makefile.am	2010-04-09 12:58:36.000000000 +0200
-@@ -8,8 +8,6 @@
- 		-DLOGDIR='"${logdir}"'	\
- 		-DPKGLOCALSTATEDIR='"${pkglocalstatedir}"'
- 
--preload.o cmdline.o preload.8: Makefile
--
- sbin_PROGRAMS = preload
- 
- preload_SOURCES =	\
-@@ -64,8 +62,7 @@
- 
- MAINTAINERCLEANFILES += preload.conf.debug
- 
--preload.conf.debug:
--	$(MAKE) $(AM_MAKEFLAGS) preload.conf
-+preload.conf.debug: preload.conf
- 	cp preload.conf preload.conf.debug
- 
- RUNPREQ = preload preload.conf.debug

diff --git a/sys-apps/preload/files/preload-0.6.4.init.in b/sys-apps/preload/files/preload-0.6.4.init.in
deleted file mode 100644
index 664cc9b099..0000000000
--- a/sys-apps/preload/files/preload-0.6.4.init.in
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/sbin/runscript
-
-PIDFILE="/var/run/@PACKAGE@.pid"
-
-depend() {
-	after localmount
-	use netmount ntpd
-}
-
-dump() {
-	ebegin "Dumping config and state for @PACKAGE@"
-	kill -USR1 $(<${PIDFILE})
-	kill -USR2 $(<${PIDFILE})
-	eend $?
-}
-
-reload() {
-	ebegin "Reloading @PACKAGE@"
-	kill -HUP $(<${PIDFILE})
-	eend $?
-}
-
-start() {
-	ebegin "Starting @PACKAGE@"
-
-	#MIN_MEMORY=${MIN_MEMORY:-256}
-	# Check for > MIN_MEMORY MB
-	#free -m | awk '/Mem:/ {exit ($2 >= ('"$MIN_MEMORY"'))?0:1}' || exit 0
-
-	# IMPORTANT: Let ssd do the backgrounding so we immediatly get a valid
-	# pid file in the next step (ionice)
-	start-stop-daemon --start --quiet --background \
-		--make-pidfile --pidfile ${PIDFILE} \
-		--exec @sbindir@/@PACKAGE@ -- \
-		-l ${PRELOAD_LOGFILE:-/var/log/preload.log} -V ${PRELOAD_VERBOSITY:-1} \
-		-n ${PRELOAD_NICE:-15} -s ${PRELOAD_STATEFILE:-""} ${PRELOAD_OPTS} -f
-
-	IONICE=$(which ionice)
-	if [ -x "$IONICE" ]; then
-		IONICE_OPTS=${IONICE_OPTS:--c3}
-		$IONICE ${IONICE_OPTS} -p$(<${PIDFILE})
-	fi
-	eend $?
-}
-
-stop() {
-	ebegin "Stopping @PACKAGE@ (this may take while)"
-	start-stop-daemon --stop --retry 120 --quiet --pidfile ${PIDFILE}
-	eend $?
-}

diff --git a/sys-apps/preload/files/preload-0.6.4.init.in-r1 b/sys-apps/preload/files/preload-0.6.4.init.in-r1
deleted file mode 100755
index 8a63519407..0000000000
--- a/sys-apps/preload/files/preload-0.6.4.init.in-r1
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/sbin/runscript
-
-description='Start/stop the preload daemon'
-extra_started_commands='dump reload'
-description_dump='Dump the config and state of the daemon (to the logfile)'
-description_reload='Reload the daemon'
-
-PIDFILE="/var/run/preload.pid"
-
-depend() {
-	after localmount
-	use netmount ntpd
-}
-
-dump() {
-	local pid
-	pid=$(cat ${PIDFILE})
-
-	ebegin "Dumping the config and state of preload"
-	if [ -n "${pid}" ]; then
-		kill -USR1 ${pid}
-		kill -USR2 ${pid}
-	fi
-	eend ${?} && \
-	einfo "These should have been written to ${PRELOAD_LOGFILE:-/var/log/preload.log}"
-}
-
-reload() {
-	ebegin "Reloading preload"
-	kill -HUP $(cat ${PIDFILE})
-	eend ${?}
-}
-
-start() {
-	local ionice
-
-	ebegin "Starting preload"
-
-	#MIN_MEMORY=${MIN_MEMORY:-256}
-	# Check for > MIN_MEMORY MB
-	#free -m | awk '/Mem:/ {exit ($2 >= ('"$MIN_MEMORY"'))?0:1}' || exit 0
-
-	# First try to start with ionice; if that fails, try without.
-	for ionice in "ionice ${IONICE_OPTS:--c3}" ''; do
-		# Avoid 'ionice not found' errors
-		${ionice:-true} >/dev/null 2>&1 || continue
-
-		${ionice} start-stop-daemon --start --quiet --background \
-			--make-pidfile --pidfile ${PIDFILE} \
-			--exec /usr/sbin/preload -- \
-			-l ${PRELOAD_LOGFILE:-/var/log/preload.log} \
-			-V ${PRELOAD_VERBOSITY:-1} \
-			-n ${PRELOAD_NICE:-15} \
-			-s ${PRELOAD_STATEFILE:-""} \
-			${PRELOAD_OPTS} -f \
-			&& break
-	done
-
-	eend ${?}
-}
-
-stop() {
-	ebegin "Stopping preload (this may take a while)"
-	start-stop-daemon --stop --retry 120 --quiet --pidfile ${PIDFILE}
-	eend ${?}
-}

diff --git a/sys-apps/preload/files/preload-0.6.4.init.in-r2 b/sys-apps/preload/files/preload-0.6.4.init.in-r2
deleted file mode 100755
index bf1b18e535..0000000000
--- a/sys-apps/preload/files/preload-0.6.4.init.in-r2
+++ /dev/null
@@ -1,66 +0,0 @@
-#!/sbin/runscript
-
-description='Start/stop the preload daemon'
-extra_started_commands='dump reload'
-description_dump='Dump the config and state of the daemon (to the logfile)'
-description_reload='Reload the daemon'
-
-PIDFILE="/var/run/preload.pid"
-
-depend() {
-	after localmount
-	use netmount ntpd
-}
-
-dump() {
-	local pid
-	pid=$(cat ${PIDFILE})
-
-	ebegin "Dumping the config and state of preload"
-	if [ -n "${pid}" ]; then
-		kill -USR1 ${pid}
-		kill -USR2 ${pid}
-	fi
-	eend ${?} && \
-	einfo "These should have been written to ${PRELOAD_LOGFILE:-/var/log/preload.log}"
-}
-
-reload() {
-	ebegin "Reloading preload"
-	kill -HUP $(cat ${PIDFILE})
-	eend ${?}
-}
-
-start() {
-	local ionice
-
-	ebegin "Starting preload"
-
-	#MIN_MEMORY=${MIN_MEMORY:-256}
-	# Check for > MIN_MEMORY MB
-	#free -m | awk '/Mem:/ {exit ($2 >= ('"$MIN_MEMORY"'))?0:1}' || exit 0
-
-	# First try to start with ionice; if that fails, try without.
-	for ionice in "ionice ${IONICE_OPTS:--c3}" ''; do
-		# Avoid 'ionice not found' errors
-		${ionice} true >/dev/null 2>&1 || continue
-
-		${ionice} start-stop-daemon --start --quiet --background \
-			--make-pidfile --pidfile ${PIDFILE} \
-			--exec /usr/sbin/preload -- \
-			-l ${PRELOAD_LOGFILE:-/var/log/preload.log} \
-			-V ${PRELOAD_VERBOSITY:-1} \
-			-n ${PRELOAD_NICE:-15} \
-			-s ${PRELOAD_STATEFILE:-""} \
-			${PRELOAD_OPTS} -f \
-			&& break
-	done
-
-	eend ${?}
-}
-
-stop() {
-	ebegin "Stopping preload (this may take a while)"
-	start-stop-daemon --stop --retry 120 --quiet --pidfile ${PIDFILE}
-	eend ${?}
-}

diff --git a/sys-apps/preload/metadata.xml b/sys-apps/preload/metadata.xml
deleted file mode 100644
index 163e9241a8..0000000000
--- a/sys-apps/preload/metadata.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-  <maintainer type="person">
-    <email>pacho@gentoo.org</email>
-  </maintainer>
-  <longdescription> preload is an adaptive readahead daemon. It monitors applications that users run, and by analyzing this data, predicts what applications users might run, and fetches those binaries and their dependencies into memory for faster startup times. </longdescription>
-  <upstream>
-    <remote-id type="sourceforge">preload</remote-id>
-  </upstream>
-</pkgmetadata>

diff --git a/sys-apps/preload/preload-0.6.4-r3.ebuild b/sys-apps/preload/preload-0.6.4-r3.ebuild
deleted file mode 100644
index 4167ff18a7..0000000000
--- a/sys-apps/preload/preload-0.6.4-r3.ebuild
+++ /dev/null
@@ -1,75 +0,0 @@
-# Copyright 1999-2012 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/preload/preload-0.6.4-r3.ebuild,v 1.1 2012/09/14 19:15:00 pacho Exp $
-
-EAPI=4
-inherit eutils autotools prefix
-
-DESCRIPTION="Adaptive readahead daemon."
-HOMEPAGE="http://sourceforge.net/projects/preload/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64-linux ~x86-linux"
-IUSE="vanilla"
-
-WANT_AUTOCONF="2.56"
-
-RDEPEND=">=dev-libs/glib-2.6:2"
-DEPEND="${RDEPEND}
-	virtual/pkgconfig
-	sys-apps/help2man"
-
-src_prepare() {
-	epatch "${FILESDIR}"/00-patch-configure.diff
-	epatch "${FILESDIR}"/02-patch-preload_conf.diff
-	epatch "${FILESDIR}"/02-patch-preload_sysconfig.diff
-	epatch "${FILESDIR}"/${PN}-0.6.4-use-help2man-as-usual.patch
-	epatch "${FILESDIR}"/${PN}-0.6.4-use-make-dependencies.patch
-	use vanilla || epatch "${FILESDIR}"/000{1,2,3}-*.patch
-	cat "${FILESDIR}"/preload-0.6.4.init.in-r2 > preload.init.in || die
-
-	# Prefix patch
-	epatch "${FILESDIR}/${PN}-0.6.3-prefix.patch"
-	eprefixify src/preload.conf.in
-
-	eautoreconf
-}
-
-src_configure() {
-	econf --localstatedir="${EPREFIX}/var"
-}
-
-src_install() {
-	default
-
-	# Remove log and state file from image or they will be
-	# truncated during merge
-	rm "${ED}"/var/lib/preload/preload.state || die "cleanup failed"
-	rm "${ED}"/var/log/preload.log || die "cleanup failed"
-	keepdir /var/lib/preload
-	keepdir /var/log
-	newinitd "${FILESDIR}/init.d-preload" preload || die "initd failed"
-	newconfd "${FILESDIR}/conf.d-preload" preload || die "confd failed"
-	dodoc AUTHORS ChangeLog NEWS README THANKS TODO
-}
-
-pkg_postinst() {
-	if use !prefix; then
-	if [ "$(rc-config list default | grep preload)" = "" ] ; then
-		elog "You probably want to add preload to the default runlevel like so:"
-		elog "# rc-update add preload default"
-	fi
-	else
-		elog "In prefix, you will have to start preload on the command line"
-	fi	
-
-	if has_version sys-fs/e4rat; then
-		elog "It appears you have sys-fs/e4rat installed. This may"
-		elog "has negative effects on it. You may want to disable preload"
-		elog "when using sys-fs/e4rat."
-		elog "http://e4rat.sourceforge.net/wiki/index.php/Main_Page#Debian.2FUbuntu"
-
-	fi
-}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-05-05  6:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-05  6:38 [gentoo-commits] repo/proj/prefix:master commit in: sys-apps/preload/, sys-apps/preload/files/ Fabian Groffen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox