summaryrefslogtreecommitdiff
blob: 664fc358dda2e26e4b0debb7308da4b9b8a34e1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/apg/apg-2.3.0b.ebuild,v 1.3 2003/11/16 05:17:24 tad Exp $

DESCRIPTION="Another Password Generator"
SRC_URI="http://www.adel.nursat.kz/apg/download/${P}.tar.gz"
HOMEPAGE="http://www.adel.nursat.kz/apg/"

SLOT="0"
LICENSE="as-is"
KEYWORDS="~x86 ~ppc"
IUSE=""

DEPEND="virtual/glibc"
src_unpack() {
	unpack ${A}
	chmod -R +w ${S}
}

src_compile() {
	cp Makefile Makefile.orig
	sed -e 's,^#\(APG_CS_CLIBS += -lnsl\)$,\1,' Makefile.orig > Makefile

	emake standalone || die "compile problem"
	emake -C bfconvert || die "compile problem"
}

src_install() {
	dobin apg apgbfm bfconvert/bfconvert
	dodoc CHANGES COPYING INSTALL README THANKS TODO
	cd ${S}/doc
	doman man/apg.1 man/apgbfm.1
	dodoc APG_TIPS pronun.txt rfc0972.txt rfc1750.txt
}