1 |
commit: f6dabef6c44fbb99e0d478b395540ffd065d73bd |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 9 08:21:35 2020 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 9 08:43:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6dabef6 |
7 |
|
8 |
app-mobilephone/sobexsrv: Remove old |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild | 93 ----------------------- |
13 |
1 file changed, 93 deletions(-) |
14 |
|
15 |
diff --git a/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild b/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild |
16 |
deleted file mode 100644 |
17 |
index 442f57871b0..00000000000 |
18 |
--- a/app-mobilephone/sobexsrv/sobexsrv-1.0.1-r2.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,93 +0,0 @@ |
21 |
-# Copyright 1999-2018 Gentoo Authors |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
- |
24 |
-EAPI=6 |
25 |
-PYTHON_COMPAT=( python2_7 ) |
26 |
- |
27 |
-inherit python-single-r1 toolchain-funcs user |
28 |
- |
29 |
-MY_P="${P/_pre/pre}" |
30 |
- |
31 |
-DESCRIPTION="Scripting/Secure OBEX Server (for BlueZ Linux)" |
32 |
-SRC_URI="http://www.mulliner.org/bluetooth/${MY_P}.tar.gz |
33 |
- https://dev.gentoo.org/~joker/${P}-fix64.patch" |
34 |
-HOMEPAGE="http://www.mulliner.org/bluetooth/sobexsrv.php" |
35 |
- |
36 |
-SLOT="0" |
37 |
-LICENSE="GPL-2" |
38 |
-KEYWORDS="amd64 ppc x86" |
39 |
-IUSE="gtk" |
40 |
- |
41 |
-DEPEND=" |
42 |
- >=dev-libs/openobex-1.7.2-r1 |
43 |
- net-wireless/bluez |
44 |
- gtk? ( ${PYTHON_DEPS} )" |
45 |
-RDEPEND="${DEPEND} |
46 |
- gtk? ( |
47 |
- ${PYTHON_DEPS} |
48 |
- >=dev-python/pygtk-2.2 |
49 |
- )" |
50 |
-REQUIRED_USE=" |
51 |
- gtk? ( ${PYTHON_REQUIRED_USE} )" |
52 |
- |
53 |
-S="${WORKDIR}/${MY_P}" |
54 |
- |
55 |
-PATCHES=( |
56 |
- "${DISTDIR}/${P}"-fix64.patch |
57 |
- "${FILESDIR}/${P}"-openobex16.patch |
58 |
-) |
59 |
- |
60 |
-pkg_setup() { |
61 |
- use gtk && python-single-r1_pkg_setup |
62 |
- |
63 |
- enewgroup sobexsrv |
64 |
- enewuser sobexsrv -1 -1 /var/spool/sobexsrv sobexsrv |
65 |
-} |
66 |
- |
67 |
-src_prepare() { |
68 |
- default |
69 |
- |
70 |
- sed -e 's:/usr/man/man8:/usr/share/man/man8:' \ |
71 |
- -e 's/install: all/install:/' \ |
72 |
- -i Makefile || die |
73 |
- |
74 |
- sed -e 's/^CFLAGS =/CFLAGS +=/' \ |
75 |
- -e 's/^CC =/CC ?=/' \ |
76 |
- -e 's/$(CC) $(CFLAGS)/$(CC) $(LDFLAGS) $(CFLAGS)/' \ |
77 |
- -i src/Makefile || die |
78 |
-} |
79 |
- |
80 |
-src_compile() { |
81 |
- tc-export CC |
82 |
- emake -C src |
83 |
-} |
84 |
- |
85 |
-src_install() { |
86 |
- default |
87 |
- dodoc AUTHOR CONFIG SECURITY THANKS |
88 |
- |
89 |
- if use gtk; then |
90 |
- python_doscript "${D}/usr/bin/sobexsrv_handler" |
91 |
- newdoc "${S}/scripts/test" sobexsrv_handler.sample_script |
92 |
- else |
93 |
- rm "${D}/usr/bin/sobexsrv_handler" || die |
94 |
- fi |
95 |
- |
96 |
- newinitd "${FILESDIR}/init.d_sobexsrv" sobexsrv |
97 |
- newconfd "${FILESDIR}/conf.d_sobexsrv" sobexsrv |
98 |
- |
99 |
- keepdir /var/spool/sobexsrv |
100 |
- fowners sobexsrv:sobexsrv /var/spool/sobexsrv |
101 |
-} |
102 |
- |
103 |
-pkg_postinst() { |
104 |
- elog |
105 |
- elog "/usr/bin/sobexsrv is *NOT* installed set-uid root by" |
106 |
- elog "default. suid is required for the chroot option (-R)." |
107 |
- elog |
108 |
- elog "Execute the following commands to enable suid:" |
109 |
- elog |
110 |
- elog "chown root:sobexsrv /usr/bin/sobexsrv" |
111 |
- elog "chmod 4710 /usr/bin/sobexsrv" |
112 |
- elog |
113 |
-} |