diff options
author | Stefan Schweizer <genstef@gentoo.org> | 2007-06-07 15:05:30 +0000 |
---|---|---|
committer | Stefan Schweizer <genstef@gentoo.org> | 2007-06-07 15:05:30 +0000 |
commit | 0076685c059bdb62cd0248c25f425631f73f01c1 (patch) | |
tree | 43e88c21985c87e1fe0f4f40cb15d79461927170 /app-admin/tmpreaper | |
parent | Fixed typo, fixes bug 181177. (diff) | |
download | gentoo-2-0076685c059bdb62cd0248c25f425631f73f01c1.tar.gz gentoo-2-0076685c059bdb62cd0248c25f425631f73f01c1.tar.bz2 gentoo-2-0076685c059bdb62cd0248c25f425631f73f01c1.zip |
New ebuild for bug 178254
(Portage version: 2.1.2.7)
Diffstat (limited to 'app-admin/tmpreaper')
-rw-r--r-- | app-admin/tmpreaper/ChangeLog | 8 | ||||
-rw-r--r-- | app-admin/tmpreaper/files/digest-tmpreaper-1.6.7 | 3 | ||||
-rw-r--r-- | app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch | 46 | ||||
-rw-r--r-- | app-admin/tmpreaper/tmpreaper-1.6.7.ebuild | 27 |
4 files changed, 83 insertions, 1 deletions
diff --git a/app-admin/tmpreaper/ChangeLog b/app-admin/tmpreaper/ChangeLog index 0f5e7167a7fc..4e0c869a4f54 100644 --- a/app-admin/tmpreaper/ChangeLog +++ b/app-admin/tmpreaper/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-admin/tmpreaper # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/tmpreaper/ChangeLog,v 1.13 2007/03/19 02:06:43 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/tmpreaper/ChangeLog,v 1.14 2007/06/07 15:05:30 genstef Exp $ + +*tmpreaper-1.6.7 (07 Jun 2007) + + 07 Jun 2007; Ali Polatel (hawking) <polatel@gmail.com> + +files/tmpreaper-1.6.7-fix-protect.patch, +tmpreaper-1.6.7.ebuild: + New ebuild for bug 178254 19 Mar 2007; Bryan Østergaard <kloeri@gentoo.org> metadata.xml: Remove ka0ttic from metadata.xml due to retirement. diff --git a/app-admin/tmpreaper/files/digest-tmpreaper-1.6.7 b/app-admin/tmpreaper/files/digest-tmpreaper-1.6.7 new file mode 100644 index 000000000000..dedfc6a2536c --- /dev/null +++ b/app-admin/tmpreaper/files/digest-tmpreaper-1.6.7 @@ -0,0 +1,3 @@ +MD5 dc15b160a8d58be5a784d17e42ebdc15 tmpreaper_1.6.7.tar.gz 120095 +RMD160 849c65973c1e51ee35f72c38cd2b4359f30c64bd tmpreaper_1.6.7.tar.gz 120095 +SHA256 64736b3c7fe4c947dd85c2bd82d8e3cb79c3acd69acb3b008b03906553b8b1a6 tmpreaper_1.6.7.tar.gz 120095 diff --git a/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch b/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch new file mode 100644 index 000000000000..a76c80dd5fc7 --- /dev/null +++ b/app-admin/tmpreaper/files/tmpreaper-1.6.7-fix-protect.patch @@ -0,0 +1,46 @@ +--- tmpreaper.c.orig 2006-12-05 10:55:58.000000000 -0800 ++++ 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) || diff --git a/app-admin/tmpreaper/tmpreaper-1.6.7.ebuild b/app-admin/tmpreaper/tmpreaper-1.6.7.ebuild new file mode 100644 index 000000000000..b03d479e6758 --- /dev/null +++ b/app-admin/tmpreaper/tmpreaper-1.6.7.ebuild @@ -0,0 +1,27 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/tmpreaper/tmpreaper-1.6.7.ebuild,v 1.1 2007/06/07 15:05:30 genstef Exp $ + +inherit eutils + +DESCRIPTION="A utility for removing files based on when they were last accessed" +HOMEPAGE="http://packages.debian.org/stable/admin/tmpreaper.html" +SRC_URI="mirror://debian/pool/main/t/${PN}/${PN}_${PV}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="" + +DEPEND="" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-fix-protect.patch" +} + +src_install() { + make DESTDIR="${D}" install || die "make install failed" + dodoc README ChangeLog debian/{cron.daily,tmpreaper.conf,README*} +} |