On second thought, here's my real first ebuild

After hitting publish, I thought it might be fun to share what I consider my first real ebuild.  Both this and the one for Webilder were written on my own after studying other ebuilds.  They work for me, but who knows what anyone else will think.  😛

This ebuild is for RarCrack!, a brute-force password breaker thingie.  That’s my technical description at any rate.  The homepage describes RarCrack! as:

If you forget your password for compressed archive (rar, 7z, zip), this program is the solution.
This program uses bruteforce algorithm to find correct password. You can specify wich characters will be used in password generations.

I had created an encrypted-rar years ago that contained some personal info that I thought I knew the password to.  However, none of my usual suspects from the time seemed to work.  Since I didn’t believe it was worth it to buy Elcomsoft’s password recovery software, I let it go for a while.  Then I came across this little gem.

I wrote the ebuild late last year and I was very proud that it actually compiled and installed the package properly.  (It’s the little things in life!)  And since the archive was fairly small, it didn’t take an insanely long time to recover the password.

Anyway, here’s the build.  🙂

[cc lang=”bash” tab_size=”5″ lines=”60″]
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

MY_PV=”rarcrack-${PV}”

DESCRIPTION=”Password recovery for RAR files”
HOMEPAGE=”http://rarcrack.sourceforge.net”
SRC_URI=”mirror://sourceforge/${PN}/${P}.tar.bz2″

LICENSE=”GPL-2″
SLOT=”0″
KEYWORDS=”~x86 ~amd64″
IUSE=””

DEPEND=””
RDEPEND=”>=sys-libs/glibc-2.4
dev-libs/libxml2
app-arch/p7zip
app-arch/unrar
app-arch/unzip”

src_install() {
tar -xvf ${MY_PV}.tgz -C ${S}
}

src_install() {
dobin ${PN}
}
[/cc]

~ by praetor on November 19, 2009.

4 Responses to “On second thought, here's my real first ebuild”

  1. dude your ebuild is piece of shit, its not working and have lot of mistakes. so dont proud on self, you make people hurts

  2. can you give a link to download WORKING ebuild?

  3. […] ebuild – revised Apr 25 gentoo Granted, my first crack at this ebuild was (very) rough and didn’t go over too well with at least one person.  It […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

 
%d bloggers like this: