add cups. This is not complete, it misses PAM, SSL and a lot of other support...
svn path=/nixpkgs/trunk/; revision=4113
This commit is contained in:
parent
a55b35c264
commit
d5b2a3cfe2
5
pkgs/misc/cups/builder.sh
Normal file
5
pkgs/misc/cups/builder.sh
Normal file
@ -0,0 +1,5 @@
|
||||
source $stdenv/setup
|
||||
|
||||
export INITDIR=$out/etc/rc.d
|
||||
|
||||
genericBuild
|
12
pkgs/misc/cups/cups-rc.d.patch
Normal file
12
pkgs/misc/cups/cups-rc.d.patch
Normal file
@ -0,0 +1,12 @@
|
||||
diff -ruN cups-1.1.23/Makedefs.in cups-1.1.23.new/Makedefs.in
|
||||
--- cups-1.1.23/Makedefs.in 2005-01-03 20:29:44.000000000 +0100
|
||||
+++ cups-1.1.23.new/Makedefs.in 2005-10-21 14:53:34.000000000 +0200
|
||||
@@ -139,7 +139,7 @@
|
||||
DATADIR = $(BUILDROOT)@CUPS_DATADIR@
|
||||
DOCDIR = $(BUILDROOT)@CUPS_DOCROOT@
|
||||
INCLUDEDIR = $(BUILDROOT)$(includedir)
|
||||
-INITDIR = @INITDIR@
|
||||
+INITDIR = $(out)/etc/rc.d
|
||||
INITDDIR = @INITDDIR@
|
||||
LIBDIR = $(BUILDROOT)$(libdir)
|
||||
LOCALEDIR = $(BUILDROOT)@CUPS_LOCALEDIR@
|
11
pkgs/misc/cups/default.nix
Normal file
11
pkgs/misc/cups/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ stdenv, fetchurl}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "cups-1.1.23";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.funet.fi/pub/mirrors/ftp.easysw.com/pub/cups/1.1.23/cups-1.1.23-source.tar.bz2;
|
||||
md5 = "4ce09b1dce09b6b9398af0daae9adf63";
|
||||
};
|
||||
patches = [./cups-rc.d.patch];
|
||||
}
|
Loading…
Reference in New Issue
Block a user