diff options
author | Alastair Tse <liquidx@gentoo.org> | 2006-08-15 10:39:22 +0000 |
---|---|---|
committer | Alastair Tse <liquidx@gentoo.org> | 2006-08-15 10:39:22 +0000 |
commit | 47a7cb65a05ec19d829031af9b5e51a325a00cd7 (patch) | |
tree | 60745107f4eeab514d59c68e3f7859f0c5b07e55 /app-portage | |
parent | add man page install target to python 2.5 (diff) | |
download | liquidx-47a7cb65a05ec19d829031af9b5e51a325a00cd7.tar.gz liquidx-47a7cb65a05ec19d829031af9b5e51a325a00cd7.tar.bz2 liquidx-47a7cb65a05ec19d829031af9b5e51a325a00cd7.zip |
proper eaudit release
svn path=/; revision=55
Diffstat (limited to 'app-portage')
-rw-r--r-- | app-portage/eaudit/Manifest | 19 | ||||
-rw-r--r-- | app-portage/eaudit/eaudit-0.1.ebuild | 21 | ||||
-rw-r--r-- | app-portage/eaudit/files/digest-eaudit-0.1 | 1 | ||||
-rwxr-xr-x | app-portage/eaudit/files/eaudit | 93 |
4 files changed, 8 insertions, 126 deletions
diff --git a/app-portage/eaudit/Manifest b/app-portage/eaudit/Manifest index e6f3987..aa9c930 100644 --- a/app-portage/eaudit/Manifest +++ b/app-portage/eaudit/Manifest @@ -1,11 +1,8 @@ -AUX eaudit 2919 RMD160 3aed734b5875b6a694beb785fc4d25a4b6058b48 SHA1 431cb0113aa5d1d44a14280a4962eaacf5bbbbc8 SHA256 1312c33617b98b59d37aefc2e7b48d0c06593b10444ed049e088843a11d1ad4f -MD5 4f382a98e8e29d1bc65531d518532f0b files/eaudit 2919 -RMD160 3aed734b5875b6a694beb785fc4d25a4b6058b48 files/eaudit 2919 -SHA256 1312c33617b98b59d37aefc2e7b48d0c06593b10444ed049e088843a11d1ad4f files/eaudit 2919 -EBUILD eaudit-0.1.ebuild 499 RMD160 6dfd9d2f5a5d198090d5c9087f0dea813f003dcc SHA1 cf7fee1a539f0647aca7cf81dd4a32dcb8e262c0 SHA256 2eedc7ee32c8e0cd7f6a625cb96e3e6e330c2e8d086ef586f5ec643a15b31310 -MD5 1272c3ad231d5fdc799d41ab191105e6 eaudit-0.1.ebuild 499 -RMD160 6dfd9d2f5a5d198090d5c9087f0dea813f003dcc eaudit-0.1.ebuild 499 -SHA256 2eedc7ee32c8e0cd7f6a625cb96e3e6e330c2e8d086ef586f5ec643a15b31310 eaudit-0.1.ebuild 499 -MD5 68b329da9893e34099c7d8ad5cb9c940 files/digest-eaudit-0.1 1 -RMD160 c0da025038ed83c687ddc430da9846ecb97f3998 files/digest-eaudit-0.1 1 -SHA256 01ba4719c80b6fe911b091a7c05124b64eeece964e09c058ef8f9805daca546b files/digest-eaudit-0.1 1 +DIST eaudit-0.1.tar.gz 4925 RMD160 67e99e12e58e4b5ad86a8037b25a9e9cf3862328 SHA1 b434c2a692a61f121043a236a2de24349bde345e SHA256 05e14d9a4e9dac677631a545c47bbc813573c37ad1737d6a63e934207a80ab12 +EBUILD eaudit-0.1-r1.ebuild 486 RMD160 531353b2129a6dec24cfc7aa95cabb5d61d58fa7 SHA1 d8b9580ac8ae804e5633068553d0f320ed628e8f SHA256 a29822cde926818f23ac804e8e566cd84851715bfd9eab79c99e87b12f011342 +MD5 b2eb88d6a704d8ff3f6b9a7620c2f500 eaudit-0.1-r1.ebuild 486 +RMD160 531353b2129a6dec24cfc7aa95cabb5d61d58fa7 eaudit-0.1-r1.ebuild 486 +SHA256 a29822cde926818f23ac804e8e566cd84851715bfd9eab79c99e87b12f011342 eaudit-0.1-r1.ebuild 486 +MD5 7b8408bf26480a80569412f60abea95e files/digest-eaudit-0.1-r1 226 +RMD160 0cda8f49560e60b6eac4ab3bd48b3a047c031472 files/digest-eaudit-0.1-r1 226 +SHA256 fa9797393d9d474c1da6cea1ea3977d9bc89b65926b14eff22e361b4308465bb files/digest-eaudit-0.1-r1 226 diff --git a/app-portage/eaudit/eaudit-0.1.ebuild b/app-portage/eaudit/eaudit-0.1.ebuild deleted file mode 100644 index b22907d..0000000 --- a/app-portage/eaudit/eaudit-0.1.ebuild +++ /dev/null @@ -1,21 +0,0 @@ -# Copyright 1999-2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-python/feedparser/feedparser-4.1.ebuild,v 1.6 2006/07/16 13:58:13 liquidx Exp $ - -DESCRIPTION="Ultra simple audit tool to compare installations." -HOMEPAGE="http://www.liquidx.net/" -SRC_URI="" -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="x86" -IUSE="" -RDEPEND=">=dev-lang/python-2.4" -DEPEND="" - -src_compile() { - return -} - -src_install() { - dobin ${FILESDIR}/eaudit -} diff --git a/app-portage/eaudit/files/digest-eaudit-0.1 b/app-portage/eaudit/files/digest-eaudit-0.1 deleted file mode 100644 index 8b13789..0000000 --- a/app-portage/eaudit/files/digest-eaudit-0.1 +++ /dev/null @@ -1 +0,0 @@ - diff --git a/app-portage/eaudit/files/eaudit b/app-portage/eaudit/files/eaudit deleted file mode 100755 index b8fc1b5..0000000 --- a/app-portage/eaudit/files/eaudit +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/python -# -# eaudit - Lists installed packages with useflags. -# -# Copyright (c) 2006, Alastair Tse <alastair@liquidx.net> -# All rights reserved. -# - -from optparse import OptionParser -from os.path import join -import os -import sys -import string - -__doc__ = "Lists installed packages in human and machine readable form." -__version__ = '0.1' - -PKG_DB = '/var/db/pkg' -PKG_WORLD = '/var/lib/portage/world' - -def strip_ver(pkg_ver): - parts = pkg_ver.split('-') - for i in range(1, len(parts)): - if parts[i][0] in string.digits: - return '-'.join(parts[:i]), '-'.join(parts[i:]) - return pkg_ver, '' - -def world(): - world_index = {} - for cat_pkg in open(PKG_WORLD).xreadlines(): - cat, pkg = cat_pkg.strip().split('/') - if cat in world_index: - world_index[cat].add(pkg) - else: - world_index[cat] = set([pkg]) - return world_index - -def allpkgs(): - """ An iterator that outputs all packages in the form: - category, package, version, path_to_db - """ - for cat in sorted(os.listdir(PKG_DB)): - for pkg_ver in sorted(os.listdir(join(PKG_DB, cat))): - pkg, ver = strip_ver(pkg_ver) - yield cat, pkg, ver, join(PKG_DB, cat, pkg_ver) - -def use_status(path): - """ Returns a set of enable and disabled useflags for packages. """ - use_flags = set(open(join(path, 'USE')).read().split()) - iuse_flags = set(open(join(path, 'IUSE')).read().split()) - - use_enabled = sorted(use_flags & iuse_flags) - use_disabled = sorted(iuse_flags - set(use_enabled)) - return use_enabled, use_disabled - -def listpkgs(with_use = False, with_status = False, format = '%s %s %s'): - - world_index = world() - - for cat, pkg, ver, path in allpkgs(): - output = '' - if with_status: - if pkg in world_index.get(cat, set()): - output += 'W ' - else: - output += ' ' - - output += format % (cat, pkg, ver) - - if with_use: - enabled, disabled = use_status(path) - output += ' ' + ' '.join(enabled + ['-%s' % u for u in disabled]) - - print output - -def main(args = sys.argv[1:]): - parser = OptionParser(version = '%%prog %s' % __version__, - description = __doc__) - parser.add_option('-u', '--use', action='store_true', - help = 'List USE flags') - parser.add_option('-s', '--status', action='store_true', - help = 'Display WORLD status') - parser.add_option('-f', '--format', default='%s %s %s', - help = 'Display format for category, package, version. ' - 'Example: "%s/%s-%s" = "sys-apps/portage-2.1"') - - options, params = parser.parse_args(args) - listpkgs(with_use = options.use, with_status = options.status, - format = options.format) - - -if __name__ == "__main__": - main() |