* Added procps 2.0.11 (for `ps', mostly).
svn path=/nixpkgs/trunk/; revision=2080
This commit is contained in:
parent
34326de3c2
commit
bd4b67cf1f
16
pkgs/os-specific/linux/procps/builder.sh
Normal file
16
pkgs/os-specific/linux/procps/builder.sh
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
. $stdenv/setup
|
||||||
|
|
||||||
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I$ncurses/include/ncurses"
|
||||||
|
|
||||||
|
preInstall=preInstall
|
||||||
|
preInstall() {
|
||||||
|
ensureDir "$prefix/bin"
|
||||||
|
ensureDir "$prefix/sbin"
|
||||||
|
ensureDir "$prefix/lib"
|
||||||
|
ensureDir "$prefix/share/man/man1"
|
||||||
|
ensureDir "$prefix/share/man/man5"
|
||||||
|
ensureDir "$prefix/share/man/man8"
|
||||||
|
}
|
||||||
|
|
||||||
|
genericBuild
|
||||||
|
|
15
pkgs/os-specific/linux/procps/default.nix
Normal file
15
pkgs/os-specific/linux/procps/default.nix
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
{stdenv, fetchurl, ncurses}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "procps-2.0.11";
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = http://surriel.com/procps/procps-2.0.11.tar.bz2;
|
||||||
|
md5 = "8b9464631ebb02f1c2bcda16fb81d62f";
|
||||||
|
};
|
||||||
|
patches = [./makefile.patch];
|
||||||
|
buildInputs = [ncurses];
|
||||||
|
inherit ncurses;
|
||||||
|
# Needed for `sort -n +2' invocation in the Makefile.
|
||||||
|
_POSIX2_VERSION = "199209";
|
||||||
|
}
|
58
pkgs/os-specific/linux/procps/makefile.patch
Normal file
58
pkgs/os-specific/linux/procps/makefile.patch
Normal file
@ -0,0 +1,58 @@
|
|||||||
|
diff -rc procps-orig/Makefile procps-2.0.11/Makefile
|
||||||
|
*** procps-orig/Makefile 2002-12-04 21:49:07.000000000 +0100
|
||||||
|
--- procps-2.0.11/Makefile 2005-01-21 19:20:41.092274872 +0100
|
||||||
|
***************
|
||||||
|
*** 3,19 ****
|
||||||
|
|
||||||
|
export PREFIX = #proc# prefix for program names
|
||||||
|
|
||||||
|
! export DESTDIR =
|
||||||
|
! export MANDIR = /usr/share/man
|
||||||
|
export MAN1DIR = $(DESTDIR)$(MANDIR)/man1
|
||||||
|
export MAN5DIR = $(DESTDIR)$(MANDIR)/man5
|
||||||
|
export MAN8DIR = $(DESTDIR)$(MANDIR)/man8
|
||||||
|
export BINDIR = $(DESTDIR)/bin
|
||||||
|
export SBINDIR = $(DESTDIR)/sbin
|
||||||
|
! export XBINDIR = $(DESTDIR)/usr/X11R6/bin
|
||||||
|
! export USRBINDIR = $(DESTDIR)/usr/bin
|
||||||
|
! export PROCDIR = $(DESTDIR)/usr/bin# /usr/proc/bin for Solaris devotees
|
||||||
|
! export OWNERGROUP = --owner 0 --group 0
|
||||||
|
export INSTALLBIN = install --strip
|
||||||
|
export INSTALLLIB = install
|
||||||
|
export INSTALLSCT = install
|
||||||
|
--- 3,19 ----
|
||||||
|
|
||||||
|
export PREFIX = #proc# prefix for program names
|
||||||
|
|
||||||
|
! export DESTDIR = $(out)
|
||||||
|
! export MANDIR = /share/man
|
||||||
|
export MAN1DIR = $(DESTDIR)$(MANDIR)/man1
|
||||||
|
export MAN5DIR = $(DESTDIR)$(MANDIR)/man5
|
||||||
|
export MAN8DIR = $(DESTDIR)$(MANDIR)/man8
|
||||||
|
export BINDIR = $(DESTDIR)/bin
|
||||||
|
export SBINDIR = $(DESTDIR)/sbin
|
||||||
|
! export XBINDIR = $(DESTDIR)/bin
|
||||||
|
! export USRBINDIR = $(DESTDIR)/bin
|
||||||
|
! export PROCDIR = $(DESTDIR)/bin# /usr/proc/bin for Solaris devotees
|
||||||
|
! export OWNERGROUP =
|
||||||
|
export INSTALLBIN = install --strip
|
||||||
|
export INSTALLLIB = install
|
||||||
|
export INSTALLSCT = install
|
||||||
|
***************
|
||||||
|
*** 30,36 ****
|
||||||
|
|
||||||
|
# easy to command-line override
|
||||||
|
export GCC_WARN = -Wall -Wstrict-prototypes -Wshadow
|
||||||
|
! export INCDIRS = -I/usr/include/ncurses -I/usr/X11R6/include
|
||||||
|
export CC = gcc #-ggdb # this gets compiling and linking :-)
|
||||||
|
export OPT = -O3
|
||||||
|
export CFLAGS = -D_GNU_SOURCE $(OPT) $(GCC_WARN) -I$(shell pwd) $(INCDIRS)
|
||||||
|
--- 30,36 ----
|
||||||
|
|
||||||
|
# easy to command-line override
|
||||||
|
export GCC_WARN = -Wall -Wstrict-prototypes -Wshadow
|
||||||
|
! export INCDIRS =
|
||||||
|
export CC = gcc #-ggdb # this gets compiling and linking :-)
|
||||||
|
export OPT = -O3
|
||||||
|
export CFLAGS = -D_GNU_SOURCE $(OPT) $(GCC_WARN) -I$(shell pwd) $(INCDIRS)
|
||||||
|
Only in procps-2.0.11/: Makefile.~1.71.~
|
@ -739,6 +739,12 @@ rec {
|
|||||||
ant = apacheAntBlackdown14;
|
ant = apacheAntBlackdown14;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
mysql = (import ../servers/sql/mysql) {
|
||||||
|
inherit fetchurl stdenv;
|
||||||
|
};
|
||||||
|
*/
|
||||||
|
|
||||||
jetty = (import ../servers/http/jetty) {
|
jetty = (import ../servers/http/jetty) {
|
||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
@ -779,6 +785,10 @@ rec {
|
|||||||
glibc = stdenv.gcc.glibc;
|
glibc = stdenv.gcc.glibc;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
procps = import ../os-specific/linux/procps {
|
||||||
|
inherit fetchurl stdenv ncurses;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
### DATA
|
### DATA
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user