Hey folks,
Here is what I did to build ntp 4.2.2. Let me know what you think.
diff -urN ntpdate/ntp-4.2.2.p4+dfsg/debian/changelog
ntp/ntp-4.2.2.p4+dfsg/debian/changelog
--- ntpdate/ntp-4.2.2.p4+dfsg/debian/changelog 2007-04-10
16:29:14.000000000 +0000
+++ ntp/ntp-4.2.2.p4+dfsg/debian/changelog 2007-04-10
15:59:06.000000000 +0000
@@ -1,3 +1,10 @@
+ntp (1:4.2.2.p4+dfsg-2bd1) unstable; urgency=low
+
+ * debian/rules: disable ipv6 on GNU/Hurd
+ * debian/rules: Don't move non-existant ntptime
+
+ -- Barry deFreese <[EMAIL PROTECTED]> Tue, 10 Apr 2007 15:57:33 +0000
+
ntp (1:4.2.2.p4+dfsg-2) unstable; urgency=low
[ Peter Eisentraut ]
diff -urN ntpdate/ntp-4.2.2.p4+dfsg/debian/rules
ntp/ntp-4.2.2.p4+dfsg/debian/rules
--- ntpdate/ntp-4.2.2.p4+dfsg/debian/rules 2007-04-10
16:29:14.000000000 +0000
+++ ntp/ntp-4.2.2.p4+dfsg/debian/rules 2007-04-10 16:07:45.000000000 +0000
@@ -1,5 +1,7 @@
#!/usr/bin/make -f
+DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
include /usr/share/quilt/quilt.make
# hacks to avoid running these things during the build
@@ -18,6 +20,16 @@
config: patch config.status
config.status: $(QUILT_STAMPFN)
dh_testdir
+ifeq ($(DEB_HOST_ARCH_OS),hurd)
+ ./configure CFLAGS='$(CFLAGS)' \
+ --prefix=/usr \
+ --enable-all-clocks --enable-parse-clocks --enable-SHM \
+ --disable-debugging --sysconfdir=/var/lib/ntp \
+ --with-sntp=no \
+ --enable-linuxcaps \
+ --enable-ipv6=no \
+ --disable-dependency-tracking
+else
./configure CFLAGS='$(CFLAGS)' \
--prefix=/usr \
--enable-all-clocks --enable-parse-clocks --enable-SHM \
@@ -25,6 +37,7 @@
--with-sntp=no \
--enable-linuxcaps \
--disable-dependency-tracking
+endif
build: config build-stamp
build-stamp: config.status
@@ -55,9 +68,15 @@
$(MAKE) install DESTDIR=$(CURDIR)/debian/ntp
# move the administrator programs from /usr/bin to /usr/sbin
+ifeq ($(DEB_HOST_ARCH_OS),hurd)
+ for file in ntpdate ntp-wait ntpd tickadj ntp-keygen; do \
+ mv debian/ntp/usr/bin/$$file debian/ntp/usr/sbin/$$file || exit; \
+ done
+else
for file in ntpdate ntp-wait ntpd ntptime tickadj ntp-keygen; do \
mv debian/ntp/usr/bin/$$file debian/ntp/usr/sbin/$$file || exit; \
done
+endif
install -D -m 0755 debian/ntp.ifup debian/ntp/etc/network/if-up.d/ntp
install -D -m 0755 debian/ntpdate.ifup
debian/ntpdate/etc/network/if-up.d/ntpdate
Thanks,
Barry
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]