1 |
commit: f5d48e16d64ed36734a7aea566d5cb211a94b6b3 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Sep 6 09:53:06 2020 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Sep 6 09:56:55 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5d48e16 |
7 |
|
8 |
app-mobilephone/sobexsrv: ebuild fixes |
9 |
|
10 |
- Migrate to GLEP 81 |
11 |
- Update to EAPI 7 |
12 |
- Drop USE=gtk as it requires python2-only dev-python/pygtk |
13 |
|
14 |
Bug: https://bugs.gentoo.org/708178 |
15 |
Package-Manager: Portage-3.0.5, Repoman-3.0.1 |
16 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
17 |
|
18 |
app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild | 72 +++++++++++++++++++++++ |
19 |
1 file changed, 72 insertions(+) |
20 |
|
21 |
diff --git a/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..e748963f7b5 |
24 |
--- /dev/null |
25 |
+++ b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r3.ebuild |
26 |
@@ -0,0 +1,72 @@ |
27 |
+# Copyright 1999-2020 Gentoo Authors |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=7 |
31 |
+ |
32 |
+inherit toolchain-funcs |
33 |
+ |
34 |
+MY_P="${P/_pre/pre}" |
35 |
+ |
36 |
+DESCRIPTION="Scripting/Secure OBEX Server (for BlueZ Linux)" |
37 |
+SRC_URI="http://www.mulliner.org/bluetooth/${MY_P}.tar.gz |
38 |
+ https://dev.gentoo.org/~joker/${P}-fix64.patch" |
39 |
+HOMEPAGE="http://www.mulliner.org/bluetooth/sobexsrv.php" |
40 |
+ |
41 |
+SLOT="0" |
42 |
+LICENSE="GPL-2" |
43 |
+KEYWORDS="~amd64 ~ppc ~x86" |
44 |
+ |
45 |
+DEPEND=" |
46 |
+ >=dev-libs/openobex-1.7.2-r1 |
47 |
+ net-wireless/bluez |
48 |
+" |
49 |
+RDEPEND="${DEPEND} |
50 |
+ acct-user/sobexsrv |
51 |
+ acct-group/sobexsrv |
52 |
+" |
53 |
+ |
54 |
+S="${WORKDIR}/${MY_P}" |
55 |
+ |
56 |
+PATCHES=( |
57 |
+ "${DISTDIR}/${P}"-fix64.patch |
58 |
+ "${FILESDIR}/${P}"-openobex16.patch |
59 |
+) |
60 |
+ |
61 |
+src_prepare() { |
62 |
+ default |
63 |
+ |
64 |
+ sed -e 's:/usr/man/man8:/usr/share/man/man8:' \ |
65 |
+ -e 's/install: all/install:/' \ |
66 |
+ -i Makefile || die |
67 |
+ |
68 |
+ sed -e 's/^CFLAGS =/CFLAGS +=/' \ |
69 |
+ -e 's/^CC =/CC ?=/' \ |
70 |
+ -e 's/$(CC) $(CFLAGS)/$(CC) $(LDFLAGS) $(CFLAGS)/' \ |
71 |
+ -i src/Makefile || die |
72 |
+} |
73 |
+ |
74 |
+src_compile() { |
75 |
+ tc-export CC |
76 |
+ emake -C src |
77 |
+} |
78 |
+ |
79 |
+src_install() { |
80 |
+ default |
81 |
+ dodoc AUTHOR CONFIG SECURITY THANKS |
82 |
+ rm "${D}/usr/bin/sobexsrv_handler" || die |
83 |
+ |
84 |
+ newinitd "${FILESDIR}/init.d_sobexsrv" sobexsrv |
85 |
+ newconfd "${FILESDIR}/conf.d_sobexsrv" sobexsrv |
86 |
+} |
87 |
+ |
88 |
+pkg_postinst() { |
89 |
+ elog |
90 |
+ elog "/usr/bin/sobexsrv is *NOT* installed set-uid root by" |
91 |
+ elog "default. suid is required for the chroot option (-R)." |
92 |
+ elog |
93 |
+ elog "Execute the following commands to enable suid:" |
94 |
+ elog |
95 |
+ elog "chown root:sobexsrv /usr/bin/sobexsrv" |
96 |
+ elog "chmod 4710 /usr/bin/sobexsrv" |
97 |
+ elog |
98 |
+} |