Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fancy version of the free command (freecolor)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
apokalyptik
n00b
n00b


Joined: 18 Jun 2002
Posts: 62

PostPosted: Sat Jan 03, 2004 10:05 pm    Post subject: fancy version of the free command (freecolor) Reply with quote

i have PORTDIR_OVERLAY=/usr/overlay in /etc/make.conf. add the entry, or adjust the following file locations appropriately

in case anyone cares how i generated this output...
Code:
for i in `find /usr/overlay/app-misc/freecolor/ -type f`; do echo cat $i; cat $i; echo; done


cat /usr/overlay/app-misc/freecolor/freecolor-0.8.2.ebuild
Code:
DESCRIPTION="freecolor adds color and bargraphs to the "free" command."
HOMEPAGE="http://www.rkeene.org/oss/freecolor/"
SRC_URI="http://www.rkeene.org/files/oss/freecolor/freecolor-0.8.2.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=""
S=${WORKDIR}/${P}

src_compile() {
        ./configure \
                --host=${CHOST} \
                --prefix=/usr \
                --infodir=/usr/share/info \
                --mandir=/usr/share/man || die "./configure failed"
        mv Makefile Makefile.old
        sed s/"prefix ="/"#prefix ="/1 Makefile.old | sed s/"exec_#prefix"/"exec_prefix"/1 | sed s/"mandir ="/"#mandir ="1/ > Makefile
        emake || die
}

src_install() {
        mkdir ${D}/usr 2>/dev/null
        mkdir ${D}/usr/bin 2>/dev/null
        mkdir ${D}/usr/share/man 2>/dev/null
        mkdir ${D}/usr/share/info 2>/dev/null
        make \
                prefix=${D}/usr \
                mandir=${D}/usr/share/man \
                infodir=${D}/usr/share/info \
                install || die
}


cat /usr/overlay/app-misc/freecolor/files/digest-freecolor-0.8.2
Code:
MD5 e98be238bd5051bc0bfdf3aeec3690e4 freecolor-0.8.2.tar.gz 37199


cat /usr/overlay/app-misc/freecolor/Manifest
Code:
MD5 12f8d988c52f70d5b4d94a77315ef4d6 freecolor-0.8.2.ebuild 649
MD5 073e288391558ab9b72d12c22fbe497f files/digest-freecolor-0.8.2 66

_________________
http://www.apokalyptik.com/
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Sun Jan 04, 2004 9:28 am    Post subject: Reply with quote

Very nice! Thanks for the ebuild. 8)
Code:
alias free='freecolor -m'

Anyone know a similar hack for df?
Back to top
View user's profile Send private message
neenee
Veteran
Veteran


Joined: 20 Jul 2003
Posts: 1786

PostPosted: Sun Jan 04, 2004 12:39 pm    Post subject: Reply with quote

very nice indeed. thanks for sharing :wink:
Back to top
View user's profile Send private message
DiskBreaker
Apprentice
Apprentice


Joined: 07 Oct 2003
Posts: 224

PostPosted: Wed Jan 07, 2004 8:14 am    Post subject: Reply with quote

just for the reference, since I could not find something similar for df, I patched my df with a colored ascii bar.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum