1 |
commit: 220cb9088a6b133682ab7ad4aab3b8b8cad8b862 |
2 |
Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Oct 27 18:36:19 2018 +0000 |
4 |
Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Oct 27 18:40:28 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=220cb908 |
7 |
|
8 |
app-mobilephone/sobexsrv: fix bug 660400 |
9 |
|
10 |
Depend on >=dev-libs/openobex-1.7.2-r1, which provides fixed |
11 |
version.h header. |
12 |
|
13 |
Closes: https://bugs.gentoo.org/660400 |
14 |
Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org> |
15 |
Package-Manager: Portage-2.3.51, Repoman-2.3.11 |
16 |
|
17 |
app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild | 93 +++++++++++++++++++++++ |
18 |
1 file changed, 93 insertions(+) |
19 |
|
20 |
diff --git a/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild |
21 |
new file mode 100644 |
22 |
index 00000000000..7cba2f73e84 |
23 |
--- /dev/null |
24 |
+++ b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild |
25 |
@@ -0,0 +1,93 @@ |
26 |
+# Copyright 1999-2018 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+EAPI=6 |
30 |
+PYTHON_COMPAT=( python2_7 ) |
31 |
+ |
32 |
+inherit python-single-r1 toolchain-funcs user |
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 |
+IUSE="gtk" |
45 |
+ |
46 |
+DEPEND=" |
47 |
+ >=dev-libs/openobex-1.7.2-r1 |
48 |
+ net-wireless/bluez |
49 |
+ gtk? ( ${PYTHON_DEPS} )" |
50 |
+RDEPEND="${DEPEND} |
51 |
+ gtk? ( |
52 |
+ ${PYTHON_DEPS} |
53 |
+ >=dev-python/pygtk-2.2 |
54 |
+ )" |
55 |
+REQUIRED_USE=" |
56 |
+ gtk? ( ${PYTHON_REQUIRED_USE} )" |
57 |
+ |
58 |
+S="${WORKDIR}/${MY_P}" |
59 |
+ |
60 |
+PATCHES=( |
61 |
+ "${DISTDIR}/${P}"-fix64.patch |
62 |
+ "${FILESDIR}/${P}"-openobex16.patch |
63 |
+) |
64 |
+ |
65 |
+pkg_setup() { |
66 |
+ use gtk && python-single-r1_pkg_setup |
67 |
+ |
68 |
+ enewgroup sobexsrv |
69 |
+ enewuser sobexsrv -1 -1 /var/spool/sobexsrv sobexsrv |
70 |
+} |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ |
75 |
+ sed -e 's:/usr/man/man8:/usr/share/man/man8:' \ |
76 |
+ -e 's/install: all/install:/' \ |
77 |
+ -i Makefile || die |
78 |
+ |
79 |
+ sed -e 's/^CFLAGS =/CFLAGS +=/' \ |
80 |
+ -e 's/^CC =/CC ?=/' \ |
81 |
+ -e 's/$(CC) $(CFLAGS)/$(CC) $(LDFLAGS) $(CFLAGS)/' \ |
82 |
+ -i src/Makefile || die |
83 |
+} |
84 |
+ |
85 |
+src_compile() { |
86 |
+ tc-export CC |
87 |
+ emake -C src |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ default |
92 |
+ dodoc AUTHOR CONFIG SECURITY THANKS |
93 |
+ |
94 |
+ if use gtk; then |
95 |
+ python_doscript "${D}/usr/bin/sobexsrv_handler" |
96 |
+ newdoc "${S}/scripts/test" sobexsrv_handler.sample_script |
97 |
+ else |
98 |
+ rm "${D}/usr/bin/sobexsrv_handler" || die |
99 |
+ fi |
100 |
+ |
101 |
+ newinitd "${FILESDIR}/init.d_sobexsrv" sobexsrv |
102 |
+ newconfd "${FILESDIR}/conf.d_sobexsrv" sobexsrv |
103 |
+ |
104 |
+ keepdir /var/spool/sobexsrv |
105 |
+ fowners sobexsrv:sobexsrv /var/spool/sobexsrv |
106 |
+} |
107 |
+ |
108 |
+pkg_postinst() { |
109 |
+ elog |
110 |
+ elog "/usr/bin/sobexsrv is *NOT* installed set-uid root by" |
111 |
+ elog "default. suid is required for the chroot option (-R)." |
112 |
+ elog |
113 |
+ elog "Execute the following commands to enable suid:" |
114 |
+ elog |
115 |
+ elog "chown root:sobexsrv /usr/bin/sobexsrv" |
116 |
+ elog "chmod 4710 /usr/bin/sobexsrv" |
117 |
+ elog |
118 |
+} |