blob: 206cbc8f7302c9f07b1c065b5feb221379b324eb (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/ranpwd/ranpwd-1.2.ebuild,v 1.7 2012/11/07 13:36:29 blueness Exp $
EAPI=3
DESCRIPTION="Generate random passwords using the in-kernel cryptographically secure random number generator"
HOMEPAGE="http://www.kernel.org/pub/software/utils/admin/ranpwd/"
SRC_URI="mirror://kernel/software/utils/admin/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ppc ppc64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=""
src_test() {
einfo "generating random passwords"
for a in 1 2 3 4 5 6 7 8 9
do
./ranpwd $(($a * 10))
done
}
src_install() {
emake INSTALLROOT="${D}" install || die
}
|