openntpd: 5.7p3 -> 5.7p4
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user