Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=ee55f31aef2e834a2f282bcf0d486d6f1ab02337

commit ee55f31aef2e834a2f282bcf0d486d6f1ab02337
Author: Miklos Vajna <vmik...@frugalware.org>
Date:   Fri Apr 1 01:02:39 2011 +0200

rpm-5.2.1-2-i686

- added tmpfiles.d config

diff --git a/source/apps-extra/rpm/FrugalBuild 
b/source/apps-extra/rpm/FrugalBuild
index 4742d46..53c7b18 100644
--- a/source/apps-extra/rpm/FrugalBuild
+++ b/source/apps-extra/rpm/FrugalBuild
@@ -4,7 +4,7 @@

pkgname=rpm
pkgver=5.2.1
-pkgrel=1
+pkgrel=2
pkgdesc="Red Hat Package Manager"
url="http://rpm5.org";
depends=('pcre' 'sqlite3' 'popt' 'beecrypt>=4.2.1-1' 'openssl>=1.0.0' \
@@ -37,7 +37,11 @@ build(){
make || Fdie
Fmakeinstall
# fixes bug "can't create transaction lock"
-       Fmkdir /var/lock/rpm
+       Fmkdir /etc/tmpfiles.d
+       cat > $Fdestdir/etc/tmpfiles.d/rpm.conf << EOF
+r $Flocalstatedir/lib/rpm/__db.*
+d $Flocalstatedir/lock/rpm 0755 root root -
+EOF
}

# optimization OK
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to