]> git.pld-linux.org Git - packages/links2.git/commitdiff
- updated to 2.22 auto/th/links2-2.22-1
authorWitold Filipczyk <witekfl@poczta.onet.pl>
Sat, 20 Mar 2021 18:26:46 +0000 (19:26 +0100)
committerWitold Filipczyk <witekfl@poczta.onet.pl>
Sat, 20 Mar 2021 18:26:46 +0000 (19:26 +0100)
ac_config_headers.patch
links2-config-dirs.patch
links2-convert-old-bookmarks.patch
links2-cookies-save.patch
links2.spec

index 448d82cd7acabd52fe92b12d08c0c14cc6d4fc81..a1dee8ce8d8a3a625a135ee228f86c42e5fd9029 100644 (file)
@@ -1,8 +1,8 @@
---- links-2.7/configure.in.old 2013-04-06 20:22:33.003959516 +0200
-+++ links-2.7/configure.in     2013-04-06 20:22:48.727535993 +0200
-@@ -14,7 +14,7 @@ AUTOMAKE="./missing automake"
- AUTOHEADER="./missing autoheader"
- image_formats="GIF PNG XBM"
+--- links-2.22/configure.in.old        2021-03-20 19:16:29.597937288 +0100
++++ links-2.22/configure.in    2021-03-20 19:16:50.644602655 +0100
+@@ -18,7 +18,7 @@
+ export LDFLAGS
+ export LIBS
  
 -AM_CONFIG_HEADER(config.h)
 +AC_CONFIG_HEADERS(config.h)
index ab4575efb9ec93173c507ef86973719efe2275b8..a4fa768f794b36f1594688b2e5260ff7e68fdea4 100644 (file)
@@ -1,7 +1,7 @@
---- links-2.1pre16/links.1.orig        2005-01-22 21:51:55.000000000 +0100
-+++ links-2.1pre16/links.1     2005-01-28 20:47:50.217234704 +0100
+--- links-2.1pre16/links.1.orig 2005-01-22 21:51:55.000000000 +0100
++++ links-2.1pre16/links.1      2005-01-28 20:47:50.217234704 +0100
 @@ -303,7 +303,7 @@
+
  .SH FILES
  .TP
 -.IP "~/.links/links.cfg"
@@ -9,10 +9,9 @@
  Per-user configfile, automatically created by
  .B links.
  .SH PLATFORMS
-
---- links-2.14/default.c.orig  2016-11-16 23:49:10.000000000 +0100
-+++ links-2.14/default.c       2017-07-08 17:18:34.278675496 +0200
-@@ -749,7 +749,7 @@ skip_path_conv:;
+--- links-2.22/default.c.old   2021-03-20 19:10:17.237960076 +0100
++++ links-2.22/default.c       2021-03-20 19:10:57.477957622 +0100
+@@ -797,7 +797,7 @@
                while (home_links[0] && dir_sep(home_links[strlen(cast_const_char home_links) - 1])) home_links[strlen(cast_const_char home_links) - 1] = 0;
                EINTRLOOP(rs, stat(cast_const_char home_links, &st));
                if (!rs && S_ISDIR(st.st_mode)) {
                } else {
                        fprintf(stderr, "CONFIG_DIR set to %s. But directory %s doesn't exist.\n\007", config_dir, home_links);
                        portable_sleep(3000);
-@@ -761,9 +761,9 @@ skip_path_conv:;
-       } else {
-               add_dot_links:
- #ifdef OPENVMS
+@@ -810,9 +810,9 @@
+ #if defined(DOS)
+               add_to_strn(&home_links, cast_uchar "links.cfg");
+ #elif defined(OPENVMS) || defined(HAIKU)
 -              add_to_strn(&home_links, cast_uchar "links");
 +              add_to_strn(&home_links, cast_uchar "links2");
  #else
@@ -33,7 +32,7 @@
  #endif
        }
        EINTRLOOP(rs, stat(cast_const_char home_links, &st));
-@@ -792,7 +792,7 @@ skip_path_conv:;
+@@ -840,7 +840,7 @@
  #ifdef DOS
        add_to_strn(&home_links, cast_uchar "links.cfg");
  #else
index eb2f571b6585d10b7cde25f64fe68590f0ddf21e..be88cce8eb8cdc9a7bed74d24afa0de288012699 100644 (file)
@@ -1,8 +1,8 @@
---- links-2.8/bookmark.c       2013-09-01 19:13:47.000000000 +0200
-+++ links-2.8/bookmark.c.new   2013-10-07 19:23:03.763106002 +0200
-@@ -719,6 +719,18 @@
-               safe_strncpy(e, cast_uchar "bookmarks.html", MAX_STR_LEN - (e - bookmarks_file));
- #endif
+--- links-2.22/bookmark.c.old  2021-03-20 18:44:34.524720442 +0100
++++ links-2.22/bookmark.c      2021-03-20 18:45:06.331385178 +0100
+@@ -785,6 +785,18 @@
+                       msg_box(ses->term, getml(f, NULL), TEXT_(T_BOOKMARK_ERROR), AL_CENTER, TEXT_(T_UNABLE_TO_WRITE_TO_BOOKMARK_FILE), cast_uchar " ", f, cast_uchar ": ", get_err_msg(err, ses->term), MSG_BOX_END, NULL, 1, TEXT_(T_CANCEL), msg_box_null, B_ENTER | B_ESC);
+               }
        }
 +      /* try to create bookmarks.html based on old bookmarks (from links <= 0.97) */
 +      if (access(bookmarks_file, R_OK) != 0) {
@@ -17,5 +17,5 @@
 +              }
 +      }
  
