Gentoo Archives: gentoo-commits

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