From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 3262D138334 for ; Sat, 27 Oct 2018 18:40:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 005B7E08C4; Sat, 27 Oct 2018 18:40:45 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id AF9ACE08C4 for ; Sat, 27 Oct 2018 18:40:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1E25E335C8C for ; Sat, 27 Oct 2018 18:40:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id F0C8744F for ; Sat, 27 Oct 2018 18:40:39 +0000 (UTC) From: "Andrew Savchenko" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Savchenko" Message-ID: <1540665628.220cb9088a6b133682ab7ad4aab3b8b8cad8b862.bircoph@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-mobilephone/sobexsrv/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild X-VCS-Directories: app-mobilephone/sobexsrv/ X-VCS-Committer: bircoph X-VCS-Committer-Name: Andrew Savchenko X-VCS-Revision: 220cb9088a6b133682ab7ad4aab3b8b8cad8b862 X-VCS-Branch: master Date: Sat, 27 Oct 2018 18:40:39 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 6a89b566-64c4-4c69-8a3d-f5a52983d97a X-Archives-Hash: 0aa8df0d01d67555bbc5f1d478e66ae2 commit: 220cb9088a6b133682ab7ad4aab3b8b8cad8b862 Author: Andrew Savchenko gentoo org> AuthorDate: Sat Oct 27 18:36:19 2018 +0000 Commit: Andrew Savchenko gentoo org> CommitDate: Sat Oct 27 18:40:28 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=220cb908 app-mobilephone/sobexsrv: fix bug 660400 Depend on >=dev-libs/openobex-1.7.2-r1, which provides fixed version.h header. Closes: https://bugs.gentoo.org/660400 Signed-off-by: Andrew Savchenko gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild | 93 +++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild new file mode 100644 index 00000000000..7cba2f73e84 --- /dev/null +++ b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 ) + +inherit python-single-r1 toolchain-funcs user + +MY_P="${P/_pre/pre}" + +DESCRIPTION="Scripting/Secure OBEX Server (for BlueZ Linux)" +SRC_URI="http://www.mulliner.org/bluetooth/${MY_P}.tar.gz + https://dev.gentoo.org/~joker/${P}-fix64.patch" +HOMEPAGE="http://www.mulliner.org/bluetooth/sobexsrv.php" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="gtk" + +DEPEND=" + >=dev-libs/openobex-1.7.2-r1 + net-wireless/bluez + gtk? ( ${PYTHON_DEPS} )" +RDEPEND="${DEPEND} + gtk? ( + ${PYTHON_DEPS} + >=dev-python/pygtk-2.2 + )" +REQUIRED_USE=" + gtk? ( ${PYTHON_REQUIRED_USE} )" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${DISTDIR}/${P}"-fix64.patch + "${FILESDIR}/${P}"-openobex16.patch +) + +pkg_setup() { + use gtk && python-single-r1_pkg_setup + + enewgroup sobexsrv + enewuser sobexsrv -1 -1 /var/spool/sobexsrv sobexsrv +} + +src_prepare() { + default + + sed -e 's:/usr/man/man8:/usr/share/man/man8:' \ + -e 's/install: all/install:/' \ + -i Makefile || die + + sed -e 's/^CFLAGS =/CFLAGS +=/' \ + -e 's/^CC =/CC ?=/' \ + -e 's/$(CC) $(CFLAGS)/$(CC) $(LDFLAGS) $(CFLAGS)/' \ + -i src/Makefile || die +} + +src_compile() { + tc-export CC + emake -C src +} + +src_install() { + default + dodoc AUTHOR CONFIG SECURITY THANKS + + if use gtk; then + python_doscript "${D}/usr/bin/sobexsrv_handler" + newdoc "${S}/scripts/test" sobexsrv_handler.sample_script + else + rm "${D}/usr/bin/sobexsrv_handler" || die + fi + + newinitd "${FILESDIR}/init.d_sobexsrv" sobexsrv + newconfd "${FILESDIR}/conf.d_sobexsrv" sobexsrv + + keepdir /var/spool/sobexsrv + fowners sobexsrv:sobexsrv /var/spool/sobexsrv +} + +pkg_postinst() { + elog + elog "/usr/bin/sobexsrv is *NOT* installed set-uid root by" + elog "default. suid is required for the chroot option (-R)." + elog + elog "Execute the following commands to enable suid:" + elog + elog "chown root:sobexsrv /usr/bin/sobexsrv" + elog "chmod 4710 /usr/bin/sobexsrv" + elog +}