forked from mirrors/nixpkgs
openntpd: 5.7p3 -> 5.7p4
This commit is contained in:
parent
65e303570e
commit
c7a0045b80
|
@ -5,15 +5,13 @@
|
|||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "openntpd-${version}";
|
||||
version = "5.7p3";
|
||||
version = "5.7p4";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://openbsd/OpenNTPD/${name}.tar.gz";
|
||||
sha256 = "4f417c8a4c21ed7ec3811107829f931404f9bf121855b8571a2ca3355695343a";
|
||||
sha256 = "08ybpi351284wj53qqrmg13j8l7md397yrqsmg0aqxg3frcxk4x9";
|
||||
};
|
||||
|
||||
patches = [ ./no-install.patch ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-privsep-path=${privsepPath}"
|
||||
"--with-privsep-user=${privsepUser}"
|
||||
|
@ -23,6 +21,16 @@ stdenv.mkDerivation rec {
|
|||
|
||||
buildInputs = [ openssl ];
|
||||
|
||||
installFlags = [ "DESTDIR=\${out}" ];
|
||||
|
||||
postInstall = ''
|
||||
mv $out/$out/* $out
|
||||
DIR=$out/$out
|
||||
while rmdir $DIR 2>/dev/null; do
|
||||
DIR="$(dirname "$DIR")"
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "http://www.openntpd.org/";
|
||||
license = licenses.bsd3;
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
diff --git a/Makefile.in b/Makefile.in
|
||||
index 81549cf..1262bbf 100644
|
||||
--- a/Makefile.in
|
||||
+++ b/Makefile.in
|
||||
@@ -1740,21 +1740,6 @@ uninstall-man: uninstall-man5 uninstall-man8
|
||||
|
||||
install-exec-hook:
|
||||
@ln -f "$(DESTDIR)$(sbindir)/ntpd" "$(DESTDIR)$(sbindir)/ntpctl"
|
||||
- @if [ ! -d "$(DESTDIR)$(sysconfdir)" ]; then \
|
||||
- $(INSTALL) -m 755 -d "$(DESTDIR)$(sysconfdir)"; \
|
||||
- fi
|
||||
- @if [ ! -d "$(DESTDIR)$(localstatedir)/run" ]; then \
|
||||
- $(INSTALL) -m 755 -d "$(DESTDIR)$(localstatedir)/run"; \
|
||||
- fi
|
||||
- @if [ ! -d "$(DESTDIR)$(localstatedir)/db" ]; then \
|
||||
- $(INSTALL) -m 755 -d "$(DESTDIR)$(localstatedir)/db"; \
|
||||
- fi
|
||||
- @if [ ! -f "$(DESTDIR)$(sysconfdir)/ntpd.conf" ]; then \
|
||||
- $(INSTALL) -m 644 "$(srcdir)/ntpd.conf" "$(DESTDIR)$(sysconfdir)/ntpd.conf"; \
|
||||
- else \
|
||||
- echo; \
|
||||
- echo " $(DESTDIR)$(sysconfdir)/ntpd.conf already exists, install will not overwrite"; \
|
||||
- fi
|
||||
@if [ ! -d "$(PRIVSEP_PATH)" ]; then \
|
||||
echo; \
|
||||
echo " Please created a privilege separation directory for ntpd." ; \
|
Loading…
Reference in a new issue