OpenPKG CVS Repository
http://www.openpkg.org/cvsweb/cvsweb.cgi
____________________________________________________________________________
Server: cvs.openpkg.org Name: Christoph Schug
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 04-Jul-2002 15:10:48
Branch: HEAD Handle: 2002070414104700
Modified files:
openpkg-src/bind8 bind.patch bind8.spec
Log:
Fixed the mess I caused yesterday :-)
Summary:
Revision Changes Path
1.3 +25 -16 openpkg-src/bind8/bind.patch
1.8 +7 -10 openpkg-src/bind8/bind8.spec
____________________________________________________________________________
Index: openpkg-src/bind8/bind.patch
============================================================
$ cvs diff -u -r1.2 -r1.3 bind.patch
--- openpkg-src/bind8/bind.patch 3 Jul 2002 17:48:32 -0000 1.2
+++ openpkg-src/bind8/bind.patch 4 Jul 2002 13:10:47 -0000 1.3
@@ -1,43 +1,52 @@
---- src/lib/isc/eventlib.c.orig Wed Jul 3 19:17:43 2002
-+++ src/lib/isc/eventlib.c Wed Jul 3 19:21:30 2002
-@@ -293,9 +293,9 @@
+--- src/lib/isc/eventlib.c.orig Thu Jul 4 15:01:28 2002
++++ src/lib/isc/eventlib.c Thu Jul 4 15:02:04 2002
+@@ -293,9 +293,15 @@
evPrintf(ctx, 4,
"pselect(%d, 0x%lx, 0x%lx, 0x%lx, %d.%09ld)\n",
ctx->fdMax+1,
-- (u_long)ctx->rdLast.fds_bits[0],
-- (u_long)ctx->wrLast.fds_bits[0],
-- (u_long)ctx->exLast.fds_bits[0],
++#ifdef __linux__
+ (u_long)ctx->rdLast.__fds_bits[0],
+ (u_long)ctx->wrLast.__fds_bits[0],
+ (u_long)ctx->exLast.__fds_bits[0],
++#else
+ (u_long)ctx->rdLast.fds_bits[0],
+ (u_long)ctx->wrLast.fds_bits[0],
+ (u_long)ctx->exLast.fds_bits[0],
++#endif
tp ? tp->tv_sec : -1,
tp ? tp->tv_nsec : -1);
---- src/lib/isc/ev_files.c.orig Wed Jul 3 19:22:45 2002
-+++ src/lib/isc/ev_files.c Wed Jul 3 19:23:16 2002
-@@ -146,9 +146,9 @@
+--- src/lib/isc/ev_files.c.orig Thu Jul 4 15:01:42 2002
++++ src/lib/isc/ev_files.c Thu Jul 4 15:01:54 2002
+@@ -146,9 +146,15 @@
evPrintf(ctx, 5,
"evSelectFD(fd %d, mask 0x%x): new masks: 0x%lx 0x%lx 0x%lx\n",
fd, eventmask,
-- (u_long)ctx->rdNext.fds_bits[0],
-- (u_long)ctx->wrNext.fds_bits[0],
-- (u_long)ctx->exNext.fds_bits[0]);
++#ifdef __linux__
+ (u_long)ctx->rdNext.__fds_bits[0],
+ (u_long)ctx->wrNext.__fds_bits[0],
+ (u_long)ctx->exNext.__fds_bits[0]);
++#else
+ (u_long)ctx->rdNext.fds_bits[0],
+ (u_long)ctx->wrNext.fds_bits[0],
+ (u_long)ctx->exNext.fds_bits[0]);
++#endif
return (0);
}
-@@ -262,9 +262,9 @@
+@@ -262,9 +268,15 @@
evPrintf(ctx, 5,
"evDeselectFD(fd %d, mask 0x%x): new masks: 0x%lx 0x%lx 0x%lx\n",
del->fd, eventmask,
-- (u_long)ctx->rdNext.fds_bits[0],
-- (u_long)ctx->wrNext.fds_bits[0],
-- (u_long)ctx->exNext.fds_bits[0]);
++#ifdef __linux__
+ (u_long)ctx->rdNext.__fds_bits[0],
+ (u_long)ctx->wrNext.__fds_bits[0],
+ (u_long)ctx->exNext.__fds_bits[0]);
++#else
+ (u_long)ctx->rdNext.fds_bits[0],
+ (u_long)ctx->wrNext.fds_bits[0],
+ (u_long)ctx->exNext.fds_bits[0]);
++#endif
/* Couldn't free it before now since we were using fields out of it. */
FREE(del);
Index: openpkg-src/bind8/bind8.spec
============================================================
$ cvs diff -u -r1.7 -r1.8 bind8.spec
--- openpkg-src/bind8/bind8.spec 3 Jul 2002 18:12:44 -0000 1.7
+++ openpkg-src/bind8/bind8.spec 4 Jul 2002 13:10:47 -0000 1.8
@@ -33,7 +33,7 @@
Group: DNS
License: GPL
Version: 8.3.3
-Release: 20020703
+Release: 20020704
# list of sources
Source0: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-src.tar.gz
@@ -65,12 +65,7 @@
%prep
%setup0 -q -c -n bind8-%{version}
%setup1 -q -T -D -a 1
-## FIXME: surely we need the patch for Linux only but those do not work
-## as documented in RPM-HOWTO. Any hints how to work around the
-## situation without requireing external patch program?
-%ifarch linux2.2
%patch0 -p0
-%endif
%build
PATH="%{l_prefix}/bin:$PATH"; export PATH
@@ -172,15 +167,17 @@
rm -rf $RPM_BUILD_ROOT
%pre
- if [ $1 -gt 1 -a -e $RPM_INSTALL_PREFIX/var/bind/ndc ]; then
+ if [ $1 -gt 1 ]; then
# stop daemon before any upgrade
- $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
+ ls >/dev/null 2>&1 $RPM_INSTALL_PREFIX/var/bind/ndc \
+ && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
fi
%preun
- if [ $1 -eq 0 -a -e $RPM_INSTALL_PREFIX/var/bind/ndc ]; then
+ if [ $1 -eq 0 ]; then
# stop daemon before removing package
- $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
+ ls >/dev/null 2>&1 $RPM_INSTALL_PREFIX/var/bind/ndc \
+ && $RPM_INSTALL_PREFIX/sbin/ndc stop >/dev/null 2>&1
# remove dynamically generated files
rm -f $RPM_INSTALL_PREFIX/var/bind/*
fi
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]