diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2004-03-27 00:27:27 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2004-03-27 00:27:27 +0000 |
commit | be1a252e9fa66931477b951708f49bcd34c2ce98 (patch) | |
tree | 03c2344bc2015c6a4e95c7fccdf12a3d06f645a5 /sys-libs | |
parent | Version bump. Closes bug #45731 and updates the SPARC configuration scripts. (diff) | |
download | gentoo-2-be1a252e9fa66931477b951708f49bcd34c2ce98.tar.gz gentoo-2-be1a252e9fa66931477b951708f49bcd34c2ce98.tar.bz2 gentoo-2-be1a252e9fa66931477b951708f49bcd34c2ce98.zip |
Initial import. Bug #17615.
Diffstat (limited to 'sys-libs')
-rw-r--r-- | sys-libs/libtrash/ChangeLog | 9 | ||||
-rw-r--r-- | sys-libs/libtrash/Manifest | 5 | ||||
-rw-r--r-- | sys-libs/libtrash/files/cleanTrash.cron | 12 | ||||
-rw-r--r-- | sys-libs/libtrash/files/digest-libtrash-2.2 | 1 | ||||
-rw-r--r-- | sys-libs/libtrash/files/libtrash-2.2-gentoo.patch | 87 | ||||
-rw-r--r-- | sys-libs/libtrash/libtrash-2.2.ebuild | 51 | ||||
-rw-r--r-- | sys-libs/libtrash/metadata.xml | 7 |
7 files changed, 172 insertions, 0 deletions
diff --git a/sys-libs/libtrash/ChangeLog b/sys-libs/libtrash/ChangeLog new file mode 100644 index 000000000000..691e212e3ac7 --- /dev/null +++ b/sys-libs/libtrash/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for sys-libs/libtrash +# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtrash/ChangeLog,v 1.1 2004/03/27 00:27:27 matsuu Exp $ + +*libtrash-2.2 (27 Mar 2004) + + 27 Mar 2004; <matsuu@gentoo.org> libtrash-2.2.ebuild: + Initial import. Bugs #17615. + diff --git a/sys-libs/libtrash/Manifest b/sys-libs/libtrash/Manifest new file mode 100644 index 000000000000..aecb417f31a0 --- /dev/null +++ b/sys-libs/libtrash/Manifest @@ -0,0 +1,5 @@ +MD5 9f100727fd4d8b8ed1dc90539d1062d0 libtrash-2.2.ebuild 1154 +MD5 fba61a0991c764c1dcee2644e52ea06a ChangeLog 243 +MD5 8600c86ec08b5db06b59aa2a2e0ec2a3 files/digest-libtrash-2.2 60 +MD5 a165552d7dee01c2d7bbf914ae701cba files/cleanTrash.cron 200 +MD5 02701c7978b919cf96660c80a3ff1a82 files/libtrash-2.2-gentoo.patch 2708 diff --git a/sys-libs/libtrash/files/cleanTrash.cron b/sys-libs/libtrash/files/cleanTrash.cron new file mode 100644 index 000000000000..e9686119ac44 --- /dev/null +++ b/sys-libs/libtrash/files/cleanTrash.cron @@ -0,0 +1,12 @@ +#!/bin/sh +# +# Uncomment the following if you want +# your Trash cleaned out regularly. +# +# This is part of the libtrash package. +# + +#if [ -x /usr/sbin/ct2.pl ] +#then +# /usr/sbin/ct2.pl > /dev/null +#fi diff --git a/sys-libs/libtrash/files/digest-libtrash-2.2 b/sys-libs/libtrash/files/digest-libtrash-2.2 new file mode 100644 index 000000000000..ef18444c88a9 --- /dev/null +++ b/sys-libs/libtrash/files/digest-libtrash-2.2 @@ -0,0 +1 @@ +MD5 8285c8c9bb45b2472dcf301a34c1d46f libtrash-2.2.tgz 89001 diff --git a/sys-libs/libtrash/files/libtrash-2.2-gentoo.patch b/sys-libs/libtrash/files/libtrash-2.2-gentoo.patch new file mode 100644 index 000000000000..18379151241c --- /dev/null +++ b/sys-libs/libtrash/files/libtrash-2.2-gentoo.patch @@ -0,0 +1,87 @@ +diff -rC2 libtrash-2.2/cleanTrash/ct2.pl libtrash-2.0-gentoo/cleanTrash/ct2.pl +*** libtrash-2.2/cleanTrash/ct2.pl Tue Aug 20 13:25:09 2002 +--- libtrash-2.2-gentoo/cleanTrash/ct2.pl Sun Mar 16 10:48:05 2003 +*************** +*** 40,44 **** + ########################################################################## + # Trash-directory relative to home-dir +! $TRASH_DIR = '/Desktop/Trash'; + + # Trash-history file relative to home-dir +--- 40,44 ---- + ########################################################################## + # Trash-directory relative to home-dir +! $TRASH_DIR = '/Trash'; + + # Trash-history file relative to home-dir +*************** +*** 48,57 **** + $MAX_TRASH_SIZE = 5000; + +! # files to ignore in Trash dir (KDE friendly!) +! @IGNORE_TRASH = ('.directory'); + + # minimum user number (by convention on many Linux systems, 'real' users + # have UIDs >= 500). Set to zero to process all users +! $MIN_USER = 500; + + ########################################################################## +--- 48,57 ---- + $MAX_TRASH_SIZE = 5000; + +! # files to ignore in Trash dir +! @IGNORE_TRASH = (); + + # minimum user number (by convention on many Linux systems, 'real' users + # have UIDs >= 500). Set to zero to process all users +! $MIN_USER = 1000; + + ########################################################################## +diff -rC2 libtrash-2.2/libtrash.conf libtrash-2.2-gentoo/libtrash.conf +*** libtrash-2.2/libtrash.conf Wed Mar 5 15:39:45 2003 +--- libtrash-2.2-gentoo/libtrash.conf Sun Mar 16 10:50:42 2003 +*************** +*** 287,291 **** + # below). + +! UNREMOVABLE_DIRS = + #UNREMOVABLE_DIRS=/bin;/boot;/dev;/etc;/lib;/sbin;/usr + +--- 287,291 ---- + # below). + +! UNREMOVABLE_DIRS = /bin;/boot;/dev;/etc;/lib;/opt;/sbin;/usr + #UNREMOVABLE_DIRS=/bin;/boot;/dev;/etc;/lib;/sbin;/usr + +*************** +*** 375,379 **** + # NOTE: This variable is ignored if global_protection is disabled. + +! REMOVABLE_MEDIA_MOUNT_POINTS = /mnt + + +--- 375,379 ---- + # NOTE: This variable is ignored if global_protection is disabled. + +! REMOVABLE_MEDIA_MOUNT_POINTS = /mnt/floppy;/mnt/cdrom + + +Only in libtrash-2.0-gentoo/src: .Makefile.swp +diff -rC2 libtrash-2.2/src/Makefile libtrash-2.0-gentoo/src/Makefile +*** libtrash-2.2/src/Makefile Wed Mar 5 01:34:02 2003 +--- libtrash-2.2-gentoo/src/Makefile Sun Mar 16 10:52:26 2003 +*************** +*** 2,7 **** + CFLAGS=-Wall -W -Wmissing-prototypes -D_REENTRANT + +! INSTLIBDIR=/usr/local/lib +! SYSCONFFILE=/etc/libtrash.conf + + MAJOR =2 +--- 2,7 ---- + CFLAGS=-Wall -W -Wmissing-prototypes -D_REENTRANT + +! INSTLIBDIR=${DESTDIR}/usr/lib +! SYSCONFFILE=${DESTDIR}/etc/libtrash.conf + + MAJOR =2 diff --git a/sys-libs/libtrash/libtrash-2.2.ebuild b/sys-libs/libtrash/libtrash-2.2.ebuild new file mode 100644 index 000000000000..609616279ca0 --- /dev/null +++ b/sys-libs/libtrash/libtrash-2.2.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2004 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/libtrash/libtrash-2.2.ebuild,v 1.1 2004/03/27 00:27:27 matsuu Exp $ + +DESCRIPTION="provides a trash can by intercepting certain calls to glibc" +HOMEPAGE="http://www.m-arriaga.net/software/libtrash/" +SRC_URI="http://www.m-arriaga.net/software/libtrash/${P}.tgz" + +SLOT="0" +KEYWORDS="~x86 ~amd64" +LICENSE="GPL-2" +IUSE="" + +DEPEND=">=virtual/glibc-2.3.2 + dev-lang/perl" + +src_unpack() { + unpack ${A} + + epatch ${FILESDIR}/${P}-gentoo.patch +} + +src_compile() { + make CC="${CC}" CFLAGS="${CFLAGS}" || die +} + +src_install() { + dodir /etc /usr/lib + make DESTDIR=${D} install || die + + dosbin cleanTrash/ct2.pl + exeinto /etc/cron.daily + doexe ${FILESDIR}/cleanTrash.cron + + dodoc CHANGE.LOG README libtrash.conf TODO + + docinto cleanTrash + dodoc cleanTrash/README cleanTrash/cleanTrash +} + +pkg_postinst() { + einfo + einfo "To use this you have to put the trash library as one" + einfo "of the variables in LD_PRELOAD." + einfo "Example in bash:" + einfo "export LD_PRELOAD=/usr/lib/libtrash.so" + einfo + einfo "Also, see /etc/cron.daily/cleanTrash.cron if you'd like to turn on" + einfo "daily trash cleanup." + einfo +} diff --git a/sys-libs/libtrash/metadata.xml b/sys-libs/libtrash/metadata.xml new file mode 100644 index 000000000000..b493e619a6d4 --- /dev/null +++ b/sys-libs/libtrash/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>matsuu@gentoo.org</email> +</maintainer> +</pkgmetadata> |