Add new revision with pmount useflag to work better when coupled with pmount wrappers.
authorDiego Elio Pettenò <flameeyes@gentoo.org>
Thu, 15 Jun 2006 10:09:19 +0000 (10:09 +0000)
committerDiego Elio Pettenò <flameeyes@gentoo.org>
Thu, 15 Jun 2006 10:09:19 +0000 (10:09 +0000)
Package-Manager: portage-2.1

sys-block/unieject/ChangeLog
sys-block/unieject/Manifest
sys-block/unieject/files/digest-unieject-5.2-r1 [new file with mode: 0644]
sys-block/unieject/unieject-5.2-r1.ebuild [new file with mode: 0644]

index 11afcb343720a83d9bd3d17a6319a63931f6a8fc..5d5c64158d3e687ed435fe2288c174bab7216a50 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for sys-block/unieject
 # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-block/unieject/ChangeLog,v 1.23 2006/06/05 05:50:44 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-block/unieject/ChangeLog,v 1.24 2006/06/15 10:09:19 flameeyes Exp $
+
+*unieject-5.2-r1 (15 Jun 2006)
+
+  15 Jun 2006; Diego Pettenò <flameeyes@gentoo.org>
+  +unieject-5.2-r1.ebuild:
+  Add new revision with pmount useflag to work better when coupled with pmount
+  wrappers.
 
 *unieject-5.2 (05 Jun 2006)
 
index 825be09ed970a521ece8867af3e930b79c060319..6f3e89f510a6f7e92d6966f0dfe354d046f7d42e 100644 (file)
@@ -2,14 +2,18 @@
 Hash: SHA1
 
 DIST unieject-5.2.tar.bz2 301463 RMD160 61edef4319c2accef9693fdf1143cabd3a2e109a SHA1 d86fe3dc735841a4d7da2b5d50012a0b7ce172b1 SHA256 866e72717a162d59e09bcc9d998e5e0347eb22874481e9dcb7af04c9e0dc8bfd
+EBUILD unieject-5.2-r1.ebuild 2013 RMD160 c2803623c42e377400274bb646dbc026d9308205 SHA1 a967ae68332e2ad603d30fabeab3d009e84f5674 SHA256 d126d8e8cc90d107c89f10c08bee8a21a8c78eb7cab58b68a89e9d479c79102e
+MD5 4995f8a6fb594c2ab929ea7f2d54d0e8 unieject-5.2-r1.ebuild 2013
+RMD160 c2803623c42e377400274bb646dbc026d9308205 unieject-5.2-r1.ebuild 2013
+SHA256 d126d8e8cc90d107c89f10c08bee8a21a8c78eb7cab58b68a89e9d479c79102e unieject-5.2-r1.ebuild 2013
 EBUILD unieject-5.2.ebuild 1389 RMD160 8f754ef005f5c99655f9b751c7801ff8860969e6 SHA1 1412c6876e85a1540c9bfe216df98475f71f18be SHA256 804eeeee84e174dff411741645f8a5cc356650bafdda1a2d80ec33cfb3afd00a
 MD5 ae2c07787ca43fa3ff6a4e6c8af5404e unieject-5.2.ebuild 1389
 RMD160 8f754ef005f5c99655f9b751c7801ff8860969e6 unieject-5.2.ebuild 1389
 SHA256 804eeeee84e174dff411741645f8a5cc356650bafdda1a2d80ec33cfb3afd00a unieject-5.2.ebuild 1389
-MISC ChangeLog 3450 RMD160 bd21ff6ee64591f53cec03d73ed633a9ba884dd7 SHA1 e4e0053e78652b9fcd41f26b492632ec5f5f38ae SHA256 519e54b94bccd5d48122f6813ee34ef6cff66e5d0ab1c3e32aa6d22565c3ec64
-MD5 ddcee35b5cdfd1c398d2465125805b75 ChangeLog 3450
-RMD160 bd21ff6ee64591f53cec03d73ed633a9ba884dd7 ChangeLog 3450
-SHA256 519e54b94bccd5d48122f6813ee34ef6cff66e5d0ab1c3e32aa6d22565c3ec64 ChangeLog 3450
+MISC ChangeLog 3654 RMD160 cc7652deb31930c57ab2c3bc921907f2ad467634 SHA1 22fb4ded001772b009f3e10827ef08d2a8899724 SHA256 f8e5f2d9b011320dfe4c373b85cf3fd226ad7df869020cd66a3541827c5edc37
+MD5 202db9914ddcc9b5b298d94522e7d642 ChangeLog 3654
+RMD160 cc7652deb31930c57ab2c3bc921907f2ad467634 ChangeLog 3654
+SHA256 f8e5f2d9b011320dfe4c373b85cf3fd226ad7df869020cd66a3541827c5edc37 ChangeLog 3654
 MISC metadata.xml 366 RMD160 7d8cca2c7c5bf7e50679e9ba5600f66b6feeec38 SHA1 3e948be4e864ac955548bb722837d192ae4959ab SHA256 4fa6745925c295d3e95641d1e158a0f024a5020fd2188ac1cf906e2836abd2be
 MD5 7f0b2989cfdaf436a2cbd458a718368a metadata.xml 366
 RMD160 7d8cca2c7c5bf7e50679e9ba5600f66b6feeec38 metadata.xml 366
