Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=bouleetbiltesting.git;a=commitdiff;h=47f150603a2b1f8c5b87de0e41a38ce123e0b641

commit 47f150603a2b1f8c5b87de0e41a38ce123e0b641
Author: bouleetbil <[EMAIL PROTECTED]>
Date:   Fri Oct 17 20:26:27 2008 +0200

system-config-printer-1.0.8-2-i686
*added patch for dbus
*change vendor redhat for frugalware

diff --git a/source/gnome/system-config-printer/FrugalBuild 
b/source/gnome/system-config-printer/FrugalBuild
index e0d2a61..6a1269d 100644
--- a/source/gnome/system-config-printer/FrugalBuild
+++ b/source/gnome/system-config-printer/FrugalBuild
@@ -3,25 +3,33 @@

pkgname=system-config-printer
pkgver=1.0.8
-pkgrel=1
+pkgrel=2
pkgdesc="The purpose of the tool is to configure a CUPS server using the CUPS 
API."
url="http://cyberelk.net/tim/software/system-config-printer/";
up2date="lynx -dump http://cyberelk.net/tim/data/system-config-printer/1.0.x/ | 
Flasttarbz2"
-depends=('pycups')
-makedepends=('perl-xml-parser' 'desktop-file-utils')
+depends=('pycups' 'notify-python')
+makedepends=('perl-xml-parser' 'desktop-file-utils' 'xmlto' 'docbook-xml' 
'docbook-xsl' 'docbook-sgml-dtd-4.1')
replaces=('gnome-cups-manager')
groups=('gnome' 'gnome-minimal')
archs=('i686')
_F_gnome_desktop="y"
Finclude gnome-scriptlet
-source=(http://cyberelk.net/tim/data/system-config-printer/1.0.x/${pkgname}-${pkgver}.tar.bz2
 DisableMan.diff)
+source=(http://cyberelk.net/tim/data/system-config-printer/1.0.x/${pkgname}-${pkgver}.tar.bz2
 policy.diff DisableMan.diff)
sha1sums=('006051bf3c51df5a6b167f3a1d5a115908b6f656' \
+          '68187106ae74c112b278b5bd399042474753dc3e' \
'5aa8ba3c75b732f026fd342f4dc5a5949f54bef8')
+
build() {
+       Fcd
+       # For change vendor redhat by Frugalware
+       Fsed "/redhat/" "/frugalware/" applet.py
+       Fsed ".redhat." ".frugalware." applet.py
+       Fsed "/usr/bin/system-install-packages" "pacman -S" applet.py
+       Fsed " redhat" " frugalware" Makefile.in
Fbuild
Fmkdir usr/share/gnome/autostart
-       Fmv etc/xdg/autostart/redhat-print-applet.desktop 
usr/share/gnome/autostart/redhat-print-applet.desktop
+       #for new gnome and keep one into for launch on startup for other desktop
+       Fcp etc/xdg/autostart/frugalware-print-applet.desktop \
+               usr/share/gnome/autostart/frugalware-print-applet.desktop
+       Fbuild_gnome_scriptlet
}
-
-#TODO : see the broken man and rename all Redhat...
-
diff --git a/source/gnome/system-config-printer/policy.diff 
b/source/gnome/system-config-printer/policy.diff
new file mode 100644
index 0000000..1d8b72e
--- /dev/null
+++ b/source/gnome/system-config-printer/policy.diff
@@ -0,0 +1,32 @@
+--- system-config-printer-1.0.8old/newprinternotification.conf 2008-08-11 
11:05:02.000000000 +0200
++++ system-config-printer-1.0.8/newprinternotification.conf    2008-10-16 
17:38:38.000000000 +0200
+@@ -3,22 +3,22 @@
+  "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd";>
+ <busconfig>
+       <policy at_console="true">
+-              <allow own="com.redhat.NewPrinterNotification"/>
++              <allow own="com.frugalware.NewPrinterNotification"/>
+       </policy>
+
+       <policy user="root">
+-              <allow own="com.redhat.NewPrinterNotification"/>
++              <allow own="com.frugalware.NewPrinterNotification"/>
+       </policy>
+
+       <policy user="root">
+-              <allow send_destination="com.redhat.NewPrinterNotification"/>
+-                <allow send_interface="com.redhat.NewPrinterNotification"/>
++              <allow 
send_destination="com.frugalware.NewPrinterNotification"/>
++                <allow 
send_interface="com.frugalware.NewPrinterNotification"/>
+       </policy>
+
+         <policy context="default">
+-                <deny own="com.redhat.NewPrinterNotification"/>
++                <allow own="com.frugalware.NewPrinterNotification"/>
+
+-                <deny send_destination="com.redhat.NewPrinterNotification"/>
+-                <deny send_interface="com.redhat.NewPrinterNotification"/>
++                <allow 
send_destination="com.frugalware.NewPrinterNotification"/>
++                <allow 
send_interface="com.frugalware.NewPrinterNotification"/>
+         </policy>
+ </busconfig>
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to