| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-libs/openslp/openslp-1.2.1-r2.ebuild,v 1.9 2012/06/14 15:07:08 jer Exp $
|
| 4 |
|
| 5 |
inherit eutils autotools
|
| 6 |
|
| 7 |
DESCRIPTION="An open-source implementation of Service Location Protocol"
|
| 8 |
HOMEPAGE="http://www.openslp.org/"
|
| 9 |
SRC_URI="mirror://sourceforge/openslp/${P}.tar.gz"
|
| 10 |
|
| 11 |
LICENSE="BSD"
|
| 12 |
SLOT="0"
|
| 13 |
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~amd64-linux ~x86-linux"
|
| 14 |
IUSE=""
|
| 15 |
RESTRICT="test"
|
| 16 |
|
| 17 |
DEPEND="dev-libs/openssl"
|
| 18 |
RDEPEND="${DEPEND}"
|
| 19 |
|
| 20 |
src_unpack() {
|
| 21 |
unpack ${A}
|
| 22 |
cd "${S}"
|
| 23 |
|
| 24 |
epatch "${FILESDIR}"/${P}-fbsd.patch
|
| 25 |
epatch "${FILESDIR}"/${P}-fixoverflow.patch
|
| 26 |
epatch "${FILESDIR}"/${P}-cflags.patch
|
| 27 |
eautoreconf
|
| 28 |
}
|
| 29 |
|
| 30 |
src_compile() {
|
| 31 |
econf || die
|
| 32 |
emake -j1 || die "make failed"
|
| 33 |
}
|
| 34 |
|
| 35 |
src_install() {
|
| 36 |
make DESTDIR="${D}" install || die "make install failed"
|
| 37 |
dodoc AUTHORS FAQ ChangeLog NEWS README* THANKS
|
| 38 |
rm -rf "${D}"/usr/doc
|
| 39 |
dohtml -r .
|
| 40 |
newinitd "${FILESDIR}"/slpd-init slpd
|
| 41 |
}
|