don't call back home, checking for updates. let pkg_add(1) do the
job; tweaks and ok kili@
This commit is contained in:
parent
8c7cca2dc8
commit
1f71dc517c
@ -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/
|
||||
|
||||
|
21
www/snownews/patches/patch-doc_man_snownews_1_in
Normal file
21
www/snownews/patches/patch-doc_man_snownews_1_in
Normal file
@ -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
|
14
www/snownews/patches/patch-updatecheck_c
Normal file
14
www/snownews/patches/patch-updatecheck_c
Normal file
@ -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);
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user