summary refs log tree commit diff
path: root/pkgs/os-specific/linux/eject
diff options
context:
space:
mode:
authorArmijn Hemel <armijn@gpl-violations.org>2005-09-01 16:38:31 +0000
committerArmijn Hemel <armijn@gpl-violations.org>2005-09-01 16:38:31 +0000
commit1c9be16b512fce81e636d7632c5c10fb52845047 (patch)
tree9d56f164c4cc3aa1be308c3dc5067b362c497b8d /pkgs/os-specific/linux/eject
parent6ef2284079de46812d258b1ade9a4aedb93cb012 (diff)
downloadnixpkgs-1c9be16b512fce81e636d7632c5c10fb52845047.tar
nixpkgs-1c9be16b512fce81e636d7632c5c10fb52845047.tar.gz
nixpkgs-1c9be16b512fce81e636d7632c5c10fb52845047.tar.bz2
nixpkgs-1c9be16b512fce81e636d7632c5c10fb52845047.tar.lz
nixpkgs-1c9be16b512fce81e636d7632c5c10fb52845047.tar.xz
nixpkgs-1c9be16b512fce81e636d7632c5c10fb52845047.tar.zst
nixpkgs-1c9be16b512fce81e636d7632c5c10fb52845047.zip
add eject, but remove the po subdir
svn path=/nixpkgs/trunk/; revision=3766
Diffstat (limited to 'pkgs/os-specific/linux/eject')
-rw-r--r--pkgs/os-specific/linux/eject/builder.sh5
-rw-r--r--pkgs/os-specific/linux/eject/default.nix13
-rw-r--r--pkgs/os-specific/linux/eject/eject-destdir.patch22
3 files changed, 40 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/eject/builder.sh b/pkgs/os-specific/linux/eject/builder.sh
new file mode 100644
index 00000000000..8b16223a349
--- /dev/null
+++ b/pkgs/os-specific/linux/eject/builder.sh
@@ -0,0 +1,5 @@
+source $stdenv/setup
+
+export destdir=$out
+
+genericBuild
diff --git a/pkgs/os-specific/linux/eject/default.nix b/pkgs/os-specific/linux/eject/default.nix
new file mode 100644
index 00000000000..8d20d90758b
--- /dev/null
+++ b/pkgs/os-specific/linux/eject/default.nix
@@ -0,0 +1,13 @@
+{stdenv, fetchurl, gettext}:
+
+stdenv.mkDerivation {
+  name = "eject-2.1.0";
+  builder = ./builder.sh;
+  src = fetchurl {
+    url = http://www.ibiblio.org/pub/Linux/utils/disk-management/eject-2.1.0.tar.gz;
+    md5 = "82e3a7a4d7e3323018c6938015ff25f7";
+  };
+  buildInputs = [gettext];
+  NIX_DEBUG=1;
+  patches = [./eject-destdir.patch];
+}
diff --git a/pkgs/os-specific/linux/eject/eject-destdir.patch b/pkgs/os-specific/linux/eject/eject-destdir.patch
new file mode 100644
index 00000000000..85abc097fbe
--- /dev/null
+++ b/pkgs/os-specific/linux/eject/eject-destdir.patch
@@ -0,0 +1,22 @@
+diff -ruN eject-2.1.0/Makefile.in eject-2.1.0.new/Makefile.in
+--- eject-2.1.0/Makefile.in	2002-12-09 23:38:08.000000000 +0100
++++ eject-2.1.0.new/Makefile.in	2005-09-01 18:36:41.000000000 +0200
+@@ -67,7 +67,7 @@
+ eject_SOURCES = eject.c
+ volname_SOURCES = volname.c
+ 
+-SUBDIRS = po
++#SUBDIRS = po
+ 
+ AM_CPPFLAGS = -I/usr/src/linux -I/usr/src/linux/include -DDEFAULTDEVICE=\"$(DEFAULTDEVICE)\" -DGETOPTLONG
+ AM_CFLAGS = -Wall -O3 $(RPM_OPT_FLAGS)
+diff -ruN eject-2.1.0/po/Makefile eject-2.1.0.new/po/Makefile
+--- eject-2.1.0/po/Makefile	2005-05-01 20:41:17.000000000 +0200
++++ eject-2.1.0.new/po/Makefile	2005-09-01 18:27:43.000000000 +0200
+@@ -1,5 +1,5 @@
+ PKGNAME=eject
+-PREFIX=$(DESTDIR)/usr
++PREFIX=$(prefix)/usr
+ INSTALL = install
+ MODIR = $(PREFIX)/share/locale
+ POTFILES = ../*.c ../*.h