Fixed makefile to ignore that the ntpd user may not exist on the build system.
authorOyvind Repvik <nail@nslu2-linux.org>
Mon, 4 Jul 2005 09:51:36 +0000 (09:51 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Mon, 4 Jul 2005 09:51:36 +0000 (09:51 +0000)
packages/openntpd/files/makefile-install.patch [new file with mode: 0644]

diff --git a/packages/openntpd/files/makefile-install.patch b/packages/openntpd/files/makefile-install.patch
new file mode 100644 (file)
index 0000000..b11c1ae
--- /dev/null
@@ -0,0 +1,29 @@
+--- openntpd-3.7p1/Makefile.in.original        2005-07-02 06:08:47.795870784 +0200
++++ openntpd-3.7p1/Makefile.in 2005-07-02 06:15:34.768001616 +0200
+@@ -78,26 +78,6 @@
+       else \
+               echo "$(DESTDIR)$(sysconfdir)/ntpd.conf already exists, install will not overwrite"; \
+       fi
+-      @if [ ! -d $(DESTDIR)$(PRIVSEP_PATH) ]; then \
+-              mkdir -p $(DESTDIR)$(PRIVSEP_PATH) ;\
+-              chown 0 $(DESTDIR)$(PRIVSEP_PATH) ; \
+-              chgrp 0 $(DESTDIR)$(PRIVSEP_PATH) ; \
+-              chmod 0755 $(DESTDIR)$(PRIVSEP_PATH) ; \
+-      fi
+-      @if grep "$(PRIVSEP_USER):" /etc/group >/dev/null; then \
+-        : ;\
+-      else \
+-        echo "Please create a dedicated group for ntpd." ;\
+-        echo "This is system-dependant, possibly:" ;\
+-        echo "# groupadd $(PRIVSEP_USER)" ;\
+-      fi
+-      @if grep "$(PRIVSEP_USER):" /etc/passwd >/dev/null; then \
+-        : ;\
+-      else \
+-        echo "Please create a dedicated user for ntpd and ensure it can" ;\
+-        echo "not be used to log in.  This is system-dependant, possibly:" ;\
+-        echo "# useradd -g $(PRIVSEP_USER) -s /sbin/nologin -d $(PRIVSEP_PATH) -c 'OpenNTP daemon' $(PRIVSEP_USER)" ;\
+-      fi
+ diff:
+       -diff -x CVS -x Makefile -ru /usr/src/usr.sbin/ntpd ./ | \