diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-11-09 18:48:16 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-11-09 18:48:16 +0000 |
commit | bc68658105ba6cae7e8c3a53c2386df60e2243ee (patch) | |
tree | 87ce35929511ecf913bec9ac3451f38f0c3a9f8b /sys-libs/pwdb/pwdb-0.62.ebuild | |
parent | Update version. (diff) | |
download | gentoo-2-bc68658105ba6cae7e8c3a53c2386df60e2243ee.tar.gz gentoo-2-bc68658105ba6cae7e8c3a53c2386df60e2243ee.tar.bz2 gentoo-2-bc68658105ba6cae7e8c3a53c2386df60e2243ee.zip |
Update version.
Diffstat (limited to 'sys-libs/pwdb/pwdb-0.62.ebuild')
-rw-r--r-- | sys-libs/pwdb/pwdb-0.62.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/sys-libs/pwdb/pwdb-0.62.ebuild b/sys-libs/pwdb/pwdb-0.62.ebuild new file mode 100644 index 000000000000..0a0c53b5e30e --- /dev/null +++ b/sys-libs/pwdb/pwdb-0.62.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/pwdb/pwdb-0.62.ebuild,v 1.1 2003/11/09 18:48:05 azarah Exp $ + +inherit eutils flag-o-matic +filter-flags "-fstack-protector" + +IUSE="selinux" + +DESCRIPTION="Password database" +HOMEPAGE="http://www.firstlinux.com/cgi-bin/package/content.cgi?ID=6886" +SRC_URI="mirror://gentoo/${P}.tar.gz + http://nl.lunar-linux.org/lunar/sources/sources/${P}.tar.gz" + +LICENSE="BSD | GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~arm ~ia64" + +DEPEND="virtual/glibc + selinux? ( sys-libs/libselinux )" + +src_unpack () { + unpack ${A} + + cd ${S} + # Uses gcc as linker needed for hppa, but good idea in general. + epatch ${FILESDIR}/${P}-use-gcc-as-linker.patch + + use selinux && epatch ${FILESDIR}/${P}-selinux.patch + + sed -i -e "s/^DIRS = .*/DIRS = libpwdb/" -e "s:EXTRAS += :EXTRAS += ${CFLAGS} :" \ + Makefile + sed -i -e "s/=gcc/=${CC:-gcc}/g" default.defs +} + +src_compile() { + # author has specified application to be compiled with `-g` + # no problem, but with ccc `-g` disables optimisation to make + # debugging easier, `-g3` enables debugging and optimisation + [ "${ARCH}" = "alpha" -a "${CC}" = "ccc" ] && append-flags -g3 + + emake || die +} + +src_install() { + dodir /lib /usr/include/pwdb + make INCLUDED=${D}/usr/include/pwdb \ + LIBDIR=${D}/lib \ + LDCONFIG="echo" \ + install || die + + preplib / + dodir /usr/lib + mv ${D}/lib/*.a ${D}/usr/lib + + # See bug $4411 for more info + gen_usr_ldscript libpwdb.so + + insinto /etc + doins conf/pwdb.conf + + dodoc CHANGES Copyright CREDITS README + dohtml -r doc + docinto txt + dodoc doc/*.txt +} + |