rarcrack ebuild – revised

Granted, my first crack at this ebuild was (very) rough and didn’t go over too well with at least one person.  It did, however, work for compiling and installing the program.  What it didn’t do was offer a choice in what archive the user wanted to go after.  It forced three different programs to be installed, when only one might be needed.  I’ve gone back and revised the ebuild a little.  Hopefully it meets with a little better reception than before.

The only problem I have with it is the created “7zip” USE flag, since it’s not an official flag.

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


DESCRIPTION=”Password recovery for 7zip, rar and zip files”

KEYWORDS=”~x86 ~amd64″
IUSE=”7zip rar zip”

rar? ( app-arch/unrar )
zip? ( app-arch/unzip )
7zip? ( app-arch/p7zip )

src_install() {
dobin ${PN}

pkg_postinst() {
elog “Rarcrack requires the helper applications to extract”
elog “the archives. It was designed to work with”
elog “7zip, rar and zip filetypes. Activate the USE flags”
elog “or install pz7ip, unrar or unzip seperately depending”
elog “on your needs.”

~ by praetor on April 25, 2010.

2 Responses to “rarcrack ebuild – revised”

  1. I want to thank you for making this ebuild. Understandably your first ebuild apparently needed improvement, but thanks for not being demotivated by that very rude comment on the other post and posting this revised ebuild.

    Worked fine for me 🙂

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: