[packages/dnshistory] Rel 8

arekm arekm at pld-linux.org
Thu May 21 15:05:05 CEST 2026


commit 78b93859cdeae9f4d82647d0193ef4ff3e8c7264
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:04:40 2026 +0200

    Rel 8

 dnshistory-fno-common.patch | 11 +++++++++++
 dnshistory-gzFile.patch     | 42 ++++++++++++++++++++++++++++++++++++++++++
 dnshistory.spec             |  7 ++++++-
 3 files changed, 59 insertions(+), 1 deletion(-)
---
diff --git a/dnshistory.spec b/dnshistory.spec
index 76a6fe4..7a87dd3 100644
--- a/dnshistory.spec
+++ b/dnshistory.spec
@@ -4,12 +4,14 @@ Summary:	dnshistory - storing a history of DNS/Name changes
 Summary(pl.UTF-8):	dnshistory - przechowywanie historii zmian DNS/nazw
 Name:		dnshistory
 Version:	1.3
-Release:	7
+Release:	8
 License:	GPL v2+
 Group:		Applications/Networking
 Source0:	http://www.stedee.id.au/files/%{name}-%{version}.tar.gz
 # Source0-md5:	6fa5dbb93bf3d69331077a1422350320
 Patch0:		%{name}-man_fix.patch
+Patch1:		%{name}-gzFile.patch
+Patch2:		%{name}-fno-common.patch
 URL:		http://www.stedee.id.au/dnshistory/
 BuildRequires:	db-devel
 BuildRequires:	pcre-devel
@@ -36,8 +38,11 @@ rezultaty przekształceń z przeszłości.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
+%patch -P2 -p1
 
 %build
+CPPFLAGS="%{rpmcppflags}"; export CPPFLAGS
 %configure \
 	--enable-database-dir=%{_databasedir} \
 	--enable-database-name=%{_dbfile}
diff --git a/dnshistory-fno-common.patch b/dnshistory-fno-common.patch
new file mode 100644
index 0000000..1ed9bc4
--- /dev/null
+++ b/dnshistory-fno-common.patch
@@ -0,0 +1,11 @@
+--- dnshistory-1.3.orig/src/dnshistory.h	2006-06-25 01:50:26.000000000 +0200
++++ dnshistory-1.3/src/dnshistory.h	2026-05-21 01:14:36.076219019 +0200
+@@ -163,7 +163,7 @@
+  *                              GLOBALS                                 *
+  ************************************************************************/
+ /*-- Date/Time --*/
+-time_t current_day;                             /* The current day, check to see if we need to update a record in this run
++extern time_t current_day;                      /* The current day, check to see if we need to update a record in this run
+                                                    Also see SAME_RUN */
+ 
+ /*-- DB Setup --*/
diff --git a/dnshistory-gzFile.patch b/dnshistory-gzFile.patch
new file mode 100644
index 0000000..80d36ca
--- /dev/null
+++ b/dnshistory-gzFile.patch
@@ -0,0 +1,42 @@
+--- dnshistory-1.3.orig/src/dnshistory.c	2006-06-25 01:50:26.000000000 +0200
++++ dnshistory-1.3/src/dnshistory.c	2026-05-21 01:13:18.739552350 +0200
+@@ -203,8 +203,8 @@
+ int name_lookup(struct in_addr ipaddr, char *); /* Do the actual name lookup */
+ int address_exists(dns_record_t *);             /* Does this IP address already exist, looked up? */
+ void name_lookup_errors(int);                   /* Deal with name lookup errors */
+-void drop_long_lines(gzFile *, char *, buffer_position *);      /* Strip Log Lines that are too big */
+-char *get_log_line(char *, int, gzFile *, buffer_position *);   /* Faster version of gzgets */
++void drop_long_lines(gzFile, char *, buffer_position *);        /* Strip Log Lines that are too big */
++char *get_log_line(char *, int, gzFile, buffer_position *);     /* Faster version of gzgets */
+ 
+ void dump_dns_historydb(DB **);                 /* Dump the DB out */
+ void showhistory(DB **, int argc, char *[]);
+@@ -256,8 +256,8 @@
+     bool have_set_logtype_flag = false;             /* Set to true when we've set the log type */
+ 
+     /* Log File handlers */
+-    gzFile *file_input = NULL;                  /* Input File descriptor */
+-    gzFile *file_recombine_input = NULL;        /* Recombine Input File descriptor */
++    gzFile file_input = NULL;                   /* Input File descriptor */
++    gzFile file_recombine_input = NULL;         /* Recombine Input File descriptor */
+     char *fgets_rtn = NULL;                     /* Return value from doing fgets. Check for end of file */
+ 
+     char str_address[NI_MAXHOST];               /* IP Addresses */
+@@ -1347,7 +1347,7 @@
+  * Strip Log Lines that are too big                                     *
+  ************************************************************************/
+ void
+-drop_long_lines(gzFile * file_input, char *buffer_ptr, buffer_position * buf_posn)
++drop_long_lines(gzFile file_input, char *buffer_ptr, buffer_position * buf_posn)
+ {
+     /**********************************************************************/
+     char *fgets_rtn = NULL;
+@@ -1381,7 +1381,7 @@
+  *   buffer and where we are up to within it.                           *
+  ************************************************************************/
+ char *
+-get_log_line(char *buf, int size, gzFile * file_ptr, buffer_position * buf_posn)
++get_log_line(char *buf, int size, gzFile file_ptr, buffer_position * buf_posn)
+ {
+     /* Faster version of gzgets.
+      * Original code and algorithim taken from mergelog-4.5
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dnshistory.git/commitdiff/78b93859cdeae9f4d82647d0193ef4ff3e8c7264



More information about the pld-cvs-commit mailing list