@@ -17,10 +21,13 @@ SHA256 4fa6745925c295d3e95641d1e158a0f024a5020fd2188ac1cf906e2836abd2be metadata
 MD5 8a82cca69948a4b28406c6c3f2e8bbc8 files/digest-unieject-5.2 241
 RMD160 4e48d23774964a963ee06f531f803cc80c6e1e16 files/digest-unieject-5.2 241
 SHA256 76b4a2d64d042780aaf5425df56eb90a0bdbdb2b97769113f09b451782184ffc files/digest-unieject-5.2 241
+MD5 8a82cca69948a4b28406c6c3f2e8bbc8 files/digest-unieject-5.2-r1 241
+RMD160 4e48d23774964a963ee06f531f803cc80c6e1e16 files/digest-unieject-5.2-r1 241
+SHA256 76b4a2d64d042780aaf5425df56eb90a0bdbdb2b97769113f09b451782184ffc files/digest-unieject-5.2-r1 241
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.3 (GNU/Linux)
 
-iD8DBQFEg8ZCAiZjviIA2XgRArChAJ9sQ/sfKxOS/a4NB5ZeyThP5/97awCg7L9P
-Ve0Kr9GHbH68AM+0VKMA8QQ=
-=RKi1
+iD8DBQFEkTHjAiZjviIA2XgRAnhkAKDf4h1CfEazWoTGL9E3P7/K4jpHDACffccH
+jRpI/SsfL9MSimPHtR6xtwg=
+=xChO
 -----END PGP SIGNATURE-----
diff --git a/sys-block/unieject/files/digest-unieject-5.2-r1 b/sys-block/unieject/files/digest-unieject-5.2-r1
new file mode 100644 (file)
index 0000000..9319bdf
--- /dev/null
@@ -0,0 +1,3 @@
+MD5 3028c259b1f600900cccac2f89f3ed21 unieject-5.2.tar.bz2 301463
+RMD160 61edef4319c2accef9693fdf1143cabd3a2e109a unieject-5.2.tar.bz2 301463
+SHA256 866e72717a162d59e09bcc9d998e5e0347eb22874481e9dcb7af04c9e0dc8bfd unieject-5.2.tar.bz2 301463
diff --git a/sys-block/unieject/unieject-5.2-r1.ebuild b/sys-block/unieject/unieject-5.2-r1.ebuild
new file mode 100644 (file)
index 0000000..7b16e44
--- /dev/null
@@ -0,0 +1,80 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-block/unieject/unieject-5.2-r1.ebuild,v 1.1 2006/06/15 10:09:19 flameeyes Exp $
+
+inherit libtool
+
+DESCRIPTION="Multiplatform command to eject and load CD-Rom drives"
+HOMEPAGE="http://dev.gentoo.org/~flameeyes/projects"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86-fbsd"
+IUSE="nls pmount"
+
+RDEPEND=">=dev-libs/libcdio-0.75-r1
+       dev-libs/popt
+       >=dev-libs/confuse-2.5
+       nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+       nls? ( sys-devel/gettext )
+       sys-apps/sed"
+RDEPEND="${RDEPEND}
+       pmount? ( sys-apps/pmount )
+       !sys-apps/eject
+       !sys-block/eject-bsd"
+
+PROVIDE="virtual/eject"
+
+pkg_setup() {
+       use pmount && enewgroup plugdev
+}
+
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+
+       # libcdio-0.75-r1 in Gentoo is fixed, so no need to ask 0.76 either on
+       # FreeBSD.
+       sed -i -e '/freebsd/s:libcdiomin="0\.76":libcdiomin="0.75":' \
+               ${S}/configure
+
+       elibtoolize
+}
+
+src_compile() {
+       use pmount && append-ldflags "-Wl,-z,now"
+
+       econf \
+               $(use_enable nls) \
+               --enable-lock-workaround \
+               --disable-dependency-tracking \
+               --disable-doc \
+               || die "econf failed"
+       emake || die "emake failed"
+}
+
+src_install() {
+       emake DESTDIR="${D}" install
+       dodoc README ChangeLog NEWS AUTHORS unieject.conf.sample
+
+       # Symlink to eject to provide a good virtual/eject
+       dosym unieject.1.gz /usr/share/man/man1/eject.1.gz
+       dosym unieject /usr/bin/eject
+
+       # If we enable support for pmount, we need to change the installed
+       # configuration file to enable the unmount wrapper, and we also set the
+       # command setuid root but in group plugdev, so that it's inlined with pmount
+       # itself.
+       if use pmount; then
+               fowners root:plugdev /usr/bin/unieject
+               fperms 1710 /usr/bin/unieject
+               chmod +s "${D}/usr/bin/unieject"
+
+               dodir /etc
+               sed -e 's:^# \(unmount-wrapper = \):\1:' \
+                       "${S}/unieject.conf.sample" \
+                       > "${D}/etc/unieject.conf"
+       fi
+}