summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-09-16 11:23:12 +0000
committerPeter Volkov <pva@gentoo.org>2008-09-16 11:23:12 +0000
commite9cbc2031b65183338a889d362d5f4041d8a0097 (patch)
tree6b7822126a05769d349a6f9f8ca2af11ebf2655b /app-misc
parentBump and cleanup (diff)
downloadgentoo-2-e9cbc2031b65183338a889d362d5f4041d8a0097.tar.gz
gentoo-2-e9cbc2031b65183338a889d362d5f4041d8a0097.tar.bz2
gentoo-2-e9cbc2031b65183338a889d362d5f4041d8a0097.zip
Fix multilib issue, bug #237463, thank Pacho Ramos for report.
(Portage version: 2.2_rc8/cvs/Linux 2.6.26-gentoo i686)
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/vlock/ChangeLog7
-rw-r--r--app-misc/vlock/vlock-2.2.2-r1.ebuild44
2 files changed, 50 insertions, 1 deletions
diff --git a/app-misc/vlock/ChangeLog b/app-misc/vlock/ChangeLog
index 13b9e06e7f3d..55f7893d2076 100644
--- a/app-misc/vlock/ChangeLog
+++ b/app-misc/vlock/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-misc/vlock
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/vlock/ChangeLog,v 1.27 2008/05/19 12:59:19 pva Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/vlock/ChangeLog,v 1.28 2008/09/16 11:23:12 pva Exp $
+
+*vlock-2.2.2-r1 (16 Sep 2008)
+
+ 16 Sep 2008; Peter Volkov <pva@gentoo.org> +vlock-2.2.2-r1.ebuild:
+ Fix multilib issue, bug #237463, thank Pacho Ramos for report.
*vlock-2.2.2 (19 May 2008)
diff --git a/app-misc/vlock/vlock-2.2.2-r1.ebuild b/app-misc/vlock/vlock-2.2.2-r1.ebuild
new file mode 100644
index 000000000000..f96443519947
--- /dev/null
+++ b/app-misc/vlock/vlock-2.2.2-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/vlock/vlock-2.2.2-r1.ebuild,v 1.1 2008/09/16 11:23:12 pva Exp $
+
+inherit eutils pam toolchain-funcs multilib
+
+DESCRIPTION="A console screen locker"
+HOMEPAGE="http://cthulhu.c3d2.de/~toidinamai/vlock/vlock.html"
+SRC_URI="http://cthulhu.c3d2.de/~toidinamai/vlock/archive/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="pam"
+
+DEPEND="pam? ( sys-libs/pam )"
+
+pkg_setup() {
+ enewgroup vlock
+}
+
+src_compile() {
+ if use pam; then
+ myconf="--enable-pam"
+ else
+ myconf="--enable-shadow"
+ fi
+ # this package has handmade configure system which fails with econf...
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --libdir=/usr/$(get_libdir) \
+ ${myconf} \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getLD)" \
+ CFLAGS="${CFLAGS} -pedantic -std=gnu99" \
+ LDFLAGS="${LDFLAGS}" || die "configure failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "make install failed"
+ use pam && pamd_mimic_system vlock auth
+ dodoc ChangeLog PLUGINS README README.X11 SECURITY STYLE TODO
+}