Merge pull request #40 from dkg/debian

Debian update for 0.11.0-2
This commit is contained in:
Tim Rühsen 2015-12-12 23:41:05 +01:00
commit 3bcf193e0d
5 changed files with 65 additions and 0 deletions

8
debian/changelog vendored
View File

@ -1,3 +1,11 @@
libpsl (0.11.0-2) unstable; urgency=medium
* Recommend the publicsuffix package.
* fix psl_builtin_outdated() and update psl --print-info and --version
(pulled from upstream)
-- Daniel Kahn Gillmor <dkg@fifthhorseman.net> Fri, 11 Dec 2015 22:34:03 -0500
libpsl (0.11.0-1) unstable; urgency=medium
* new upstream release

1
debian/control vendored
View File

@ -34,6 +34,7 @@ Description: Library for Public Suffix List (development headers)
Package: libpsl0
Architecture: any
Depends: ${misc:Depends}, ${shlibs:Depends}
Recommends: publicsuffix
Multi-Arch: same
Description: Library for Public Suffix List (shared libraries)
Libpsl allows checking domains against the Public Suffix List.

View File

@ -0,0 +1,25 @@
From: =?utf-8?q?Tim_R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Sun, 27 Sep 2015 19:14:13 +0200
Subject: Fix psl_builtin_outdated()
(amended by dkg for the proper logic)
---
src/psl.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/psl.c b/src/psl.c
index e9bcae2..39ef107 100644
--- a/src/psl.c
+++ b/src/psl.c
@@ -973,9 +973,9 @@ int psl_builtin_outdated(void)
struct stat st;
if (stat(_psl_filename, &st) == 0 && st.st_mtime > _psl_file_time)
- return 0;
+ return 1;
- return 1;
+ return 0;
}
/**

View File

@ -0,0 +1,29 @@
From: =?utf-8?q?Tim_R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Sun, 27 Sep 2015 19:14:58 +0200
Subject: Extend tools/psl --print-info and --version
---
tools/psl.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tools/psl.c b/tools/psl.c
index 6790efe..fb3972c 100644
--- a/tools/psl.c
+++ b/tools/psl.c
@@ -117,7 +117,7 @@ int main(int argc, const char *const *argv)
usage(0, stdout);
}
else if (!strcmp(*arg, "--version")) {
- printf("psl %s\n", PACKAGE_VERSION);
+ printf("psl %s (0x%06x)\n", PACKAGE_VERSION, psl_check_version_number(0));
printf("libpsl %s\n", psl_get_version());
printf("\n");
printf("Copyright (C) 2014-2015 Tim Ruehsen\n");
@@ -214,6 +214,7 @@ int main(int argc, const char *const *argv)
printf("builtin compile time: %ld (%s)\n", psl_builtin_compile_time(), time2str(psl_builtin_compile_time()));
printf("builtin file time: %ld (%s)\n", psl_builtin_file_time(), time2str(psl_builtin_file_time()));
printf("builtin SHA1 file hash: %s\n", psl_builtin_sha1sum());
+ printf("builtin outdated: %d\n", psl_builtin_outdated());
} else
printf("No builtin PSL data available\n");
}

View File

@ -1 +1,3 @@
0001-remove-git-submodules.patch
0002-Fix-psl_builtin_outdated.patch
0003-Extend-tools-psl-print-info-and-version.patch