netatalk: support SSL and afpstats

This commit is contained in:
Orivej Desh
2017-11-09 04:53:34 +00:00
parent 1e75677118
commit e1340e67aa
3 changed files with 39 additions and 33 deletions
+17 -6
View File
@@ -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 ];
};
}