Not yet working nfs-utils with dependency

svn path=/nixpkgs/branches/stdenv-updates/; revision=9874
This commit is contained in:
Yury G. Kudryashov
2007-12-08 01:05:39 +00:00
parent be5770f6d5
commit 183940edd3
3 changed files with 62 additions and 12 deletions

View File

@@ -0,0 +1,17 @@
args:
args.stdenv.mkDerivation {
name = "nfs-utils-1.1.1";
src = args.fetchurl {
url = mirror://sourceforge/nfs/nfs-utils-1.1.1.tar.gz;
sha256 = "0aa434cv7lgbrhks0rzhwxvbk2zsa17kjwxqjrrh87zrv9d2sr1x";
};
buildInputs =(with args; [kernelHeaders tcp_wrapper]);
meta = {
description = "nfs utils";
homepage = http://nfs.sourceforge.net/;
license = "GPL2";
};
}

View File

@@ -0,0 +1,26 @@
args:
args.stdenv.mkDerivation {
name = "tcp-wrappers-7.6";
src = args.fetchurl {
url = http://ftp.debian.org/debian/pool/main/t/tcp-wrappers/tcp-wrappers_7.6.dbs.orig.tar.gz;
sha256 = "0k68ziinx6biwar5lcb9jvv0rp6b3vmj6861n75bvrz4w1piwkdp";
};
# we need to set REAL_DAEMON_DIR somehow. I'm getting compilation errors
# I've managed to compile tcpd manually using
# make CFLAGS='-DSYS_ERRLIST_DEFINED=1 -Dvsyslog=1' tcpd
# see Makefile target all for details
postUnpack="cd upstream/tarballs; tar xfz *; cd tcp_wrappers_7.6;
sed -i -e 's=#REAL_DAEMON_DIR=/usr/sbin=REAL_DAEMON_DIR=/usr/sbin=' Makefile
";
buildPhase="
make CFLAGS='-DSYS_ERRLIST_DEFINED=1 -Dvsyslog=1' tcpd
"
buildInputs =(with args; [kernelHeaders gnused]);
# meta = ...
}