[Frugalware-git] frugalware-0.7: liferea-1.2.23-2sayshell1-i686

voroskoi voroskoi at frugalware.org
Thu Nov 1 11:26:24 CET 2007


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

commit b2d9281cca84a17fc28a65c95822dfd23c5f740d
Author: voroskoi <voroskoi at frugalware.org>
Date:   Thu Nov 1 11:24:54 2007 +0100

liferea-1.2.23-2sayshell1-i686
secfix relbump, closes #2544

diff --git a/source/gnome-extra/liferea/FrugalBuild b/source/gnome-extra/liferea/FrugalBuild
index 17c6aeb..afffac8 100644
--- a/source/gnome-extra/liferea/FrugalBuild
+++ b/source/gnome-extra/liferea/FrugalBuild
@@ -3,7 +3,7 @@

pkgname=liferea
pkgver=1.2.23
-pkgrel=1
+pkgrel=2sayshell1
pkgdesc="Liferea is a news aggregator for online news feeds."
license="GPL2"
groups=('gnome-extra')
@@ -15,12 +15,15 @@ _F_gnome_schemas=('/etc/gconf/schemas/liferea.schemas')
_F_gnome_desktop="y"
_F_gnome_iconcache="y"
Finclude sourceforge gnome-scriptlet
+source=(${source[@]} feedlist_permission.diff)
up2date="lynx -dump http://liferea.sourceforge.net|grep -m1 'Stable'|sed 's/.*]\(.*\) .*/\1/'"
-sha1sums=('270a20b59925cc083ab17f3028bae4a296255df2')
+sha1sums=('270a20b59925cc083ab17f3028bae4a296255df2' \
+          'a836df98985de38bb23930222902fdc9552264bc')

build() {
Fcd $pkgname-$pkgver
Fsed '<body>' '&\n    <outline text="Frugalware Linux Packages" title="Frugalware Linux Packages" description="Frugalware Linux Packages" type="rss" htmlUrl="http://frugalware.org/packages.php" xmlUrl="http://frugalware.org/rss.php?type=packages" updateInterval="-1" id="btnxuem" lastPollTime="1141986693" lastFaviconPollTime="1141986694" sortColumn="time"/>' opml/*.opml
+	Fpatchall
Fmake
Fmakeinstall
Fsed "LD_LIBRARY_PATH=:" "LD_LIBRARY_PATH=/usr/lib/xulrunner:" $Fdestdir/usr/bin/$pkgname
diff --git a/source/gnome-extra/liferea/feedlist_permission.diff b/source/gnome-extra/liferea/feedlist_permission.diff
new file mode 100644
index 0000000..d27dda0
--- /dev/null
+++ b/source/gnome-extra/liferea/feedlist_permission.diff
@@ -0,0 +1,35 @@
+diff -aur liferea-1.2.23/src/common.c fw_liferea-1.2.23/src/common.c
+--- liferea-1.2.23/src/common.c	2007-08-19 19:17:58.000000000 +0200
++++ fw_liferea-1.2.23/src/common.c	2007-11-01 11:10:14.000000000 +0100
+@@ -908,6 +908,9 @@
+
+ 	g_free(cachePath);
+ 	/* lifereaUserPath reused globally */
++
++	/* ensure reasonable default umask */
++	umask (077);
+ }
+
+ const gchar * common_get_cache_path(void) {
+diff -aur liferea-1.2.23/src/export.c fw_liferea-1.2.23/src/export.c
+--- liferea-1.2.23/src/export.c	2007-06-21 00:22:10.000000000 +0200
++++ fw_liferea-1.2.23/src/export.c	2007-11-01 11:11:30.000000000 +0100
+@@ -126,15 +126,15 @@
+ 			error = TRUE;
+ 		}
+
+-		if(trusted)
+-			old_umask = umask(077);
++		if(!trusted)
++			old_umask = umask(022); /* give read permissions for other, per-default we wouldn't give it... */
+
+ 		if(-1 == common_save_xml(doc, backupFilename)) {
+ 			g_warning("Could not export to OPML file!!");
+ 			error = TRUE;
+ 		}
+
+-		if(trusted)
++		if(!trusted)
+ 			umask(old_umask);
+
+ 		xmlFreeDoc(doc);


More information about the Frugalware-git mailing list