From cd4e345d1389a1db88f72d588cd14307b4f41735 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 06:05:49 +0000 Subject: auto-import changelog data from hesiod-3.0.2-17.src.rpm Wed Feb 20 2002 Nalin Dahyabhai 3.0.2-17 - rebuild in new environment Wed Jan 09 2002 Tim Powers - automated rebuild Fri Oct 26 2001 Nalin Dahyabhai 3.0.2-15 - actually set the soname in the shared library (ld doesn't automatically set the soname to the output file's name, oops) Fri Oct 05 2001 Nalin Dahyabhai 3.0.2-14 - on second thought, put the shared library back in, using a soversion of 0 to have a chance at providing compatibility with apps linked dynamically on other distributions - make -devel depend on the same version of the main package Wed Oct 03 2001 Nalin Dahyabhai - remove the shared library patch -- different packages with shared libraries tend to use different sonames, so we'd run inevitably run into problems Tue Aug 21 2001 Nalin Dahyabhai - 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 Wed Jan 17 2001 Jeremy Katz - hesiod-devel requires hesiod (bug #128) Thu Sep 14 2000 Jeremy Katz - remove hesiod man page from hesiod-devel as it conflicts with the one from bind-devel Thu Sep 14 2000 Jeremy Katz - use rpm macros where possible and FHS-ify - split into main and devel packages - add back requires for nscd Fri Jul 28 2000 Jeremy Katz - rebuild in new environment Thu Mar 16 2000 Jeremy Katz - rebuild in new environment Thu Sep 02 1999 Nalin Dahyabhai - removed dependency on nscd - changed requires: nscd back to caching-nameserver Mon May 17 1999 Nalin Dahyabhai - started changelog - moved addition of hesiod to nsswitch.conf to this package because we no longer use a separate libnss_hesiod.so - changed requires: caching-nameserver to nscd - added post-install script snippet to activate nscd on install --- diff --git a/.cvsignore b/.cvsignore index e69de29..f98ee96 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +hesiod-3.0.2.tar.gz diff --git a/hesiod-3.0.2-env.patch b/hesiod-3.0.2-env.patch new file mode 100644 index 0000000..444cc3b --- /dev/null +++ b/hesiod-3.0.2-env.patch @@ -0,0 +1,27 @@ +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 + #include + #include ++#include + #include + #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) diff --git a/hesiod.spec b/hesiod.spec new file mode 100644 index 0000000..2ca3096 --- /dev/null +++ b/hesiod.spec @@ -0,0 +1,124 @@ +Name: hesiod +Version: 3.0.2 +Release: 17 +Source: ftp://athena-dist.mit.edu/pub/ATHENA/hesiod/hesiod-%{version}.tar.gz +Patch0: hesiod-3.0.2-shlib.patch +Patch1: hesiod-3.0.2-env.patch +Patch2: hesiod-3.0.2-str.patch +Summary: Hesiod libraries and sample programs. +Group: System Environment/Libraries +License: MIT +Buildroot: %{_tmppath}/hesiod-root + +%description +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 kept in the /etc/passwd, /etc/group, and /etc/printcap +files, among others. + +%package devel +Summary: Development libraries and headers for Hesiod +Group: Development/Libraries +Requires: hesiod = %{version}-%{release} + +%description devel +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 +the header files and libraries required for building programs which use Hesiod. + +%changelog +* Wed Feb 20 2002 Nalin Dahyabhai 3.0.2-17 +- rebuild in new environment + +* Wed Jan 09 2002 Tim Powers +- automated rebuild + +* Fri Oct 26 2001 Nalin Dahyabhai 3.0.2-15 +- actually set the soname in the shared library (ld doesn't automatically + set the soname to the output file's name, oops) + +* Fri Oct 5 2001 Nalin Dahyabhai 3.0.2-14 +- on second thought, put the shared library back in, using a soversion of 0 + to have a chance at providing compatibility with apps linked dynamically + on other distributions +- make -devel depend on the same version of the main package + +* Wed Oct 3 2001 Nalin Dahyabhai +- 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 +- 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 + +* Wed Jan 17 2001 Jeremy Katz +- hesiod-devel requires hesiod (bug #128) + +* Thu Sep 14 2000 Jeremy Katz +- remove hesiod man page from hesiod-devel as it conflicts with the one + from bind-devel + +* Thu Sep 14 2000 Jeremy Katz +- use rpm macros where possible and FHS-ify +- split into main and devel packages +- add back requires for nscd + +* Fri Jul 28 2000 Jeremy Katz +- rebuild in new environment + +* Thu Mar 16 2000 Jeremy Katz +- rebuild in new environment + +* Thu Sep 2 1999 Nalin Dahyabhai +- removed dependency on nscd +- changed requires: nscd back to caching-nameserver + +* Mon May 17 1999 Nalin Dahyabhai +- started changelog +- moved addition of hesiod to nsswitch.conf to this package because we + 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 +%patch0 -p1 -b .shlib +%patch1 -p1 -b .env +%patch2 -p1 -b .str +for manpage in *.3; do + if grep -q '^\.so man3/hesiod.3' $manpage ; then + echo .so hesiod.3 > $manpage + elif grep -q '^\.so man3/hesiod_getmailhost.3' $manpage ; then + echo .so hesiod_getmailhost.3 > $manpage + elif grep -q '^\.so man3/hesiod_getpwnam.3' $manpage ; then + echo .so hesiod_getpwnam.3 > $manpage + elif grep -q '^\.so man3/hesiod_getservbyname.3' $manpage ; then + echo .so hesiod_getservbyname.3 > $manpage + fi +done + +%build +%configure +make + +%install +[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +%makeinstall + +%files +%defattr(-,root,root) +%doc README NEWS +%{_bindir}/hesinfo +%{_libdir}/libhesiod.so.* +%{_mandir}/man1/* +%{_mandir}/man5/* + +%files devel +%defattr(-,root,root) +%{_libdir}/libhesiod.a +%{_libdir}/libhesiod.so +%{_includedir}/hesiod.h +%{_mandir}/man3/* diff --git a/sources b/sources index e69de29..e567ab5 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0362311e80fb1e029a1588cbbd09ad57 hesiod-3.0.2.tar.gz