# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/arpd/arpd-0.2.ebuild,v 1.14 2006/02/20 20:43:20 jokey Exp $ DESCRIPTION="OpenWBEM is a software suite that is a mature implementation of the DMTF CIM and WBEM standards" HOMEPAGE="http://openwbem.sourceforge.net" SRC_URI="http://openwbem.sourceforge.net/${P}.tar.bz2" LICENSE="OpenWBEM" SLOT="0" KEYWORDS="~amd64 hppa ppc sparc x86" IUSE="zlib pam ssl perl slp" RDEPEND="pam? ( virtual/pam ) zlib? ( sys-libs/zlib ) slp? ( net-libs/openslp ) perl? ( dev-lang/perl ) ssl? ( dev-libs/openssl )" S=${WORKDIR}/${P} src_unpack() { unpack ${A} cd ${S} } src_compile() { use ssl && myconf="${myconf} --enable-ssl" || myconf="${myconf} --disable-ssl" use zlib && myconf="${myconf} --enable-zlib" || myconf="${myconf} --disable-zlib" use slp || myconf="${myconf} --disable-openslp" use pam || myconf="${myconf} --disable-pam" use perl && myconf="${myconf} --enable-perl-providerifc" econf ${myconf} || die "econf failed" emake || die } src_install() { make install DESTDIR=${D} if use pam ; then newpamd ${FILESDIR}/openwbem.pam openwbem fi cp -R ${S}/schemas/cim28 ${D}/usr/share/${PN}/ newconfd ${FILESDIR}/owcimomd.conf owcimomd newinitd ${FILESDIR}/owcimomd.rc owcimomd dodoc TODO README COPYING AUTHORS INSTALL LICENSE cp -R ${S}/doc ${D}/usr/share/doc/${PF} rm ${D}/usr/share/doc/${PF}/doc/Makefile rm ${D}/usr/share/doc/${PF}/doc/Makefile.am rm ${D}/usr/share/doc/${PF}/doc/Makefile.in rm -r ${D}/usr/share/doc/${PF}/doc/man }