You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-wireless/opd/opd-0.2-r1.ebuild

52 lines
1.2 KiB

# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-wireless/opd/opd-0.2-r1.ebuild,v 1.10 2010/06/11 10:56:10 ssuominen Exp $
EAPI=2
inherit eutils toolchain-funcs
MY_PV=v${PV}-2003-03-18
DESCRIPTION="OBEX Push daemon for BlueZ and IrDA."
HOMEPAGE="http://oss.bdit.de/opd.html"
SRC_URI="http://oss.bdit.de/download/opd-${MY_PV}.tgz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~amd64 x86"
IUSE=""
DEPEND="dev-libs/openobex
net-wireless/bluez"
S=${WORKDIR}
src_prepare() {
epatch "${FILESDIR}"/${PV}-compile-fix.patch \
"${FILESDIR}"/${PV}-opd-open-o_creat-mode-fix.patch
sed -i -e "s| -lsdp||" Makefile || die
}
src_compile() {
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS} -I." \
LDFLAGS="${LDFLAGS}" || die
}
src_install() {
dobin opd || die
newinitd "${FILESDIR}"/${PN}.rc ${PN}
newconfd "${FILESDIR}"/${PN}.conf ${PN}
}
pkg_postinst() {
echo
einfo "As there is no documentation included, please read the information on URL:"
einfo "\t\t${HOMEPAGE}"
echo
einfo "You can now configure opd in /etc/conf.d/opd, and run it using"
einfo " /etc/init.d/opd start"
echo
}