Compare commits
45 Commits
hesiod-3_1
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
4cb59e49ac | ||
|
97576be0cd | ||
|
c50e649d66 | ||
|
e9115d623c | ||
|
bf322c8d9c | ||
|
6aadf3960f | ||
|
5f762c4cdf | ||
|
fa1ec14824 | ||
|
72a41d582f | ||
|
2d34029daa | ||
|
eb7c077861 | ||
|
b238912eb0 | ||
|
08fc0f130b | ||
|
13ffbf9323 | ||
|
8a805efc43 | ||
|
126e431d6a | ||
|
64ac0dd343 | ||
|
6d3a4a4802 | ||
|
760a7f8934 | ||
|
26683149ff | ||
|
df88dda0bf | ||
|
7cc3eee109 | ||
|
73b38e0074 | ||
|
a034795a14 | ||
|
aedd6b17bc | ||
|
1da1de905c | ||
|
c917f32434 | ||
|
d1735c73a1 | ||
|
d33a365a9e | ||
|
c37324161b | ||
|
b86b807932 | ||
|
214fe1dcb1 | ||
|
347e1a7f4c | ||
|
0202ea6f9c | ||
|
2d1264c6c5 | ||
|
fc17419386 | ||
|
83f10797ff | ||
|
f63f35ea9e | ||
|
70485b5f29 | ||
|
2d37c7e5d5 | ||
|
61298299e3 | ||
|
c5b6c1abe2 | ||
|
1df83267bd | ||
|
d0a5f0000b | ||
|
333ac5a299 |
1
.cvsignore → .gitignore
vendored
1
.cvsignore → .gitignore
vendored
@ -1,2 +1,3 @@
|
||||
hesiod-3.0.2.tar.gz
|
||||
hesiod-3.1.0.tar.gz
|
||||
/hesiod-3.2.1.tar.gz
|
6
Makefile
6
Makefile
@ -1,6 +0,0 @@
|
||||
# Makefile for source rpm: hesiod
|
||||
# $Id$
|
||||
NAME := hesiod
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
include ../common/Makefile.common
|
@ -1,27 +0,0 @@
|
||||
Ignore environment variables in setuid or setgid programs.
|
||||
--- hesiod-3.0.2/hesiod.c Wed Oct 3 14:53:37 2001
|
||||
+++ hesiod-3.0.2/hesiod.c Wed Oct 3 14:55:02 2001
|
||||
@@ -52,6 +52,7 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
+#include <unistd.h>
|
||||
#include <ctype.h>
|
||||
#include "hesiod.h"
|
||||
#include "hesiod_p.h"
|
||||
@@ -79,13 +80,13 @@
|
||||
if (ctx)
|
||||
{
|
||||
*context = ctx;
|
||||
- configname = getenv("HESIOD_CONFIG");
|
||||
+ configname = ((getuid() == geteuid()) && (getgid() == getegid())) ? getenv("HESIOD_CONFIG") : NULL;
|
||||
if (!configname)
|
||||
configname = SYSCONFDIR "/hesiod.conf";
|
||||
if (read_config_file(ctx, configname) >= 0)
|
||||
{
|
||||
/* The default rhs can be overridden by an environment variable. */
|
||||
- p = getenv("HES_DOMAIN");
|
||||
+ p = ((getuid() == geteuid()) && (getgid() == getegid())) ? getenv("HES_DOMAIN") : NULL;
|
||||
if (p)
|
||||
{
|
||||
if (ctx->rhs)
|
@ -1,49 +0,0 @@
|
||||
If the response is larger than 1024 bytes, go ahead and retry.
|
||||
|
||||
--- hesiod-3.1.0/hesiod.c 2006-03-30 13:22:57.000000000 -0500
|
||||
+++ hesiod-3.1.0/hesiod.c 2006-03-30 13:28:16.000000000 -0500
|
||||
@@ -327,7 +327,8 @@
|
||||
*/
|
||||
static char **get_txt_records(struct hesiod_p *ctx, const char *name)
|
||||
{
|
||||
- unsigned char qbuf[PACKETSZ], abuf[MAX_HESRESP];
|
||||
+ unsigned char qbuf[PACKETSZ], *abuf;
|
||||
+ char **tmp;
|
||||
- int n;
|
||||
+ int n, i, len;
|
||||
|
||||
/* Make sure the resolver is initialized. */
|
||||
@@ -343,14 +344,30 @@
|
||||
}
|
||||
|
||||
/* Send the query. */
|
||||
- n = res_send(qbuf, n, abuf, MAX_HESRESP);
|
||||
- if (n < 0)
|
||||
+ abuf = NULL;
|
||||
+ len = 1024;
|
||||
+ i = n;
|
||||
+ do
|
||||
+ {
|
||||
+ abuf = realloc(abuf, len);
|
||||
+ n = res_send(qbuf, i, abuf, len);
|
||||
+ if (n < len)
|
||||
+ {
|
||||
+ break;
|
||||
+ }
|
||||
+ len = n + 1024;
|
||||
+ } while(1);
|
||||
+ if (n < sizeof(HEADER))
|
||||
{
|
||||
errno = ECONNREFUSED;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
- return hesiod_parse_result(ctx, abuf, n);
|
||||
+ tmp = hesiod_parse_result(ctx, abuf, n);
|
||||
+
|
||||
+ free(abuf);
|
||||
+
|
||||
+ return tmp;
|
||||
}
|
||||
|
||||
char **hesiod_parse_result(void *ctx, const unsigned char *abuf, int alen)
|
@ -1,17 +0,0 @@
|
||||
Try to correctly find res_mkquery in libresolv, even in cases where a
|
||||
preprocessor-based rename in <resolv.h> may screw us up.
|
||||
--- hesiod-3.1.0/configure.in 2006-03-30 11:22:11.000000000 -0500
|
||||
+++ hesiod-3.1.0/configure.in 2006-03-30 13:31:02.000000000 -0500
|
||||
@@ -12,7 +12,11 @@
|
||||
AC_EGREP_HEADER(pw_change, pwd.h, AC_DEFINE(HAVE_PW_CHANGE))
|
||||
AC_EGREP_HEADER(pw_expire, pwd.h, AC_DEFINE(HAVE_PW_EXPIRE))
|
||||
|
||||
-AC_CHECK_FUNC(res_mkquery, :, [AC_CHECK_LIB(resolv, res_mkquery)])
|
||||
+AC_CHECK_FUNC(res_mkquery, :, [AC_CHECK_LIB(resolv, res_mkquery,,[
|
||||
+saveLIBS="$LIBS"
|
||||
+LIBS="-lresolv $LIBS"
|
||||
+AC_TRY_LINK([#include <resolv.h>],[res_mkquery(0,NULL,0,0,NULL,0,NULL,NULL,0);],[AC_DEFINE(HAVE_RES_MKQUERY,1,[Define if your libresolv provides res_mkquery.])],[LIBS="$saveLIBS"])
|
||||
+])])
|
||||
|
||||
AC_CONFIG_HEADER(config.h)
|
||||
AC_OUTPUT(Makefile)
|
@ -1,25 +0,0 @@
|
||||
One or both strings is supplied through a configuration file, so we have no
|
||||
guarantees about its length.
|
||||
|
||||
--- hesiod-3.1.0/hesservbyname.c 2006-03-30 11:22:11.000000000 -0500
|
||||
+++ hesiod-3.1.0/hesservbyname.c 2006-03-30 13:13:50.000000000 -0500
|
||||
@@ -187,7 +187,7 @@
|
||||
|
||||
static int cistrcmp(const char *s1, const char *s2)
|
||||
{
|
||||
- while (*s1 && tolower(*s1) == tolower(*s2))
|
||||
+ while (*s1 && *s2 && tolower(*s1) == tolower(*s2))
|
||||
{
|
||||
s1++;
|
||||
s2++;
|
||||
--- hesiod-3.1.0/hesiod.c 2006-03-30 13:13:50.000000000 -0500
|
||||
+++ hesiod-3.1.0/hesiod.c 2006-03-30 13:19:03.000000000 -0500
|
||||
@@ -465,7 +465,7 @@
|
||||
|
||||
static int cistrcmp(const char *s1, const char *s2)
|
||||
{
|
||||
- while (*s1 && tolower(*s1) == tolower(*s2))
|
||||
+ while (*s1 && *s2 && tolower(*s1) == tolower(*s2))
|
||||
{
|
||||
s1++;
|
||||
s2++;
|
208
hesiod.spec
208
hesiod.spec
@ -1,16 +1,12 @@
|
||||
Name: hesiod
|
||||
Version: 3.1.0
|
||||
Release: 1
|
||||
Source: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/hesiod-%{version}.tar.gz
|
||||
Patch1: hesiod-3.0.2-env.patch
|
||||
Patch2: hesiod-3.1.0-str.patch
|
||||
Patch3: hesiod-3.1.0-dnsparse.patch
|
||||
Patch4: hesiod-3.1.0-libresolv.patch
|
||||
Summary: Hesiod libraries.
|
||||
Group: System Environment/Libraries
|
||||
Version: 3.2.1
|
||||
Release: 12%{?dist}
|
||||
License: MIT
|
||||
Buildroot: %{_tmppath}/hesiod-root
|
||||
BuildRequires: autoconf
|
||||
Summary: Shared libraries for querying the Hesiod naming service
|
||||
|
||||
Source: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/hesiod-%{version}.tar.gz
|
||||
BuildRequires: autoconf, automake, libtool, libidn-devel
|
||||
Obsoletes: hesinfo < 3.2
|
||||
|
||||
%description
|
||||
Hesiod is a system which uses existing DNS functionality to provide access
|
||||
@ -20,7 +16,6 @@ files, among others.
|
||||
|
||||
%package devel
|
||||
Summary: Development libraries and headers for Hesiod
|
||||
Group: Development/Libraries
|
||||
Requires: hesiod = %{version}-%{release}
|
||||
|
||||
%description devel
|
||||
@ -28,10 +23,156 @@ Hesiod is a system which uses existing DNS functionality to provide access
|
||||
to databases of information that changes infrequently. It is often used to
|
||||
distribute information which might otherwise kept in the /etc/passwd,
|
||||
/etc/group, and /etc/printcap files over a network, eliminating the need to
|
||||
ensure synchronize the files among multiple hosts. This package contains
|
||||
ensure the files are synchronized among multiple hosts. This package contains
|
||||
the header files and libraries required for building programs which use Hesiod.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
autoreconf -vif
|
||||
|
||||
%build
|
||||
%configure --disable-static
|
||||
make
|
||||
|
||||
%install
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
# Remove libtool archives and static libs
|
||||
find %{buildroot} -type f -name "*.la" -delete
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%license COPYING
|
||||
%doc README NEWS
|
||||
%{_bindir}/*
|
||||
%{_libdir}/libhesiod.so.*
|
||||
%{_mandir}/man1/*
|
||||
%{_mandir}/man5/*
|
||||
|
||||
%files devel
|
||||
%{_libdir}/libhesiod.so
|
||||
%{_libdir}/pkgconfig/*
|
||||
%{_includedir}/hesiod.h
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Fri May 18 2018 Adam Williamson <awilliam@redhat.com> - 3.2.1-12
|
||||
- Rebuild for new libidn
|
||||
|
||||
* Mon Apr 2 2018 Peter Robinson <pbrobinson@fedoraproject.org> 3.2.1-11
|
||||
- Cleanup and modernise spec
|
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-10
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
||||
|
||||
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-9
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-7
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||
|
||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.1-6
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-5
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
||||
|
||||
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-4
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2.1-2
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||
|
||||
* Wed Apr 3 2013 Nalin Dahyabhai <nalin@fedoraproject.org> - 3.2.1-1
|
||||
- update to 3.2.1
|
||||
- merged all patches or equivalents
|
||||
- re-merged hesinfo, so we obsolete it now
|
||||
- adds a pkgconfig configuration file for libhesiod
|
||||
- correct inconsistent changelog dates, assuming day-of-week is correct
|
||||
- add build requirement on libidn-devel
|
||||
- package the license
|
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-23
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-22
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-21
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
||||
|
||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-20
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||
|
||||
* Fri Feb 19 2010 Nalin Dahyabhai <nalin@fedoraproject.org> - 3.1.0-19
|
||||
- fix the release number noted for the previous changelog entry (#225884)
|
||||
- remove unapplied "classes" patch (#225884)
|
||||
|
||||
* Wed Jan 13 2010 Nalin Dahyabhai <nalin@fedoraproject.org> - 3.1.0-18
|
||||
- adjust buildroot location (guidelines)
|
||||
- disable static libraries (guidelines)
|
||||
- tweak default payload attributes (guidelines)
|
||||
|
||||
* Tue Oct 13 2009 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-17
|
||||
- add a disttag
|
||||
|
||||
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-16
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
||||
|
||||
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.0-15
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
||||
|
||||
* Tue Dec 2 2008 Nalin Dahyabhai <nalin@fedoraproject.org> - 3.1.0-14
|
||||
- adjust the package summary
|
||||
|
||||
* Tue Jul 22 2008 Nalin Dahyabhai <nalin@fedoraproject.org> - 3.1.0-13
|
||||
- rebuild
|
||||
|
||||
* Thu Jun 12 2008 Nalin Dahyabhai <nalin@fedoraproject.org> - 3.1.0-12
|
||||
- call aclocal directly, because autoreconf didn't see the magic comment in
|
||||
the distributed version of aclocal.m4 which made it look like it was safe
|
||||
to generate a new one (#449550)
|
||||
|
||||
* Mon Jun 2 2008 Nalin Dahyabhai <nalin@fedoraproject.org> - 3.1.0-11
|
||||
- force autoreconf to overwrite files (should fix #449550)
|
||||
|
||||
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.1.0-10
|
||||
- Autorebuild for GCC 4.3
|
||||
|
||||
* Wed Aug 23 2006 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-9
|
||||
- rebuild
|
||||
|
||||
* Mon Jul 17 2006 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-8
|
||||
- rebuild
|
||||
|
||||
* Fri Jul 7 2006 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-7
|
||||
- use the system libtool to consistently link libhesiod.la with libresolv
|
||||
|
||||
* Fri Jul 7 2006 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-6
|
||||
- run autoreconf instead of autoconf after untarring so that we get a
|
||||
config.h.in which suits the changes we make to configure.in (part of #197938)
|
||||
|
||||
* Tue Jun 20 2006 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-5
|
||||
- don't override libtool's defaults for permissions on its .la file, because
|
||||
we don't get debuginfo if the execute bit isn't set (pjones, in #190219)
|
||||
|
||||
* Wed Jun 7 2006 Jeremy Katz <katzj@redhat.com> - 3.1.0-4
|
||||
- rebuild for -devel deps
|
||||
|
||||
* Thu Mar 30 2006 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-3
|
||||
- no, we really did need that patch
|
||||
|
||||
* Thu Mar 30 2006 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-2
|
||||
- drop a no-longer-needed patch for detecting libresolv properly
|
||||
|
||||
* Thu Mar 30 2006 Nalin Dahyabhai <nalin@redhat.com> - 3.1.0-1
|
||||
- update to 3.1.0 (#187372)
|
||||
|
||||
@ -77,7 +218,7 @@ the header files and libraries required for building programs which use Hesiod.
|
||||
* Fri Jan 10 2003 Phil Knirsch <pknirsch@redhat.com> 3.0.2-23
|
||||
- Build shared lib correctly on s390 and s390x (with gcc -shared -fPIC).
|
||||
|
||||
* Wed Sep 24 2002 Nalin Dahyabhai <nalin@redhat.com> 3.0.2-22
|
||||
* Wed Sep 25 2002 Nalin Dahyabhai <nalin@redhat.com> 3.0.2-22
|
||||
- look harder for res_mkquery() in libresolv
|
||||
|
||||
* Wed Aug 21 2002 Nalin Dahyabhai <nalin@redhat.com>
|
||||
@ -115,7 +256,7 @@ the header files and libraries required for building programs which use Hesiod.
|
||||
- remove the shared library patch -- different packages with shared libraries
|
||||
tend to use different sonames, so we'd run inevitably run into problems
|
||||
|
||||
* Thu Aug 21 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||
* Thu Aug 23 2001 Nalin Dahyabhai <nalin@redhat.com>
|
||||
- remove pre and post scripts -- authconfig handles that stuff now
|
||||
- add the hesiod man page back in, as bind-devel doesn't provide it any more
|
||||
|
||||
@ -147,40 +288,3 @@ the header files and libraries required for building programs which use Hesiod.
|
||||
no longer use a separate libnss_hesiod.so
|
||||
- changed requires: caching-nameserver to nscd
|
||||
- added post-install script snippet to activate nscd on install
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch1 -p1 -b .env
|
||||
%patch2 -p1 -b .str
|
||||
%patch3 -p1 -b .dnsparse
|
||||
%patch4 -p1 -b .libresolv
|
||||
autoconf
|
||||
|
||||
%build
|
||||
%configure
|
||||
make
|
||||
|
||||
%install
|
||||
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
|
||||
make install DESTDIR=$RPM_BUILD_ROOT
|
||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc README NEWS
|
||||
%{_libdir}/libhesiod.so.*
|
||||
%{_mandir}/man5/*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libhesiod.a
|
||||
%{_libdir}/libhesiod.so
|
||||
%{_includedir}/hesiod.h
|
||||
%{_mandir}/man3/*
|
||||
|
Loading…
Reference in New Issue
Block a user