Compare commits
7 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fe944fb2e1 | ||
|
|
1b7f2778a5 | ||
|
|
fae1f40137 | ||
|
|
4c49615dc8 | ||
|
|
e9e9c4e6ac | ||
|
|
ce64cea50e | ||
|
|
2a8ecb4c27 |
5 changed files with 3945 additions and 0 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -0,0 +1,2 @@
|
|||
/validns-0.5.tar.gz
|
||||
/validns-0.6.tar.gz
|
||||
2
sources
2
sources
|
|
@ -0,0 +1,2 @@
|
|||
de8ad86d7a87dc20ef800c9286090985 validns-0.5.tar.gz
|
||||
c1f43e1fdc26e1f5a94497451325ad49 validns-0.6.tar.gz
|
||||
3797
validns-0.5-tlsa-nsec.patch
Normal file
3797
validns-0.5-tlsa-nsec.patch
Normal file
File diff suppressed because it is too large
Load diff
82
validns-0.6-timing.patch
Normal file
82
validns-0.6-timing.patch
Normal file
|
|
@ -0,0 +1,82 @@
|
|||
diff -Naur validns-0.6-orig/common.h validns-0.6/common.h
|
||||
--- validns-0.6-orig/common.h 2012-08-13 05:37:10.000000000 -0400
|
||||
+++ validns-0.6/common.h 2012-10-11 22:56:19.744337127 -0400
|
||||
@@ -51,6 +51,7 @@
|
||||
int die_on_first_error;
|
||||
int no_output;
|
||||
int summary;
|
||||
+ int notiming;
|
||||
int verbose;
|
||||
char *include_path;
|
||||
char *current_origin;
|
||||
diff -Naur validns-0.6-orig/main.c validns-0.6/main.c
|
||||
--- validns-0.6-orig/main.c 2012-10-04 06:52:25.000000000 -0400
|
||||
+++ validns-0.6/main.c 2012-10-11 22:57:32.759118220 -0400
|
||||
@@ -251,6 +251,7 @@
|
||||
fprintf(stderr, "\t-n N\t\tuse N worker threads\n");
|
||||
fprintf(stderr, "\t-q\t\tquiet - do not produce any output\n");
|
||||
fprintf(stderr, "\t-s\t\tprint validation summary/stats\n");
|
||||
+ fprintf(stderr, "\t-x\t\tskip printing 'time taken' entry in summary/stats\n");
|
||||
fprintf(stderr, "\t-v\t\tbe extra verbose\n");
|
||||
fprintf(stderr, "\t-I path\tuse this path for $INCLUDE files\n");
|
||||
fprintf(stderr, "\t-z origin\tuse this origin as initial $ORIGIN\n");
|
||||
@@ -311,7 +312,7 @@
|
||||
initialize_globals();
|
||||
struct timeval start, stop;
|
||||
|
||||
- while ((o = getopt(argc, argv, "fhqsvI:z:t:p:n:")) != -1) {
|
||||
+ while ((o = getopt(argc, argv, "fhqsxvI:z:t:p:n:")) != -1) {
|
||||
switch(o) {
|
||||
case 'h':
|
||||
usage(NULL);
|
||||
@@ -325,6 +326,9 @@
|
||||
case 's':
|
||||
G.opt.summary = 1;
|
||||
break;
|
||||
+ case 'x':
|
||||
+ G.opt.notiming = 1;
|
||||
+ break;
|
||||
case 'v':
|
||||
G.opt.verbose = 1;
|
||||
break;
|
||||
@@ -412,8 +416,11 @@
|
||||
" %d\n", G.stats.not_authoritative);
|
||||
printf("validation errors: %d\n", G.stats.error_count);
|
||||
printf("signatures verified: %d\n", G.stats.signatures_verified);
|
||||
- printf("time taken: %.3fs\n",
|
||||
+
|
||||
+ if (!G.opt.notiming) {
|
||||
+ printf("time taken: %.3fs\n",
|
||||
stop.tv_sec - start.tv_sec + (stop.tv_usec - start.tv_usec)/1000000.);
|
||||
+ }
|
||||
}
|
||||
return G.exit_code;
|
||||
}
|
||||
diff -Naur validns-0.6-orig/usage.mdwn validns-0.6/usage.mdwn
|
||||
--- validns-0.6-orig/usage.mdwn 2012-10-04 10:52:43.000000000 -0400
|
||||
+++ validns-0.6/usage.mdwn 2012-10-11 22:58:30.330728403 -0400
|
||||
@@ -61,6 +61,9 @@
|
||||
-s
|
||||
: print validation summary/stats
|
||||
|
||||
+-x
|
||||
+: skip printing 'time taken' in summary/stats
|
||||
+
|
||||
-v
|
||||
: be extra verbose
|
||||
|
||||
diff -Naur validns-0.6-orig/validns.1 validns-0.6/validns.1
|
||||
--- validns-0.6-orig/validns.1 2012-10-04 10:53:32.000000000 -0400
|
||||
+++ validns-0.6/validns.1 2012-10-11 23:00:20.511885836 -0400
|
||||
@@ -73,6 +73,11 @@
|
||||
.RS
|
||||
.RE
|
||||
.TP
|
||||
+.B -x
|
||||
+skip printing timing summary/stats
|
||||
+.RS
|
||||
+.RE
|
||||
+.TP
|
||||
.B -v
|
||||
be extra verbose
|
||||
.RS
|
||||
62
validns.spec
Normal file
62
validns.spec
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
Summary: DNS and DNSSEC zone file validator
|
||||
Name: validns
|
||||
Version: 0.6
|
||||
Release: 2%{?dist}
|
||||
License: BSD
|
||||
Url: http://www.validns.net/
|
||||
Source: http://www.validns.net/download/%{name}-%{version}.tar.gz
|
||||
Patch1: validns-0.6-timing.patch
|
||||
Group: Applications/Internet
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: Judy-devel, openssl-devel
|
||||
|
||||
%description
|
||||
DNS and DNSSEC zone file validator. It comes with no man page and no
|
||||
useful README or information, but it's a nice tool anyway :)
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1 -b .timing
|
||||
|
||||
%build
|
||||
make %{?_smp_mflags}
|
||||
gzip validns.1
|
||||
|
||||
%install
|
||||
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_mandir}/man1/
|
||||
install -m 755 validns %{buildroot}/%{_bindir}/
|
||||
cp -a validns.1.gz %{buildroot}/%{_mandir}/man1/
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc LICENSE README
|
||||
%{_bindir}/validns
|
||||
%{_mandir}/man1/validns.1.gz
|
||||
|
||||
%changelog
|
||||
* Fri Oct 12 2012 Paul Wouters <pwouters@redhat.com> - 0.6-2
|
||||
- Added -x option to skip timing info in statistics
|
||||
|
||||
* Thu Oct 04 2012 Paul Wouters <pwouters@redhat.com> - 0.6-1
|
||||
- Updated to 0.6, which incorporates all patches
|
||||
|
||||
* Fri Aug 24 2012 Paul Wouters <pwouters@redhat.com> - 0.5-2
|
||||
- Patch for handling NSEC/NSEC3 camelcasing
|
||||
- Support TLSA records
|
||||
|
||||
* Thu Jun 07 2012 Paul Wouters <pwouters@redhat.com> - 0.5-1
|
||||
- Updated to 0.5 which supports Parallelize signature verification
|
||||
- Install man page
|
||||
|
||||
* Tue May 01 2012 Paul Wouters <pwouters@redhat.com> - 0.4-1
|
||||
- Updated to 0.4 which fixes a TXT record parsing bug
|
||||
|
||||
* Tue Feb 28 2012 Paul Wouters <pwouters@redhat.com> - 0.3-2
|
||||
- Added missing BuildRequire for openssl-devel
|
||||
|
||||
* Mon Feb 13 2012 Paul Wouters <pwouters@redhat.com> - 0.3-1
|
||||
- Initial package
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue