summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Birchinger <joker@gentoo.org>2006-03-21 16:57:06 +0000
committerChristian Birchinger <joker@gentoo.org>2006-03-21 16:57:06 +0000
commit528300f952e35f2e24ef97642e154d6a95772eb2 (patch)
treee183dbca2dd8ad045ac4b3e7df84407f0047626f /app-mobilephone
parentStable on alpha wrt bug #126984. Tested by Thomas Cort <tcort@cs.ubishops.ca>. (diff)
downloadhistorical-528300f952e35f2e24ef97642e154d6a95772eb2.tar.gz
historical-528300f952e35f2e24ef97642e154d6a95772eb2.tar.bz2
historical-528300f952e35f2e24ef97642e154d6a95772eb2.zip
Initial import.
Package-Manager: portage-2.0.54
Diffstat (limited to 'app-mobilephone')
-rw-r--r--app-mobilephone/sobexsrv/ChangeLog11
-rw-r--r--app-mobilephone/sobexsrv/Manifest6
-rw-r--r--app-mobilephone/sobexsrv/files/conf.d_sobexsrv35
-rw-r--r--app-mobilephone/sobexsrv/files/digest-sobexsrv-1.0.0_pre41
-rw-r--r--app-mobilephone/sobexsrv/files/init.d_sobexsrv59
-rw-r--r--app-mobilephone/sobexsrv/metadata.xml18
-rw-r--r--app-mobilephone/sobexsrv/sobexsrv-1.0.0_pre4.ebuild69
7 files changed, 199 insertions, 0 deletions
diff --git a/app-mobilephone/sobexsrv/ChangeLog b/app-mobilephone/sobexsrv/ChangeLog
new file mode 100644
index 000000000000..bddf0e71e071
--- /dev/null
+++ b/app-mobilephone/sobexsrv/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for <CATEGORY>/<PACKAGE_NAME>
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/sobexsrv/ChangeLog,v 1.1 2006/03/21 16:57:06 joker Exp $
+
+*sobexsrv-1.0.0_pre4 (21 Mar 2006)
+
+ 21 Mar 2006; Christian Birchinger <joker@gentoo.org>
+ +files/conf.d_sobexsrv, +files/init.d_sobexsrv, +metadata.xml,
+ +sobexsrv-1.0.0_pre4.ebuild:
+ Initial import
+
diff --git a/app-mobilephone/sobexsrv/Manifest b/app-mobilephone/sobexsrv/Manifest
new file mode 100644
index 000000000000..21f22a5d19c1
--- /dev/null
+++ b/app-mobilephone/sobexsrv/Manifest
@@ -0,0 +1,6 @@
+MD5 c786130146b896910b44175e873ec0ce ChangeLog 426
+MD5 e59cf7a4f30f909594c004064b20a45a files/conf.d_sobexsrv 1095
+MD5 267d0e55cb698de3bac2b718cdef9a61 files/digest-sobexsrv-1.0.0_pre4 69
+MD5 7dd6d9fe7965cdf21cbee217d99604e9 files/init.d_sobexsrv 1624
+MD5 9b0651d1bb1439c467fcbfe40dbcdaa2 metadata.xml 914
+MD5 5dba8f9cc5d20ac74d03e95e8ee7ff8e sobexsrv-1.0.0_pre4.ebuild 1578
diff --git a/app-mobilephone/sobexsrv/files/conf.d_sobexsrv b/app-mobilephone/sobexsrv/files/conf.d_sobexsrv
new file mode 100644
index 000000000000..1afdc0c772e3
--- /dev/null
+++ b/app-mobilephone/sobexsrv/files/conf.d_sobexsrv
@@ -0,0 +1,35 @@
+# /etc/conf.d/sobexsrv
+# Config file for sobexsrv daemon
+
+# owner of sobexsrv process (don't change, must be existing)
+USER="sobexsrv"
+GROUP="sobexsrv"
+
+# Incomming of pushed files
+INBOX="/var/spool/sobexsrv"
+
+# chroot to INBOX.
+# *NEEDS* the binary to be suid root (not installed by default).
+#CHROOT="yes"
+
+# Listen on the specified RFCOMM channel. If this option is not specified the
+# first available channel will be used. Legal range for channel is 1-31 and 0
+# to force auto selection of first available channel.
+CHANNEL="10"
+
+# Set Bluetooth security mode-2 level. Legal values are: 1 (insecure) every-
+# body can connect, 2 authentication required and 3 authentication and encryp-
+# tion required.
+SECURITY_LEVEL="2"
+
+# Don't register OPUSH service at local ServiceDiscoveryProtocol Server.
+#DISABLE_OPUSH="yes"
+# Don't register OBEX-FTP service at local ServiceDiscoveryProtocol Server.
+DISABLE_OBEXFTP="yes"
+DISABLE_OBEXFTP_LISTING="yes"
+
+# Enable transfer log via syslog(8).
+USE_SYSLOG="yes"
+
+# Additional options. See sobexsrv(8)
+#SOBEXSRV_OPT="-l NPTD -m /etc/sobexsrv-mime"
diff --git a/app-mobilephone/sobexsrv/files/digest-sobexsrv-1.0.0_pre4 b/app-mobilephone/sobexsrv/files/digest-sobexsrv-1.0.0_pre4
new file mode 100644
index 000000000000..bd53cc58a6a2
--- /dev/null
+++ b/app-mobilephone/sobexsrv/files/digest-sobexsrv-1.0.0_pre4
@@ -0,0 +1 @@
+MD5 cdb5828a4b8a5da3b3f126012bcabe4f sobexsrv-1.0.0pre4.tar.gz 26858
diff --git a/app-mobilephone/sobexsrv/files/init.d_sobexsrv b/app-mobilephone/sobexsrv/files/init.d_sobexsrv
new file mode 100644
index 000000000000..e3611f5d62b2
--- /dev/null
+++ b/app-mobilephone/sobexsrv/files/init.d_sobexsrv
@@ -0,0 +1,59 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/sobexsrv/files/init.d_sobexsrv,v 1.1 2006/03/21 16:57:06 joker Exp $
+
+depend() {
+ need bluetooth
+ use logger
+}
+
+check_config() {
+ if [[ -z "${USER}" ]] ; then
+ eerror "Please set \$USER in /etc/conf.d/sobexsrv!"
+ return 1
+ fi
+ if [[ -z "${GROUP}" ]] ; then
+ eerror "Please set \$GROUP in /etc/conf.d/sobexsrv!"
+ return 1
+ fi
+
+ if [[ ${CHROOT} == "yes" ]] ; then
+ if [[ ! -u /usr/bin/sobexsrv ]] ; then
+ eerror "The \$CHROOT option requires /usr/bin/sobexsrv to be suid root!"
+ return 1
+ fi
+ fi
+
+ if [[ -z "${INBOX}" || ! -e "${INBOX}" ]] ; then
+ eerror "Please configure \$INBOX correctly in /etc/conf.d/sobexsrv!"
+ return 1
+ fi
+}
+
+
+start() {
+ check_config || return 1
+
+ ebegin "Starting sobexsrv"
+
+ OPTIONS=""
+ [[ -n "${CHANNEL}" ]] && OPTIONS="${OPTIONS} -c ${CHANNEL}"
+ [[ -n "${SECURITY_LEVEL}" ]] && OPTIONS="${OPTIONS} -s ${SECURITY_LEVEL}"
+ [[ "${CHROOT}" == "yes" ]] && OPTIONS="${OPTIONS} -R"
+ [[ "${DISABLE_OPUSH}" == "yes" ]] && OPTIONS="${OPTIONS} -o"
+ [[ "${DISABLE_OBEXFTP}" == "yes" ]] && OPTIONS="${OPTIONS} -f"
+ [[ "${DISABLE_OBEXFTP_LISTING}" == "yes" ]] && OPTIONS="${OPTIONS} -F"
+ [[ "${USE_SYSLOG}" == "yes" ]] && OPTIONS="${OPTIONS} -S"
+
+ OPTIONS="-I -r ${INBOX} ${OPTIONS} ${SOBEXSRV_OPT}"
+
+ start-stop-daemon --chuid ${USER}:${GROUP} --start --quiet --exec /usr/bin/sobexsrv -- $OPTIONS
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping sobexsrv"
+ start-stop-daemon --stop --quiet --exec /usr/bin/sobexsrv
+ eend $?
+}
diff --git a/app-mobilephone/sobexsrv/metadata.xml b/app-mobilephone/sobexsrv/metadata.xml
new file mode 100644
index 000000000000..bebd3f48a91f
--- /dev/null
+++ b/app-mobilephone/sobexsrv/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>mobile-phone</herd>
+<maintainer>
+ <email>joker@gentoo.org</email>
+ <name>Christian Birchinger</name>
+</maintainer>
+ <longdescription>sobexsrv is a Bluetooth OBEX server with Bluetooth
+Security Mode-2 (application triggered security) support. It implements
+OPUSH (put), OPULL (get) and OBEX-FTP (setpath + directory listing) and
+therefore is a full OBEX server. Further it supports pulling generic
+mime-types and provides a capability object. sobexsrv was designed with
+flexibility and security in mind and supports chroot (if suid root drop to
+calling uid immediately). For flexibility a scripting interface provides
+access to all functionalities of the server and therefore allows
+implementation of further OBEX services on top of sobexsrv.</longdescription>
+</pkgmetadata>
diff --git a/app-mobilephone/sobexsrv/sobexsrv-1.0.0_pre4.ebuild b/app-mobilephone/sobexsrv/sobexsrv-1.0.0_pre4.ebuild
new file mode 100644
index 000000000000..d6ac288c5bf4
--- /dev/null
+++ b/app-mobilephone/sobexsrv/sobexsrv-1.0.0_pre4.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-mobilephone/sobexsrv/sobexsrv-1.0.0_pre4.ebuild,v 1.1 2006/03/21 16:57:06 joker Exp $
+
+inherit eutils
+
+MY_P="${P/_pre/pre}"
+
+IUSE="gtk"
+
+DESCRIPTION="Scripting/Secure OBEX Server (for BlueZ Linux)"
+SRC_URI="http://www.mulliner.org/bluetooth/${MY_P}.tar.gz"
+HOMEPAGE="http://www.mulliner.org/bluetooth/sobexsrv.php"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~amd64 ~x86 ~sparc"
+
+DEPEND="dev-libs/openobex
+ net-wireless/bluez-libs"
+
+RDEPEND="${DEPEND}
+ gtk? ( >=dev-python/pygtk-2.2 )"
+
+S="${WORKDIR}/${MY_P}"
+
+
+pkg_setup() {
+ enewgroup sobexsrv
+ enewuser sobexsrv -1 -1 /var/spool/sobexsrv sobexsrv
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd "${S}/src"
+ sed -e 's/^CFLAGS =/CFLAGS +=/' \
+ -e 's/^CC =/CC ?=/' \
+ -i Makefile
+}
+
+src_compile() {
+ emake || die "emake failed"
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+ dodoc AUTHOR CHANGELOG CONFIG README SECURITY TODO
+
+ use gtk || rm "${D}/usr/bin/sobexsrv_handler"
+
+ newinitd "${FILESDIR}/init.d_sobexsrv" sobexsrv
+ newconfd "${FILESDIR}/conf.d_sobexsrv" sobexsrv
+
+ keepdir /var/spool/sobexsrv
+ fowners sobexsrv:sobexsrv /var/spool/sobexsrv
+}
+
+pkg_postinst() {
+ echo
+ einfo "/usr/bin/sobexsrv is *NOT* installed set-uid root by"
+ einfo "default. suid is required for the chroot option (-R)."
+ echo
+ einfo "Execute the following commands to enable suid:"
+ echo
+ einfo "chown root:sobexsrv /usr/bin/sobexsrv"
+ einfo "chmod 2710 /usr/bin/sobexsrv"
+ echo
+}