From abe65054b6df3bb9201d0930b0203c4e4d0ce344 Mon Sep 17 00:00:00 2001 From: Martin Schlemmer Date: Fri, 11 Jan 2002 23:36:58 +0000 Subject: resolve bug #106 ... dircolors do not work for zsh --- sys-apps/fileutils/files/DIR_COLORS | 88 +++++++++++++++++++++ sys-apps/fileutils/files/digest-fileutils-4.1.4-r1 | 1 + sys-apps/fileutils/files/dircolors.1.gz | Bin 0 -> 4076 bytes .../fileutils/files/fileutils.dircolors.diff.gz | Bin 0 -> 3641 bytes sys-apps/fileutils/fileutils-4.1.4-r1.ebuild | 65 +++++++++++++++ 5 files changed, 154 insertions(+) create mode 100644 sys-apps/fileutils/files/DIR_COLORS create mode 100644 sys-apps/fileutils/files/digest-fileutils-4.1.4-r1 create mode 100644 sys-apps/fileutils/files/dircolors.1.gz create mode 100644 sys-apps/fileutils/files/fileutils.dircolors.diff.gz create mode 100644 sys-apps/fileutils/fileutils-4.1.4-r1.ebuild (limited to 'sys-apps/fileutils') diff --git a/sys-apps/fileutils/files/DIR_COLORS b/sys-apps/fileutils/files/DIR_COLORS new file mode 100644 index 000000000000..ed02605cbeee --- /dev/null +++ b/sys-apps/fileutils/files/DIR_COLORS @@ -0,0 +1,88 @@ +# Configuration file for the color ls utility +# This file goes in the /etc directory, and must be world readable. +# You can copy this file to .dir_colors in your $HOME directory to override +# the system defaults. + +# COLOR needs one of these arguments: 'tty' colorizes output to ttys, but not +# pipes. 'all' adds color characters to all output. 'none' shuts colorization +# off. +COLOR tty + +# Below, there should be one TERM entry for each termtype that is colorizable +TERM linux +TERM console +TERM con132x25 +TERM con132x30 +TERM con132x43 +TERM con132x60 +TERM con80x25 +TERM con80x28 +TERM con80x30 +TERM con80x43 +TERM con80x50 +TERM con80x60 +TERM xterm +TERM xterm-color +TERM color-xterm +TERM vt100 +TERM rxvt +TERM ansi + +# EIGHTBIT, followed by '1' for on, '0' for off. (8-bit output) +EIGHTBIT 1 + +# Below are the color init strings for the basic file types. A color init +# string consists of one or more of the following numeric codes: +# Attribute codes: +# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed +# Text color codes: +# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white +# Background color codes: +# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white +NORMAL 00 # global default, although everything should be something. +FILE 00 # normal file +DIR 01;34 # directory +LINK 01;36 # symbolic link +FIFO 40;33 # pipe +SOCK 01;35 # socket +BLK 40;33;01 # block device driver +CHR 40;33;01 # character device driver +ORPHAN 01;05;37;41 # orphaned symlinks +MISSING 01;05;37;41 # ... and the files they point to + +# This is for files with execute permission: +EXEC 01;32 + +# List any file extensions like '.gz' or '.tar' that you would like ls +# to colorize below. Put the extension, a space, and the color init string. +# (and any comments you want to add after a '#') +.cmd 01;32 # executables (bright green) +.exe 01;32 +.com 01;32 +.btm 01;32 +.bat 01;32 +.tar 01;31 # archives or compressed (bright red) +.tgz 01;31 +.tbz2 01;31 +.arc 01;31 +.arj 01;31 +.taz 01;31 +.lzh 01;31 +.lha 01;31 +.zip 01;31 +.z 01;31 +.Z 01;31 +.gz 01;31 +.bz2 01;31 +.bz 01;31 +.tz 01;31 +.rpm 01;31 +.jpg 01;35 # image formats +.jpeg 01;35 +.gif 01;35 +.bmp 01;35 +.xbm 01;35 +.xpm 01;35 +.png 01;35 +.tif 01;35 +.tiff 01;35 diff --git a/sys-apps/fileutils/files/digest-fileutils-4.1.4-r1 b/sys-apps/fileutils/files/digest-fileutils-4.1.4-r1 new file mode 100644 index 000000000000..af9b54d6deae --- /dev/null +++ b/sys-apps/fileutils/files/digest-fileutils-4.1.4-r1 @@ -0,0 +1 @@ +MD5 f8df4aa3a4adf0c922802331511baaaa fileutils-4.1.4.tar.gz 2326528 diff --git a/sys-apps/fileutils/files/dircolors.1.gz b/sys-apps/fileutils/files/dircolors.1.gz new file mode 100644 index 000000000000..17d377b68c49 Binary files /dev/null and b/sys-apps/fileutils/files/dircolors.1.gz differ diff --git a/sys-apps/fileutils/files/fileutils.dircolors.diff.gz b/sys-apps/fileutils/files/fileutils.dircolors.diff.gz new file mode 100644 index 000000000000..16c4caaab0e0 Binary files /dev/null and b/sys-apps/fileutils/files/fileutils.dircolors.diff.gz differ diff --git a/sys-apps/fileutils/fileutils-4.1.4-r1.ebuild b/sys-apps/fileutils/fileutils-4.1.4-r1.ebuild new file mode 100644 index 000000000000..9738a80b393c --- /dev/null +++ b/sys-apps/fileutils/fileutils-4.1.4-r1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Daniel Robbins +# $Header: /var/cvsroot/gentoo-x86/sys-apps/fileutils/fileutils-4.1.4-r1.ebuild,v 1.1 2002/01/11 23:36:58 azarah Exp $ + +S=${WORKDIR}/${P} +DESCRIPTION="Standard GNU file utilities (chmod, cp, dd, dir, ls, etc)" +SRC_URI="ftp://alpha.gnu.org/gnu/fetish/${P}.tar.gz" +HOMEPAGE="http://www.gnu.org/software/fileutils/fileutils.html" + +DEPEND="virtual/glibc nls? ( sys-devel/gettext )" +RDEPEND="virtual/glibc" + +src_unpack() { + unpack ${A} + + cd ${S}/src + #patch dircolors to work for zsh (this comes from slackware's package) + rm -rf ${S}/src/dircolors.c + zcat ${FILESDIR}/fileutils.dircolors.diff.gz \ + | patch || die +} + +src_compile() { + local myconf + [ -z "`use nls`" ] && myconf="--disable-nls" + ./configure --prefix=/usr \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --bindir=/bin \ + ${myconf} || die + emake || die +} + +src_install() { + make prefix=${D}/usr \ + mandir=${D}/usr/share/man \ + infodir=${D}/usr/share/info \ + bindir=${D}/bin \ + install || die + cd ${D} + dodir /usr/bin + rm -rf usr/lib + cd usr/bin + ln -s ../../bin/* . + if [ -z "`use build`" ] + then + cd ${S} + dodoc COPYING NEWS README* THANKS TODO ChangeLog ChangeLog-1997 AUTHORS + + #conflicts with textutils. seems that they install the same + #.info file between the two of them + rm -f ${D}/usr/share/info/coreutils.info + + #update the dircolors manpage + rm -f ${D}/usr/share/man/man1/dircolors* + cp ${FILESDIR}/dircolors.1.gz ${D}/usr/share/man/man1/dircolors.1.gz + else + rm -rf ${D}/usr/share + fi + + insinto /etc + doins ${FILESDIR}/DIR_COLORS +} + -- cgit v1.2.3-65-gdbad