summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2005-06-23 13:54:34 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2005-06-23 13:54:34 +0000
commit078e602efc987fbcf77f523105f55a8180fab87f (patch)
tree7f97bc6b634d4ffe6372683f69ea1deabb019066 /pkgs
parent39d6e0a2ed733aa83eb128a314f91d692ee6878f (diff)
downloadnixpkgs-078e602efc987fbcf77f523105f55a8180fab87f.tar
nixpkgs-078e602efc987fbcf77f523105f55a8180fab87f.tar.gz
nixpkgs-078e602efc987fbcf77f523105f55a8180fab87f.tar.bz2
nixpkgs-078e602efc987fbcf77f523105f55a8180fab87f.tar.lz
nixpkgs-078e602efc987fbcf77f523105f55a8180fab87f.tar.xz
nixpkgs-078e602efc987fbcf77f523105f55a8180fab87f.tar.zst
nixpkgs-078e602efc987fbcf77f523105f55a8180fab87f.zip
add mingetty
svn path=/nixpkgs/trunk/; revision=3250
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/os-specific/linux/mingetty/builder.sh8
-rw-r--r--pkgs/os-specific/linux/mingetty/default.nix11
-rw-r--r--pkgs/os-specific/linux/mingetty/makefile.patch20
3 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/mingetty/builder.sh b/pkgs/os-specific/linux/mingetty/builder.sh
new file mode 100644
index 00000000000..d5e847db742
--- /dev/null
+++ b/pkgs/os-specific/linux/mingetty/builder.sh
@@ -0,0 +1,8 @@
+. $stdenv/setup
+
+echo $out
+
+export DESTDIR=$out
+
+genericBuild
+
diff --git a/pkgs/os-specific/linux/mingetty/default.nix b/pkgs/os-specific/linux/mingetty/default.nix
new file mode 100644
index 00000000000..efb8240fdde
--- /dev/null
+++ b/pkgs/os-specific/linux/mingetty/default.nix
@@ -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];
+}
diff --git a/pkgs/os-specific/linux/mingetty/makefile.patch b/pkgs/os-specific/linux/mingetty/makefile.patch
new file mode 100644
index 00000000000..5b8091b6ff1
--- /dev/null
+++ b/pkgs/os-specific/linux/mingetty/makefile.patch
@@ -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
+