Creating lock directory in a different way (see bug #105429)
authorPatrick Kursawe <phosphan@gentoo.org>
Mon, 12 Sep 2005 06:34:54 +0000 (06:34 +0000)
committerPatrick Kursawe <phosphan@gentoo.org>
Mon, 12 Sep 2005 06:34:54 +0000 (06:34 +0000)
Package-Manager: portage-2.0.51.22-r2

media-gfx/sane-backends/ChangeLog
media-gfx/sane-backends/Manifest
media-gfx/sane-backends/sane-backends-1.0.16-r2.ebuild

index 6c8b4428ba3a7177fea3b06e48422c59ecbf10eb..1a115898b15b1497064db7e3da724da442a79ef3 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for media-gfx/sane-backends
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.75 2005/09/05 11:53:48 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/ChangeLog,v 1.76 2005/09/12 06:34:54 phosphan Exp $
+
+  12 Sep 2005; Patrick Kursawe <phosphan@gentoo.org>
+  sane-backends-1.0.16-r2.ebuild:
+  Creating lock directory in a different way (see bug #105429)
 
   05 Sep 2005; Patrick Kursawe <phosphan@gentoo.org>
   sane-backends-1.0.16-r2.ebuild:
index 933276eab774457896fa5529ea6c379d00f28115..90e6172f9fc530936105e6e855d2d92422ed65b9 100644 (file)
@@ -1,10 +1,10 @@
-MD5 430a436bdb35c85a3eeeb1024edf12d2 sane-backends-1.0.16-r2.ebuild 3941
+MD5 60e44501c1cb8c8a1aeca03fedece7c8 sane-backends-1.0.16-r2.ebuild 3913
 MD5 ebd00143bfe66f76d0d0da95cbc84923 sane-backends-1.0.15.ebuild 2598
 MD5 544c2bc7c5a23b2ae8280b879eac1fbb sane-backends-1.0.15-r2.ebuild 3912
 MD5 4c8053c87e31c8209998ba49c07d60a5 sane-backends-1.0.13-r3.ebuild 1717
 MD5 61d573be9593ba3be2da335586ac7eb2 sane-backends-1.0.16-r1.ebuild 3743
 MD5 e73a3bf54c049342701898a62ea3b301 sane-backends-1.0.15-r1.ebuild 2674
-MD5 8d31cf0c6df17e24471b866f4966b7e5 ChangeLog 13469
+MD5 2dd91a667dae4b6d27bdab3568a5628e ChangeLog 13620
 MD5 b742040acaeddc3798a21739bd59e8aa metadata.xml 224
 MD5 79980449d94fb97178178bef2a1c7443 sane-backends-1.0.15-r3.ebuild 3975
 MD5 365f695ec2c079ac06dd5bbf495f87ce files/linux_sg3_err.h 4894
index 7c3f57d5d2b4144957cdbad38b0eb445ed20cef9..328acd67345b464ca000e8e7e098085171ed156d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2005 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.16-r2.ebuild,v 1.2 2005/09/05 11:53:48 phosphan Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/sane-backends/sane-backends-1.0.16-r2.ebuild,v 1.3 2005/09/12 06:34:54 phosphan Exp $
 
 inherit eutils flag-o-matic
 
@@ -38,6 +38,8 @@ KEYWORDS="~x86 ~sparc ~ppc ~ppc64 ~amd64 ~alpha ~ia64"
 # Note that some backends has specific dependencies which make the compilation
 # fail because not supported on your current platform.
 pkg_setup() {
+       enewgroup scanner
+
        IEEE1284_BACKENDS="canon_pp hpsj5s mustek_pp"
 
        if [[ "${SANE_BACKENDS}" != "" ]]; then
@@ -96,7 +98,6 @@ src_compile() {
                $(use_enable usb libusb) \
                $(use_with gphoto2) \
                $(use_enable ipv6) \
-               --with-group=scanner \
                ${myconf} || die "econf failed"
 
        emake || die
@@ -110,7 +111,9 @@ src_compile() {
 
 src_install () {
        einstall docdir=${D}/usr/share/doc/${PF}
-       touch ${D}/var/lib/lock/sane/.keep # don't use keepdir, it changes the permissions
+       keepdir /var/lib/lock/sane
+       fowners root:scanner /var/lib/lock/sane
+       fperms g+w /var/lib/lock/sane
        if use usb; then
                cd tools/hotplug
                insinto /etc/hotplug/usb
@@ -130,8 +133,3 @@ src_install () {
        doins 30sane
 
 }
-
-pkg_preinst() {
-       enewgroup scanner
-}
-