Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 93159
Collapse All | Expand All

(-)/home/flame/devel/gentoo-x86/x11-misc/xlockmore/xlockmore-5.12.ebuild (-25 / +27 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xlockmore/xlockmore-5.12.ebuild,v 1.13 2005/04/29 09:51:43 corsair Exp $
3
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xlockmore/xlockmore-5.12.ebuild,v 1.13 2005/04/29 09:51:43 corsair Exp $
4
4
5
inherit gnuconfig eutils
5
inherit gnuconfig eutils pam
6
6
7
IUSE="nas esd motif opengl truetype gtk pam"
7
IUSE="nas esd motif opengl truetype gtk pam"
8
8
Lines 17-50 Link Here
17
DEPEND="virtual/x11
17
DEPEND="virtual/x11
18
	media-libs/freetype
18
	media-libs/freetype
19
	opengl? ( virtual/opengl )
19
	opengl? ( virtual/opengl )
20
	pam? ( sys-libs/pam )
20
	pam? ( virtual/pam )
21
	nas? ( media-libs/nas )
21
	nas? ( media-libs/nas )
22
	esd? ( media-sound/esound )
22
	esd? ( media-sound/esound )
23
	motif? ( x11-libs/openmotif )
23
	motif? ( x11-libs/openmotif )
24
	gtk? ( =x11-libs/gtk+-1.2* )"
24
	gtk? ( =x11-libs/gtk+-1.2* )"
25
25
26
src_compile() {
26
src_unpack() {
27
	gnuconfig_update
27
	unpack ${A}
28
	cd ${S}
28
29
29
	local myconf
30
	epatch ${FILESDIR}/XLock.ad.patch
30
	myconf="--enable-vtlock"
31
31
	use pam && myconf="${myconf} --enable-pam" \
32
	gnuconfig_update
32
		|| myconf="${myconf} --disable-pam --enable-xlockrc"
33
}
33
	use nas || myconf="${myconf} --without-nas"
34
	use esd && myconf="${myconf} --with-esound"
35
	use opengl || myconf="${myconf} --without-opengl --without-gltt --without-mesa"
36
	use truetype || myconf="${myconf} --without-ttf"
37
34
38
	use motif || myconf="${myconf} --without-motif"
35
src_compile() {
39
	use gtk || myconf="${myconf} --without-gtk"
40
36
41
	epatch ${FILESDIR}/XLock.ad.patch || die "epatch failed"
37
	local myconf
38
	use pam || myconf="${myconf} --enable-xlockrc"
42
39
43
	./configure \
40
	use opengl || myconf="${myconf} --without-opengl --without-gltt --without-mesa"
44
		--prefix=/usr \
41
	
45
		--mandir=${prefix}/share/man/man1 \
42
	econf \
46
		--sharedstatedir=/usr/share/xlockmore \
43
		--sharedstatedir=/usr/share/xlockmore \
47
		--host=${CHOST} ${myconf} || die "Configure failed"
44
		--enable-vtlock \
45
		$(use_enable pam) \
46
		$(use_with truetype ttf) \
47
		$(use_with gtk) \
48
		$(use_with motif) \
49
		$(use_with esd esound) \
50
		$(use_with nas) \
51
		${myconf} \
52
		|| die "econf failed"
48
53
49
	emake || die "Make failed"
54
	emake || die "Make failed"
50
55
Lines 54-68 Link Here
54
	make install \
59
	make install \
55
		prefix=${D}/usr \
60
		prefix=${D}/usr \
56
		mandir=${D}/usr/share/man/man1 \
61
		mandir=${D}/usr/share/man/man1 \
57
		xapploaddir=${D}/usr/X11R6/lib/X11/app-defaults \
62
		xapploaddir=${D}/etc/X11/app-defaults \
58
		|| die "Install failed"
63
		|| die "Install failed"
59
64
60
	#Install pam.d file and unset setuid root
65
	#Install pam.d file and unset setuid root
61
	if use pam; then
66
	pamd_mimic_system xlock auth
62
		insinto /etc/pam.d
67
	use pam && chmod 755 ${D}/usr/bin/xlock
63
		newins etc/xlock.pamd xlock
64
		chmod 111 ${D}/usr/bin/xlock
65
	fi
66
68
67
	insinto /usr/share/xlockmore/sounds
69
	insinto /usr/share/xlockmore/sounds
68
	doins sounds/*
70
	doins sounds/*

Return to bug 93159