2017-11-08 20:11:06 +00:00
|
|
|
{ fetchurl, stdenv, pkgconfig, db, libgcrypt, avahi, libiconv, pam, openssl, acl, ed, glibc, perl, python2 }:
|
2013-09-16 05:54:57 +00:00
|
|
|
|
2015-08-14 05:05:03 +00:00
|
|
|
stdenv.mkDerivation rec{
|
2017-11-07 22:57:01 +00:00
|
|
|
name = "netatalk-3.1.11";
|
2013-09-16 05:54:57 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/netatalk/netatalk/${name}.tar.bz2";
|
2017-11-07 22:57:01 +00:00
|
|
|
sha256 = "3434472ba96d3bbe3b024274438daad83b784ced720f7662a4c1d0a1078799a6";
|
2013-09-16 05:54:57 +00:00
|
|
|
};
|
|
|
|
|
2017-11-08 20:11:06 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig perl python2 ];
|
2017-09-05 21:26:13 +00:00
|
|
|
buildInputs = [ db libgcrypt avahi libiconv pam openssl acl ];
|
2015-08-14 05:05:03 +00:00
|
|
|
|
|
|
|
patches = ./omitLocalstatedirCreation.patch;
|
2013-09-16 05:54:57 +00:00
|
|
|
|
|
|
|
configureFlags = [
|
2014-01-31 20:05:37 +00:00
|
|
|
"--with-bdb=${db}"
|
2016-04-16 17:44:32 +00:00
|
|
|
"--with-openssl=${openssl.dev}"
|
2015-08-14 05:05:03 +00:00
|
|
|
"--with-lockfile=/run/lock/netatalk"
|
|
|
|
"--localstatedir=/var/lib"
|
2013-09-16 05:54:57 +00:00
|
|
|
];
|
|
|
|
|
2016-09-02 18:38:03 +00:00
|
|
|
# Expose librpcsvc to the linker for afpd
|
|
|
|
# Fixes errors that showed up when closure-size was merged:
|
|
|
|
# afpd-nfsquota.o: In function `callaurpc':
|
|
|
|
# netatalk-3.1.7/etc/afpd/nfsquota.c:78: undefined reference to `xdr_getquota_args'
|
|
|
|
# netatalk-3.1.7/etc/afpd/nfsquota.c:78: undefined reference to `xdr_getquota_rslt'
|
|
|
|
postConfigure = ''
|
|
|
|
${ed}/bin/ed -v etc/afpd/Makefile << EOF
|
|
|
|
/^afpd_LDADD
|
|
|
|
/am__append_2
|
|
|
|
a
|
|
|
|
${glibc.static}/lib/librpcsvc.a \\
|
|
|
|
.
|
|
|
|
w
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2016-09-01 08:46:11 +00:00
|
|
|
enableParallelBuilding = true;
|
2013-09-16 05:54:57 +00:00
|
|
|
|
|
|
|
meta = {
|
2015-08-14 05:05:03 +00:00
|
|
|
description = "Apple Filing Protocol Server";
|
2013-09-16 05:54:57 +00:00
|
|
|
homepage = http://netatalk.sourceforge.net/;
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ jcumming ];
|
|
|
|
};
|
|
|
|
}
|
2017-11-07 22:57:01 +00:00
|
|
|
|