netatalk: support SSL and afpstats
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
{ fetchurl, stdenv, pkgconfig, db, libgcrypt, avahi, libiconv, pam, openssl, acl, ed, glibc, perl, python2 }:
|
||||
{ fetchurl, stdenv, autoreconfHook, pkgconfig, perl, python
|
||||
, db, libgcrypt, avahi, libiconv, pam, openssl, acl
|
||||
, ed, glibc
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec{
|
||||
name = "netatalk-3.1.11";
|
||||
@@ -8,14 +11,18 @@ stdenv.mkDerivation rec{
|
||||
sha256 = "3434472ba96d3bbe3b024274438daad83b784ced720f7662a4c1d0a1078799a6";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pkgconfig perl python2 ];
|
||||
buildInputs = [ db libgcrypt avahi libiconv pam openssl acl ];
|
||||
patches = [
|
||||
./no-suid.patch
|
||||
./omitLocalstatedirCreation.patch
|
||||
];
|
||||
|
||||
patches = ./omitLocalstatedirCreation.patch;
|
||||
nativeBuildInputs = [ autoreconfHook pkgconfig perl python python.pkgs.wrapPython ];
|
||||
|
||||
buildInputs = [ db libgcrypt avahi libiconv pam openssl acl ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-bdb=${db}"
|
||||
"--with-openssl=${openssl.dev}"
|
||||
"--with-ssl-dir=${openssl.dev}"
|
||||
"--with-lockfile=/run/lock/netatalk"
|
||||
"--localstatedir=/var/lib"
|
||||
];
|
||||
@@ -36,6 +43,11 @@ stdenv.mkDerivation rec{
|
||||
EOF
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
buildPythonPath ${python.pkgs.dbus-python}
|
||||
patchPythonScript $out/bin/afpstats
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
@@ -46,4 +58,3 @@ stdenv.mkDerivation rec{
|
||||
maintainers = with stdenv.lib.maintainers; [ jcumming ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user