diff --git a/www/snownews/Makefile b/www/snownews/Makefile index 7938fa57603..1ba46e2d959 100644 --- a/www/snownews/Makefile +++ b/www/snownews/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.20 2008/06/09 23:03:15 martynas Exp $ +# $OpenBSD: Makefile,v 1.21 2008/07/20 17:09:26 martynas Exp $ COMMENT= text mode rss newsreader DISTNAME= snownews-1.5.9 -PKGNAME= ${DISTNAME}p1 +PKGNAME= ${DISTNAME}p2 CATEGORIES= www MASTER_SITES= ${HOMEPAGE}download/ diff --git a/www/snownews/patches/patch-doc_man_snownews_1_in b/www/snownews/patches/patch-doc_man_snownews_1_in new file mode 100644 index 00000000000..15f968ebcf3 --- /dev/null +++ b/www/snownews/patches/patch-doc_man_snownews_1_in @@ -0,0 +1,21 @@ +$OpenBSD: patch-doc_man_snownews_1_in,v 1.3 2008/07/20 17:09:26 martynas Exp $ +--- doc/man/snownews.1.in.orig Sun Feb 17 14:43:57 2008 ++++ doc/man/snownews.1.in Sun Jul 20 18:09:54 2008 +@@ -186,14 +186,14 @@ variable "http_proxy". Snownews expects this variable + .P + .B Automatic update checking + .P +-Once a week the program will automatically check for a new version when it exits. ++Once a week the program can automatically check for a new version when it exits. + It will request a file named "version" from my webserver and compare + the returned value with the local program version. If they differ it + notifies the user of a new version. It is done on exit to be least + annoying I hope. This way you can easily ignore it if you don't want + to upgrade for some reason or can't, because you're using a package +-that came with your distribution, etc. To disable this check, put the value +--1 into the file ~/.snownews/updatecheck. Snownews will ++that came with your distribution, etc. To enable this check, create ++an empty file ~/.snownews/updatecheck. Snownews will + not transfer anything to my server. It will just download a file + containing the version number and compare it locally. + .P diff --git a/www/snownews/patches/patch-updatecheck_c b/www/snownews/patches/patch-updatecheck_c new file mode 100644 index 00000000000..09da3a5ac1e --- /dev/null +++ b/www/snownews/patches/patch-updatecheck_c @@ -0,0 +1,14 @@ +$OpenBSD: patch-updatecheck_c,v 1.1 2008/07/20 17:09:26 martynas Exp $ +--- updatecheck.c.orig Sun Feb 17 14:43:58 2008 ++++ updatecheck.c Sun Jul 20 18:09:09 2008 +@@ -54,9 +54,7 @@ void AutoVersionCheck (void) { + snprintf (file, sizeof(file), "%s/.snownews/updatecheck", getenv("HOME")); + lastupdated = fopen (file, "r+"); + if (lastupdated == NULL) { +- lastupdated = fopen (file, "w+"); +- fputs (timestring, lastupdated); +- fclose (lastupdated); ++ return; + } else { + fgets (oldtimestring, sizeof(oldtimestring), lastupdated); + oldtime = atoi(oldtimestring); diff --git a/www/snownews/pkg/PLIST b/www/snownews/pkg/PLIST index 2d77fa8bc4e..8b3953960a5 100644 --- a/www/snownews/pkg/PLIST +++ b/www/snownews/pkg/PLIST @@ -1,7 +1,7 @@ -@comment $OpenBSD: PLIST,v 1.11 2008/01/14 22:40:39 martynas Exp $ +@comment $OpenBSD: PLIST,v 1.12 2008/07/20 17:09:26 martynas Exp $ bin/opml2snow bin/snow2opml -bin/snownews +@bin bin/snownews man/de/ man/de/man1/ @man man/de/man1/snownews.1 @@ -35,5 +35,8 @@ share/locale/se/ share/locale/se/LC_MESSAGES/ share/locale/se/LC_MESSAGES/snownews.mo share/locale/sl/LC_MESSAGES/snownews.mo +share/locale/uk_UA/ +share/locale/uk_UA/LC_MESSAGES/ +share/locale/uk_UA/LC_MESSAGES/snownews.mo share/locale/zh_CN/LC_MESSAGES/snownews.mo share/locale/zh_TW/LC_MESSAGES/snownews.mo