add mingetty
svn path=/nixpkgs/trunk/; revision=3250
This commit is contained in:
parent
39d6e0a2ed
commit
078e602efc
8
pkgs/os-specific/linux/mingetty/builder.sh
Normal file
8
pkgs/os-specific/linux/mingetty/builder.sh
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
. $stdenv/setup
|
||||||
|
|
||||||
|
echo $out
|
||||||
|
|
||||||
|
export DESTDIR=$out
|
||||||
|
|
||||||
|
genericBuild
|
||||||
|
|
11
pkgs/os-specific/linux/mingetty/default.nix
Normal file
11
pkgs/os-specific/linux/mingetty/default.nix
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
{stdenv, fetchurl}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "mingetty-1.07";
|
||||||
|
builder = ./builder.sh;
|
||||||
|
src = fetchurl {
|
||||||
|
url = ftp://ftp.nluug.nl/pub/os/Linux/distr/debian/pool/main/m/mingetty/mingetty_1.07.orig.tar.gz;
|
||||||
|
md5 = "491dedf1ceff0e0f5f7bb9f55bf5213e";
|
||||||
|
};
|
||||||
|
patches = [./makefile.patch];
|
||||||
|
}
|
20
pkgs/os-specific/linux/mingetty/makefile.patch
Normal file
20
pkgs/os-specific/linux/mingetty/makefile.patch
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
diff -ruN mingetty-1.07.orig/Makefile mingetty-1.07.orig.new/Makefile
|
||||||
|
--- mingetty-1.07.orig/Makefile 2003-05-24 21:21:17.000000000 +0200
|
||||||
|
+++ mingetty-1.07.orig.new/Makefile 2005-06-23 15:43:28.000000000 +0200
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-DESTDIR=
|
||||||
|
+DESTDIR=$(out)
|
||||||
|
CC=gcc
|
||||||
|
CFLAGS=-O2 -Wall -W -pipe -D_GNU_SOURCE
|
||||||
|
MANDIR=/usr/share/man/man8
|
||||||
|
@@ -7,8 +7,8 @@
|
||||||
|
all: mingetty
|
||||||
|
|
||||||
|
install: all
|
||||||
|
- install -m 0755 mingetty $(DESTDIR)$(SBINDIR)
|
||||||
|
- install -m 0644 mingetty.8 $(DESTDIR)$(MANDIR)
|
||||||
|
+ install -D -m 0755 mingetty $(DESTDIR)$(SBINDIR)/mingetty
|
||||||
|
+ install -D -m 0644 mingetty.8 $(DESTDIR)$(MANDIR)/mingetty.8
|
||||||
|
|
||||||
|
mingetty: mingetty.o
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user