cleaned up ebuild with suggestions from Betelgeuse
authorDoug Goldstein <cardoe@gentoo.org>
Thu, 25 Aug 2005 16:07:09 +0000 (16:07 +0000)
committerDoug Goldstein <cardoe@gentoo.org>
Thu, 25 Aug 2005 16:07:09 +0000 (16:07 +0000)
Package-Manager: portage-2.0.51.22-r2

sys-apps/pmount/ChangeLog
sys-apps/pmount/Manifest
sys-apps/pmount/files/digest-pmount-0.9.3-r1 [moved from sys-apps/pmount/files/digest-pmount-0.9.3 with 100% similarity]
sys-apps/pmount/pmount-0.9.3-r1.ebuild [moved from sys-apps/pmount/pmount-0.9.3.ebuild with 52% similarity]

index 2e75691ab50f7f9c4e2ab7e230357b57ac84af21..011675e7178f2b6cc94beff4e6458378cf01143b 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for sys-apps/pmount
 # Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pmount/ChangeLog,v 1.4 2005/08/24 06:22:11 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pmount/ChangeLog,v 1.5 2005/08/25 16:07:09 cardoe Exp $
+
+*pmount-0.9.3-r1 (25 Aug 2005)
+
+  25 Aug 2005; Doug Goldstein <cardoe@gentoo.org> -pmount-0.9.3.ebuild,
+  +pmount-0.9.3-r1.ebuild:
+  cleaned up ebuild with suggestions from Betelgeuse
 
 *pmount-0.9.3 (24 Aug 2005)
 
index badd98ba2e32965177f495ee2627b4cb66f2dac2..d2228ec50d10fc82ebacd35e107a848a0ed55769 100644 (file)
@@ -2,13 +2,13 @@
 Hash: SHA1
 
 MD5 aac86bf5e50eb9cef83a6f6800c560af metadata.xml 253
-MD5 0a0130850a45e899d83b01f4d1acf664 pmount-0.9.3.ebuild 1121
-MD5 e471764442c16739fb435810c61dd7ae ChangeLog 401
-MD5 840c7e69303d19acc8e0a62976a4c135 files/digest-pmount-0.9.3 63
+MD5 511eb470ce91e062fb6ac31c3837fd6e ChangeLog 586
+MD5 38e0525e6391a1211ef0b8d978cd3569 pmount-0.9.3-r1.ebuild 1462
+MD5 840c7e69303d19acc8e0a62976a4c135 files/digest-pmount-0.9.3-r1 63
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.2 (GNU/Linux)
 
-iD8DBQFDDBTgBtvusYtCZMsRAnzAAJ96WBG+qlJ1Gjowph2JCavXzwro+wCeKit4
-I472M1ZeDje4O2CRkqaKlaU=
-=prtM
+iD8DBQFDDezmBtvusYtCZMsRAme6AJ95AW9PP36Cd+/aebFB/NA7XsAZQwCfcGdw
+agKjy3a4l8hCtM0zSgL5LOI=
+=hr+X
 -----END PGP SIGNATURE-----
similarity index 52%
rename from sys-apps/pmount/pmount-0.9.3.ebuild
rename to sys-apps/pmount/pmount-0.9.3-r1.ebuild
index eec80a4b35a595af66945fda1b11072a218a4b3d..42a04d966d03036cd9764c8d25c920939dd14664 100644 (file)
@@ -1,10 +1,10 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/pmount/pmount-0.9.3.ebuild,v 1.1 2005/08/24 06:22:11 cardoe Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/pmount/pmount-0.9.3-r1.ebuild,v 1.1 2005/08/25 16:07:09 cardoe Exp $
 
 inherit eutils
 
-DESCRIPTION="Mount removable devices as a normal user"
+DESCRIPTION="Policy based mounter that gives the ability to mount removable devices as a user"
 SRC_URI="http://www.piware.de/projects/${P}.tar.gz"
 HOMEPAGE="http://www.piware.de/projects.shtml"
 LICENSE="GPL-2"
@@ -16,7 +16,7 @@ IUSE="crypt"
 RDEPEND=">=sys-apps/dbus-0.33
        >=sys-apps/hal-0.5.1
        >=sys-fs/sysfsutils-1.0
-       crypt? ( sys-fs/cryptsetup )"
+       crypt? ( sys-fs/cryptsetup-luks )"
 
 DEPEND=${RDEPEND}
 
@@ -26,15 +26,34 @@ pkg_setup() {
        enewgroup plugdev || die "Error creating plugdev group"
 }
 
+src_unpack() {
+       unpack ${A}
+       cd ${S}
+       sed -e 's:/sbin/cryptsetup:/bin/cryptsetup:' -i policy.h
+}
+
 src_install () {
-       dobin pmount-hal pmount pumount
-       dodoc AUTHORS CHANGES
+       #this is where we mount stuff
+       dodir /media
+
+       # HAL informed mounter, used by Gnome/KDE
+       dobin pmount-hal
+
+       # Must be run SETUID
+       exeinto /usr/bin
+       exeopts -m 4770
+       doexe pmount pumount
+       fowners -1:plugdev /usr/bin/pmount
+       fowners -1:plugdev /usr/bin/pumount
+
+       dodoc AUTHORS CHANGES TODO
+       doman pmount.1 pumount.1
+
+       insinto /etc
+       doins pmount.allow
 }
 
 pkg_postinst() {
-       chown root:plugdev /usr/bin/pmount /usr/bin/pumount
-       chmod 4770 /usr/bin/pmount /usr/bin/pumount
-
        einfo
        einfo "This package has been installed setuid.  The permissions are as such that"
        einfo "only users that belong to the plugdev group are allowed to run this."