diff options
author | Andrej Kacian <ticho@gentoo.org> | 2005-05-16 18:11:50 +0000 |
---|---|---|
committer | Andrej Kacian <ticho@gentoo.org> | 2005-05-16 18:11:50 +0000 |
commit | f1d0509e7e50a74782f75c97062c6615bd50043d (patch) | |
tree | 9cf0c4b0f969bc0494d7871c633adc3aa89fe6c2 /net-wireless/opd | |
parent | Added 3355 version for testing. (diff) | |
download | gentoo-2-f1d0509e7e50a74782f75c97062c6615bd50043d.tar.gz gentoo-2-f1d0509e7e50a74782f75c97062c6615bd50043d.tar.bz2 gentoo-2-f1d0509e7e50a74782f75c97062c6615bd50043d.zip |
Do not link against libsdp, bug #83110. Add initscript and conf.d file.
(Portage version: 2.0.51.21-r1)
Diffstat (limited to 'net-wireless/opd')
-rw-r--r-- | net-wireless/opd/ChangeLog | 11 | ||||
-rw-r--r-- | net-wireless/opd/files/digest-opd-0.2-r1 | 1 | ||||
-rw-r--r-- | net-wireless/opd/files/opd.conf | 17 | ||||
-rw-r--r-- | net-wireless/opd/files/opd.rc | 22 | ||||
-rw-r--r-- | net-wireless/opd/opd-0.2-r1.ebuild | 46 |
5 files changed, 95 insertions, 2 deletions
diff --git a/net-wireless/opd/ChangeLog b/net-wireless/opd/ChangeLog index 316760046633..1c7fe56f5de1 100644 --- a/net-wireless/opd/ChangeLog +++ b/net-wireless/opd/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-wireless/opd -# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-wireless/opd/ChangeLog,v 1.3 2004/12/16 08:50:21 ticho Exp $ +# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-wireless/opd/ChangeLog,v 1.4 2005/05/16 18:11:50 ticho Exp $ + +*opd-0.2-r1 (16 May 2005) + + 16 May 2005; Andrej Kacian <ticho@gentoo.org> +files/opd.conf, + +files/opd.rc, +opd-0.2-r1.ebuild: + Do not link against libsdp, bug #83110 by Michael Mauch <michael.mauch at + gmx de>. Wrote an initscript and a conf.d file. 16 Dec 2004; Andrej Kacian <ticho@gentoo.org> metadata.xml: Assign to mobile herd. diff --git a/net-wireless/opd/files/digest-opd-0.2-r1 b/net-wireless/opd/files/digest-opd-0.2-r1 new file mode 100644 index 000000000000..c7c04a36f9cd --- /dev/null +++ b/net-wireless/opd/files/digest-opd-0.2-r1 @@ -0,0 +1 @@ +MD5 8b016504aab0b595f9a36dba1a208c76 opd-v0.2-2003-03-18.tgz 9499 diff --git a/net-wireless/opd/files/opd.conf b/net-wireless/opd/files/opd.conf new file mode 100644 index 000000000000..2fa03db27e04 --- /dev/null +++ b/net-wireless/opd/files/opd.conf @@ -0,0 +1,17 @@ +# Gentoo configuration file for OBEX Push Daemon +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +# By default, opd runs as root, which is not safe. Set another user here. +# The syntax is "user" or "user:group" +OPD_USER="nobody" +#OPD_USER="john:users" + +# Path where received files will be saved +OPD_PATH="/tmp" + +# RFCOMM channel to listen on +OPD_CHANNEL="5" + +# Daemon mode - run `opd` without arguments to see possible values +OPD_MODE="OBEX" diff --git a/net-wireless/opd/files/opd.rc b/net-wireless/opd/files/opd.rc new file mode 100644 index 000000000000..ed1b73c91035 --- /dev/null +++ b/net-wireless/opd/files/opd.rc @@ -0,0 +1,22 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + need bluetooth +} + +start() { + ebegin "Starting OBEX Push Daemon" + start-stop-daemon --start --quiet --chuid ${OPD_USER} \ + --exec /usr/bin/opd -- --sdp --path ${OPD_PATH} \ + --channel ${OPD_CHANNEL} --mode ${OPD_MODE} --metadata \ + --daemonize + eend $? +} + +stop() { + ebegin "Stopping OBEX Push Daemon" + start-stop-daemon --stop --quiet --name opd + eend $? +} diff --git a/net-wireless/opd/opd-0.2-r1.ebuild b/net-wireless/opd/opd-0.2-r1.ebuild new file mode 100644 index 000000000000..492f0d4c25f9 --- /dev/null +++ b/net-wireless/opd/opd-0.2-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2005 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.1 2005/05/16 18:11:50 ticho Exp $ + +inherit eutils + +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="~x86" +IUSE="" + +DEPEND="virtual/libc + dev-libs/openobex + >=net-wireless/bluez-libs-2.10" + + +S=${WORKDIR} + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${PV}-compile-fix.patch + sed -i -e "s| -lsdp||" Makefile + make || "compilation failed" +} + +src_install() { + dobin opd + 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 +} |