Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/pmount/
Date: Wed, 05 Jun 2019 07:47:23
Message-Id: 1559720833.5f9764e202a31f3a64113b24c24bcd7558fb7d0c.mgorny@gentoo
1 commit: 5f9764e202a31f3a64113b24c24bcd7558fb7d0c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jun 5 07:41:40 2019 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 5 07:47:13 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f9764e2
7
8 sys-apps/pmount: Drop old
9
10 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
11
12 sys-apps/pmount/pmount-0.9.99_alpha-r3.ebuild | 82 ---------------------------
13 1 file changed, 82 deletions(-)
14
15 diff --git a/sys-apps/pmount/pmount-0.9.99_alpha-r3.ebuild b/sys-apps/pmount/pmount-0.9.99_alpha-r3.ebuild
16 deleted file mode 100644
17 index 7f24b703357..00000000000
18 --- a/sys-apps/pmount/pmount-0.9.99_alpha-r3.ebuild
19 +++ /dev/null
20 @@ -1,82 +0,0 @@
21 -# Copyright 1999-2014 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -
24 -EAPI=5
25 -inherit eutils user
26 -
27 -DESCRIPTION="Policy based mounter that gives the ability to mount removable devices as a user"
28 -HOMEPAGE="http://pmount.alioth.debian.org/"
29 -SRC_URI="mirror://debian/pool/main/p/${PN}/${PN}_${PV/_/-}.orig.tar.bz2"
30 -#SRC_URI="http://alioth.debian.org/frs/download.php/3530/${P/_/-}.tar.bz2"
31 -
32 -LICENSE="GPL-2"
33 -SLOT="0"
34 -KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 ~sh sparc x86"
35 -IUSE="crypt"
36 -
37 -RDEPEND=">=sys-apps/util-linux-2.17.2
38 - crypt? ( >=sys-fs/cryptsetup-1.0.6-r2 )"
39 -DEPEND="${RDEPEND}
40 - dev-util/intltool
41 - sys-devel/gettext"
42 -
43 -S=${WORKDIR}/${P/_/-}
44 -
45 -pkg_setup() {
46 - enewgroup plugdev
47 -}
48 -
49 -src_prepare() {
50 - # Restore default value from pmount <= 0.9.23 wrt #393633
51 - sed -i -e '/^not_physically_logged_allow/s:=.*:= yes:' etc/pmount.conf || die
52 -
53 - cat <<-EOF > po/POTFILES.skip
54 - src/conffile.c
55 - src/configuration.c
56 - src/loop.c
57 - EOF
58 -
59 - epatch \
60 - "${FILESDIR}"/${PN}-0.9.19-testsuite-missing-dir.patch \
61 - "${FILESDIR}"/${P}-locale-regex.patch
62 -}
63 -
64 -src_configure() {
65 - econf --disable-hal
66 -}
67 -
68 -src_test() {
69 - local testdir=${S}/tests/check_fstab
70 -
71 - ln -s $testdir/a $testdir/b && ln -s $testdir/d $testdir/c && \
72 - ln -s $testdir/c $testdir/e \
73 - || die "Unable to create fake symlinks required for testsuite"
74 -
75 - emake check
76 -}
77 -
78 -src_install () {
79 - # Must be run SETUID+SETGID, bug #250106
80 - exeinto /usr/bin
81 - exeopts -m 6710 -g plugdev
82 - doexe src/{p,pu}mount
83 -
84 - dodoc AUTHORS ChangeLog TODO
85 - doman man/{{p,pu}mount.1,pmount.conf.5}
86 -
87 - insinto /etc
88 - doins etc/pmount.{allow,conf}
89 -
90 - keepdir /media #501772
91 -}
92 -
93 -pkg_postinst() {
94 - elog
95 - elog "This package has been installed setuid and setgid."
96 -
97 - elog "The permissions are as such that only users that belong to the plugdev"
98 - elog "group are allowed to run this. But if a script run by root mounts a"
99 - elog "device, members of the plugdev group will have access to it."
100 - elog
101 - elog "Please add your user to the plugdev group to be able to mount USB drives"
102 -}