summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-02-01 23:15:10 +0000
committerJustin Lecher <jlec@gentoo.org>2010-02-01 23:15:10 +0000
commit4ef0cf6bf886107db4f4cfcb2e7d2d388765ef39 (patch)
treef69384854aa4a525f56031b97e80d69fb6c5c8ea
parentStable for HPPA (bug #290464). (diff)
downloadgentoo-2-4ef0cf6bf886107db4f4cfcb2e7d2d388765ef39.tar.gz
gentoo-2-4ef0cf6bf886107db4f4cfcb2e7d2d388765ef39.tar.bz2
gentoo-2-4ef0cf6bf886107db4f4cfcb2e7d2d388765ef39.zip
EAPI="3", ready for PREFIX whitelist, using emake
fix for bug 202277, thanks Andreas Sundstrom for the fix (Portage version: 2.2_rc62/cvs/Linux x86_64)
-rw-r--r--app-admin/pwgen/ChangeLog10
-rw-r--r--app-admin/pwgen/files/2.06-special-char.patch13
-rw-r--r--app-admin/pwgen/metadata.xml3
-rw-r--r--app-admin/pwgen/pwgen-2.06-r1.ebuild33
4 files changed, 58 insertions, 1 deletions
diff --git a/app-admin/pwgen/ChangeLog b/app-admin/pwgen/ChangeLog
index daae24ca6b13..bfae7ec5225c 100644
--- a/app-admin/pwgen/ChangeLog
+++ b/app-admin/pwgen/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for app-admin/pwgen
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/pwgen/ChangeLog,v 1.51 2009/09/23 15:01:54 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/pwgen/ChangeLog,v 1.52 2010/02/01 23:15:09 jlec Exp $
+
+*pwgen-2.06-r1 (31 Dec 2009)
+
+ 31 Dec 2009; Justin Lecher (jlec) <jlec@j-schmitz.net>
+ +pwgen-2.06-r1.ebuild, +files/2.06-special-char.patch,
+ +pwgen-2.06-r1.ebuild:
+ EAPI="3", ready for PREFIX whitelist, using emake,
+ fix for 202277, thanks Andreas Sundstrom for the fix
23 Sep 2009; Patrick Lauer <patrick@gentoo.org> pwgen-2.04.ebuild,
pwgen-2.05.ebuild, pwgen-2.06.ebuild:
diff --git a/app-admin/pwgen/files/2.06-special-char.patch b/app-admin/pwgen/files/2.06-special-char.patch
new file mode 100644
index 000000000000..84a77e7c9340
--- /dev/null
+++ b/app-admin/pwgen/files/2.06-special-char.patch
@@ -0,0 +1,13 @@
+diff --git a/pwgen.c b/pwgen.c
+index 3ae457a..0bc6705 100644
+--- a/pwgen.c
++++ b/pwgen.c
+@@ -138,7 +138,7 @@ int main(int argc, char **argv)
+ break;
+ case 's':
+ pwgen = pw_rand;
+- pwgen_flags = PW_DIGITS | PW_UPPERS;
++ pwgen_flags |= PW_DIGITS | PW_UPPERS;
+ break;
+ case 'C':
+ do_columns = 1;
diff --git a/app-admin/pwgen/metadata.xml b/app-admin/pwgen/metadata.xml
index 88653ddd7172..bf55b762cee1 100644
--- a/app-admin/pwgen/metadata.xml
+++ b/app-admin/pwgen/metadata.xml
@@ -2,4 +2,7 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>livecd</herd>
+<maintainer>
+ <email>jlec@gentoo.org</email>
+</maintainer>
</pkgmetadata>
diff --git a/app-admin/pwgen/pwgen-2.06-r1.ebuild b/app-admin/pwgen/pwgen-2.06-r1.ebuild
new file mode 100644
index 000000000000..fef8d2cbd4ac
--- /dev/null
+++ b/app-admin/pwgen/pwgen-2.06-r1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/pwgen/pwgen-2.06-r1.ebuild,v 1.1 2010/02/01 23:15:09 jlec Exp $
+
+EAPI="3"
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Password Generator"
+HOMEPAGE="http://sourceforge.net/projects/pwgen/"
+SRC_URI="mirror://sourceforge/pwgen/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
+IUSE="livecd"
+
+DEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-special-char.patch
+ sed -i -e 's:$(prefix)/man/man1:$(mandir)/man1:g' Makefile.in
+}
+
+src_configure() {
+ tc-export CC
+ econf --sysconfdir=${EPREFIX}/etc/pwgen
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ use livecd && newinitd "${FILESDIR}"/pwgen.rc pwgen
+}