From 64a9767d17576dc23c6275ce8aed061fd5694358 Mon Sep 17 00:00:00 2001 From: Zero_Chaos Date: Mon, 16 Aug 2010 15:45:09 +0000 Subject: [PATCH] fslint: finds duplicate files and more. I wanted to use it, thought others may feel the same --- app-misc/fslint/Manifest | 2 + app-misc/fslint/fslint-2.42.ebuild | 109 +++++++++++++++++++++++++++++ 2 files changed, 111 insertions(+) create mode 100644 app-misc/fslint/Manifest create mode 100644 app-misc/fslint/fslint-2.42.ebuild diff --git a/app-misc/fslint/Manifest b/app-misc/fslint/Manifest new file mode 100644 index 000000000..cfe430dab --- /dev/null +++ b/app-misc/fslint/Manifest @@ -0,0 +1,2 @@ +DIST fslint-2.42.tar.gz 111520 RMD160 23e825cd7d798b750c4fe435b731c6e77f15badb SHA1 607a1a8cc391537151660e1129a4c95908509b80 SHA256 babbef4a34f42ab1d396152fd79b4353adc114b2e8d68b838e20a8067c5a3273 +EBUILD fslint-2.42.ebuild 2702 RMD160 ae28a3051d0374d9764dac374fd8ff1d5fa173ce SHA1 f8d3e2bd40ef7b5d0f0bde07789212bf0d56bd28 SHA256 4dc58d6ef5c8586332c81b3abc8f119d82ae7a460cee4f72478a2a39f51a9907 diff --git a/app-misc/fslint/fslint-2.42.ebuild b/app-misc/fslint/fslint-2.42.ebuild new file mode 100644 index 000000000..079f1dc31 --- /dev/null +++ b/app-misc/fslint/fslint-2.42.ebuild @@ -0,0 +1,109 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ +# original ebuild by bearingspacer@free.fr +# updated ebuild by mobidyc@msn.com +# updated ebuild by davide.bettio@kdemail.net + +DESCRIPTION="A utility to find and clean various forms of lint on a filesystem." +HOMEPAGE="http://www.pixelbeat.org/fslint/" +SRC_URI="http://www.pixelbeat.org/fslint/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="-* x86 amd64" +IUSE="" + +DEPEND=">=x11-libs/gtk+-2.4 + >=dev-lang/python-2.3 + gnome-base/libglade + >=dev-python/pygtk-2.4" + +RDEPEND="${DEPEND}" + +src_unpack() { + if [ "${A}" != "" ]; then + unpack ${A} + fi +} + +src_install() { + echo ${S} + pwd + +# GUI executable + dodir /usr/bin + exeinto /usr/bin + doexe fslint-gui + +# GUI file + dodir /usr/share/fslint + insinto /usr/share/fslint + doins fslint.glade + +# other executables + dodir /usr/share/fslint/fslint + exeinto /usr/share/fslint/fslint + doexe fslint/find* fslint/zipdir fslint/fslint + + dodir /usr/share/fslint/fslint/fstool + exeinto /usr/share/fslint/fslint/fstool + doexe fslint/fstool/* + + dodir /usr/share/fslint/fslint/supprt + exeinto /usr/share/fslint/fslint/supprt + doexe fslint/supprt/get* fslint/supprt/fslver fslint/supprt/md5sum_approx + + dodir /usr/share/fslint/fslint/supprt/rmlint + exeinto /usr/share/fslint/fslint/supprt/rmlint + doexe fslint/supprt/rmlint/* + +# icon + dodir /usr/share/pixmaps + insinto /usr/share/pixmaps + doins fslint_icon.png + +# shortcut + dodir /etc/X11/applnk/System + insinto /etc/X11/applnk/System + doins fslint.desktop + +# locales + cd po + emake DESTDIR=${D}/usr DATADIR=share install + cd .. + +# docs + cd doc + dodoc FAQ NEWS README TODO + cd .. + + cd man + doman fslint-gui.1 fslint.1 + cd .. + +# create python init file +# Other option here is to instead edit fslint-gui itself so that: +# ^liblocation = '/usr/share/fslint/' +# ^locale_base = None + python_site=`python -c "import sys ; \ + print '%s/lib/python%s/site-packages' % (sys.exec_prefix,sys.version[:3])"` + dodir $python_site/fslint + echo "liblocation = '/usr/share/fslint/'" > ${D}/$python_site/fslint/__init__.py + +# link to icon in main fslint dir + dosym /usr/share/pixmaps/fslint_icon.png /usr/share/fslint/fslint_icon.png +} + +pkg_postinst() { + einfo "Note the fslint tools do a lot of inode access and to speed them" + einfo "up you can use the following method to not update access times" + einfo "on disk while gathering inode information:" + einfo "mount -o remount,noatime mountpoint" + einfo "fslint or fslint-gui" + einfo "mount -o remount,atime mountpoint" + einfo "" + einfo "Command Line Executables are installed in:" + einfo "/usr/share/fslint/fslint" + einfo "you may want to add them in your PATH." +}