openntpd: 5.7p3 -> 5.7p4

This commit is contained in:
William A. Kennington III
2015-03-26 16:07:02 -07:00
parent 65e303570e
commit c7a0045b80
2 changed files with 12 additions and 30 deletions
+12 -4
View File
@@ -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;