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 8D6BF138359 for ; Sun, 6 Sep 2020 09:57:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7805EE0985; Sun, 6 Sep 2020 09:57:10 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 5DEE8E0985 for ; Sun, 6 Sep 2020 09:57:10 +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 4C121340C20 for ; Sun, 6 Sep 2020 09:57:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AA454348 for ; Sun, 6 Sep 2020 09:57:07 +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: <1599386215.f5d48e16d64ed36734a7aea566d5cb211a94b6b3.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-r3.ebuild X-VCS-Directories: app-mobilephone/sobexsrv/ X-VCS-Committer: bircoph X-VCS-Committer-Name: Andrew Savchenko X-VCS-Revision: f5d48e16d64ed36734a7aea566d5cb211a94b6b3 X-VCS-Branch: master Date: Sun, 6 Sep 2020 09:57:07 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 53502eab-1ced-4fbc-9afe-e9f87407b5e1 X-Archives-Hash: 59293e8abcd1216ced26b61c2b78b263 commit: f5d48e16d64ed36734a7aea566d5cb211a94b6b3 Author: Andrew Savchenko gentoo org> AuthorDate: Sun Sep 6 09:53:06 2020 +0000 Commit: Andrew Savchenko gentoo org> CommitDate: Sun Sep 6 09:56:55 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5d48e16 app-mobilephone/sobexsrv: ebuild fixes - Migrate to GLEP 81 - Update to EAPI 7 - Drop USE=gtk as it requires python2-only dev-python/pygtk Bug: https://bugs.gentoo.org/708178 Package-Manager: Portage-3.0.5, Repoman-3.0.1 Signed-off-by: Andrew Savchenko gentoo.org> app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild | 72 +++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild new file mode 100644 index 00000000000..e748963f7b5 --- /dev/null +++ b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild @@ -0,0 +1,72 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs + +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" + +DEPEND=" + >=dev-libs/openobex-1.7.2-r1 + net-wireless/bluez +" +RDEPEND="${DEPEND} + acct-user/sobexsrv + acct-group/sobexsrv +" + +S="${WORKDIR}/${MY_P}" + +PATCHES=( + "${DISTDIR}/${P}"-fix64.patch + "${FILESDIR}/${P}"-openobex16.patch +) + +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 + rm "${D}/usr/bin/sobexsrv_handler" || die + + newinitd "${FILESDIR}/init.d_sobexsrv" sobexsrv + newconfd "${FILESDIR}/conf.d_sobexsrv" 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 +}