-       bookmark_ld.codepage=utf8_table;
-       load_bookmarks(NULL);
+       EINTRLOOP(rs, stat(cast_const_char bookmarks_file, &bookmarks_st));
+       if (rs)
index 296c87786d574d3585c4f95ffb334db118a207d0..40fe0d9b0a387abb1bf7176f6cc28c7f55962fbd 100644 (file)
@@ -1,15 +1,15 @@
---- links-2.12/cookies.c.orig  2016-01-09 16:48:22.619433626 +0100
-+++ links-2.12/cookies.c       2016-01-09 16:52:06.066090917 +0100
-@@ -250,15 +250,99 @@
+--- links-2.22/cookies.c.old   2019-04-07 20:17:57.000000000 +0200
++++ links-2.22/cookies.c       2021-03-20 18:58:47.864668687 +0100
+@@ -202,8 +202,28 @@
  void free_cookies(void)
  {
-       struct cookie *c;
 +      unsigned char *cookfile;
 +      FILE *fp;
-+
-       free_list(c_domains);
++      struct cookie *c; 
++      struct list_head *lc;
+       free_list(struct c_domain, c_domains);
 -      /* !!! FIXME: save cookies */
--      foreach (c, all_cookies) free_cookie(c);
 +
 +      cookfile = stracpy(links_home);
 +      if (! cookfile) return;
 +      mem_free(cookfile);
 +      if (fp == NULL) return;
 +
-+      foreach (c, all_cookies) {
++      foreach (struct cookie, c, lc, all_cookies) {
 +              if (c->expires && ! cookie_expired(c))
 +                      fprintf(fp, "%s %s %s %s %s %d %d\n", c->name, c->value,
-+                          c->server?c->server:(unsigned char *)"", c->path?c->path:(unsigned char *)"",
-+                          c->domain?c->domain:(unsigned char *)"", (int)c->expires, c->secure);
-+
-+              free_cookie(c);
++                      c->server?c->server:(unsigned char *)"", c->path?c->path:(unsigned char *)"",
++                      c->domain?c->domain:(unsigned char *)"", (int)c->expires, c->secure);
 +      }
-+
 +      fclose(fp);
 +
-       free_list(all_cookies);
- }
+       while (!list_empty(all_cookies)) {
+               struct cookie *c = list_struct(all_cookies.next, struct cookie);
+               del_from_list(c);
+@@ -213,6 +233,68 @@
  
  void init_cookies(void)
  {
 -      /* !!! FIXME: read cookies */
+-}
 +      unsigned char in_buffer[MAX_STR_LEN];
 +      unsigned char *cookfile, *p, *q;
 +      FILE *fp;
@@ -56,7 +56,7 @@
 +
 +              if (!(cookie = mem_alloc(sizeof(struct cookie)))) return;
 +              memset(cookie, 0, sizeof(struct cookie));
-+
 +              q = in_buffer; p = strchr(in_buffer, ' ');
 +              if (p == NULL) goto inv;
 +              *p++ = '\0';
 +              free(cookie);
 +      }
 +      fclose(fp);
- }
- void cleanup_cookies(void)
++}
index 553378165403334f98b2b294ba251908a1ff2d54..210f1f010c88b74c439764aa6ba69cbf7c54a48a 100644 (file)
@@ -13,13 +13,13 @@ Summary(pt_BR.UTF-8):       O links é um browser para modo texto, similar ao lynx
 Summary(ru.UTF-8):     Текстовый WWW броузер типа Lynx
 Summary(uk.UTF-8):     Текстовий WWW броузер типу Lynx
 Name:          links2
-Version:       2.14
-Release:       3
+Version:       2.22
+Release:       1
 Epoch:         1
 License:       GPL v2
 Group:         Applications/Networking
 Source0:       http://links.twibright.com/download/links-%{version}.tar.bz2
-# Source0-md5: 0d11b388de22ba280008a36a409a34c6
+# Source0-md5: 55f745dea500aac52cede98bab8d96e2
 Source1:       %{name}.desktop
 Source2:       %{name}.1.pl
 Source3:       %{name}.png
@@ -117,7 +117,7 @@ Links - це текстовий WWW броузер, на перший погля
 %patch4 -p1
 %patch5 -p1
 %patch6 -p1
-%patch10 -p1
+#%%patch10 -p1
 %patch17 -p1
 %patch18 -p1
 
This page took 0.069284 seconds and 4 git commands to generate.