app-admin/tmpreaper: drop 1.6.14

Signed-off-by: Henning Schild <henning@hennsch.de>
Closes: https://github.com/gentoo/gentoo/pull/38014
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Henning Schild
2024-08-08 09:24:45 +02:00
committed by Arthur Zamarin
parent 0c91f5bbf5
commit 0cf95274eb
3 changed files with 0 additions and 90 deletions

View File

@@ -1,2 +1 @@
DIST tmpreaper_1.6.14.tar.gz 158981 BLAKE2B 1c9ec124c6e57c0aab5d555594950dda37f06a6404a0d111da05be7a48bf6141e09e942c090d3f79ccf855f958a7b32f0d64c73da68b412da74465e39bdb72ae SHA512 e78fab0cd2cc8c851e2806be70c102697bff86230e181bfad1c76b15fe5455fb431bc0dd16bebf77a2e9bb64b5f5a1474d24254ff780d4d72d343ea0e6e30ccb
DIST tmpreaper_1.6.17.tar.gz 158894 BLAKE2B 537e8020a9db4adc9dee5b967e89242573d340c8b1d3540ab2de76d9a74bae391ff398d19b71c4017bde04716f01f8958bb73957215b1b44628e5ae7ad805f8b SHA512 8272cb0232f8188f8ad45be40442b686d18bbf508dcd440d3f901f4dbf7d17e05da91ee3bfa5d23d163041fdb08de81d525ac45945f10bc7ff886ac468fc4ce0

View File

@@ -1,46 +0,0 @@
--- tmpreaper-1.6.13+nmu1/tmpreaper.c.orig 2006-12-05 10:55:58.000000000 -0800
+++ tmpreaper-1.6.13+nmu1/tmpreaper.c 2006-12-05 10:56:46.000000000 -0800
@@ -467,6 +467,21 @@
continue;
}
+ if (FLAGS_PROTECT_P (flags)) {
+ skip = i = 0;
+ do {
+ if (sb.st_ino == protect_table[i].inode) {
+ message (LOG_VERBOSE,
+ "Entry matching `--protect' pattern skipped. `%s'\n",
+ protect_table[i].name);
+ skip = 1;
+ break;
+ }
+ } while (protect_table[i++].name);
+ if (skip)
+ continue;
+ }
+
if (S_ISDIR (sb.st_mode)) {
char *dst;
@@ -489,21 +504,6 @@
(u_int) getpid(), ent->d_name);
}
- if (FLAGS_PROTECT_P (flags)) {
- skip = i = 0;
- do {
- if (sb.st_ino == protect_table[i].inode) {
- message (LOG_VERBOSE,
- "Entry matching `--protect' pattern skipped. `%s'\n",
- protect_table[i].name);
- skip = 1;
- break;
- }
- } while (protect_table[i++].name);
- if (skip)
- continue;
- }
-
/* Decide whether to remove the file or not */
/* check for mtime on directory instead of atime if requested */
if ( FLAGS_MTIME_P(flags) ||

View File

@@ -1,43 +0,0 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="A utility for removing files based on when they were last accessed"
HOMEPAGE="https://packages.debian.org/sid/tmpreaper"
SRC_URI="mirror://debian/pool/main/t/${PN}/${PN}_${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~arm ~arm64 ppc ~ppc64 x86"
IUSE=""
DEPEND="sys-apps/util-linux
sys-fs/e2fsprogs"
RDEPEND=""
# fix protect patch from debian bug 636459
PATCHES=(
"${FILESDIR}"/${PN}-1.6.13-fix-protect.patch
"${FILESDIR}"/${PN}-1.6.13-gentoo.patch
)
src_install() {
emake DESTDIR="${D}" install
insinto /etc
doins debian/tmpreaper.conf
exeinto /etc/cron.daily
newexe debian/cron.daily tmpreaper
doman debian/tmpreaper.conf.5
dodoc README debian/changelog debian/README*
}
pkg_postinst() {
elog "This package installs a cron script under /etc/cron.daily"
elog "You can configure it using /etc/tmpreaper.conf"
elog "Consult tmpreaper.conf man page for more information"
elog "Read /usr/share/doc/${P}/README.security and"
elog "remove SHOWWARNING from /etc/tmpreaper.conf afterwards"
}