uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
67
pkgs/tools/filesystems/netatalk/default.nix
Normal file
67
pkgs/tools/filesystems/netatalk/default.nix
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
{ fetchurl, lib, stdenv, autoreconfHook, pkg-config, perl, python3
|
||||
, db, libgcrypt, avahi, libiconv, pam, openssl, acl
|
||||
, ed, libtirpc, libevent, fetchpatch
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "netatalk";
|
||||
version = "3.1.13";
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://sourceforge/netatalk/netatalk/netatalk-${version}.tar.bz2";
|
||||
sha256 = "0pg0slvvvq3l6f5yjz9ybijg4i6rs5a6c8wcynaasf8vzsyadbc9";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./no-suid.patch
|
||||
./omitLocalstatedirCreation.patch
|
||||
(fetchpatch {
|
||||
name = "make-afpstats-python3-compatible.patch";
|
||||
url = "https://github.com/Netatalk/Netatalk/commit/916b515705cf7ba28dc53d13202811c6e1fe6a9e.patch";
|
||||
sha256 = "sha256-DAABpYjQPJLsQBhmtP30gA357w0Qn+AsnFgAeyDC/Rg=";
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config perl python3 python3.pkgs.wrapPython ];
|
||||
|
||||
buildInputs = [ db libgcrypt avahi libiconv pam openssl acl libevent ];
|
||||
|
||||
configureFlags = [
|
||||
"--with-bdb=${db.dev}"
|
||||
"--with-ssl-dir=${openssl.dev}"
|
||||
"--with-lockfile=/run/lock/netatalk"
|
||||
"--with-libevent=${libevent.dev}"
|
||||
"--localstatedir=/var/lib"
|
||||
];
|
||||
|
||||
# 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
|
||||
${libtirpc}/lib/libtirpc.so \\
|
||||
.
|
||||
w
|
||||
EOF
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
buildPythonPath ${python3.pkgs.dbus-python}
|
||||
patchPythonScript $out/bin/afpstats
|
||||
'';
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
meta = {
|
||||
description = "Apple Filing Protocol Server";
|
||||
homepage = "http://netatalk.sourceforge.net/";
|
||||
license = lib.licenses.gpl3;
|
||||
platforms = lib.platforms.linux;
|
||||
maintainers = with lib.maintainers; [ jcumming ];
|
||||
};
|
||||
}
|
||||
11
pkgs/tools/filesystems/netatalk/no-suid.patch
Normal file
11
pkgs/tools/filesystems/netatalk/no-suid.patch
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
diff --git a/bin/afppasswd/Makefile.am b/bin/afppasswd/Makefile.am
|
||||
index 578eac1..d17aa22 100644
|
||||
--- a/bin/afppasswd/Makefile.am
|
||||
+++ b/bin/afppasswd/Makefile.am
|
||||
@@ -16,5 +16,5 @@ AM_CFLAGS = @SSL_CFLAGS@ -I$(top_srcdir)/sys \
|
||||
|
||||
install-exec-hook:
|
||||
if HAVE_OPENSSL
|
||||
- chmod u+s $(DESTDIR)$(bindir)/afppasswd
|
||||
+# chmod u+s $(DESTDIR)$(bindir)/afppasswd
|
||||
endif
|
||||
|
|
@ -0,0 +1,19 @@
|
|||
diff --git a/config/Makefile.am b/config/Makefile.am
|
||||
index c98a2ab..58b7f0a 100644
|
||||
--- a/config/Makefile.am
|
||||
+++ b/config/Makefile.am
|
||||
@@ -36,10 +36,10 @@ endif
|
||||
#
|
||||
|
||||
install-data-local: install-config-files
|
||||
- mkdir -pm 0755 $(DESTDIR)$(localstatedir)/netatalk/
|
||||
- mkdir -pm 0755 $(DESTDIR)$(localstatedir)/netatalk/CNID/
|
||||
- $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(localstatedir)/netatalk/
|
||||
- $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(localstatedir)/netatalk/CNID/
|
||||
+# mkdir -pm 0755 $(DESTDIR)$(localstatedir)/netatalk/
|
||||
+# mkdir -pm 0755 $(DESTDIR)$(localstatedir)/netatalk/CNID/
|
||||
+# $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(localstatedir)/netatalk/
|
||||
+# $(INSTALL_DATA) $(srcdir)/README $(DESTDIR)$(localstatedir)/netatalk/CNID/
|
||||
|
||||
uninstall-local:
|
||||
@for f in $(CONFFILES) $(GENFILES); do \
|
||||
Loading…
Add table
Add a link
Reference in a new issue