summaryrefslogtreecommitdiff
blob: 213790231b09bb9133464fd6c8dc4f9b6373b4c4 (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
35
36
37
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sys-libs/pam_mysql/pam_mysql-0.5.ebuild,v 1.5 2004/09/03 18:24:08 pvdabeel Exp $

DESCRIPTION="pam_mysql is a module for pam to authenticate users with mysql"
HOMEPAGE="http://pam-mysql.sourceforge.net/"

S="${WORKDIR}/${PN}"
SRC_URI="mirror://sourceforge/pam-mysql/${P}.tar.gz"
DEPEND=">=sys-libs/pam-0.72 >=dev-db/mysql-3.23.38"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~sparc ~alpha ~amd64"
IUSE=""

src_unpack() {
	unpack ${A} || die
	cd ${S} || die

	cp Makefile Makefile.orig
	sed -e "s%-O2%${CFLAGS}%" Makefile.orig > Makefile
	#i dont think this is needed --woodchip
	#-e 's%^\(export LD_D=.*\)%\1 -lz%' \

	cp pam_mysql.c pam_mysql.c.orig
	sed -e "s%#define DEBUG%%" pam_mysql.c.orig > pam_mysql.c
}

src_compile() {
	emake || die
}

src_install() {
	exeinto /lib/security
	doexe pam_mysql.so
	dodoc Changelog CREDITS Readme
}