* Added pam_console.
svn path=/nixpkgs/trunk/; revision=8859
This commit is contained in:
parent
0f98d91357
commit
bade82f510
36
pkgs/os-specific/linux/pam_console/default.nix
Normal file
36
pkgs/os-specific/linux/pam_console/default.nix
Normal file
@ -0,0 +1,36 @@
|
||||
{stdenv, fetchurl, pam, autoconf, automake, libtool, pkgconfig, glib, bison, flex}:
|
||||
|
||||
let
|
||||
|
||||
# Configure script borrowed from the good folks at Gentoo.
|
||||
configure = fetchurl {
|
||||
# !!! move this somewhere safe
|
||||
url = "http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/sys-auth/pam_console/files/pam_console-configure.ac";
|
||||
sha256 = "00wilsxhwjjrkfnv2xzvlw4fxwj36ds4shnac3hksbjwb9qivmpl";
|
||||
};
|
||||
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "pam_console-0.99.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = http://cvs.fedora.redhat.com/repo/dist/pam/pam-redhat-0.99.5-1.tar.bz2/e2edde7861c48195728bc531e5a277e0/pam-redhat-0.99.5-1.tar.bz2;
|
||||
sha256 = "077xdhwspc785fas4yfw50mpy92rdfh35kq9awlrpbzq1fnapsfs";
|
||||
};
|
||||
|
||||
buildInputs = [pam autoconf automake libtool pkgconfig glib bison flex];
|
||||
|
||||
makeFlags = "LEX=flex";
|
||||
|
||||
configureFlags = "--disable-static";
|
||||
|
||||
preConfigure = "
|
||||
cd pam_console
|
||||
cp ${configure} configure.ac
|
||||
touch NEWS AUTHORS ChangeLog
|
||||
# Don't try to create /var/run/console.
|
||||
substituteInPlace Makefile.am --replace 'mkdir -m $(LOCKMODE) -p -p $(DESTDIR)$(LOCKDIR)' ''
|
||||
autoreconf --install
|
||||
";
|
||||
}
|
@ -2441,6 +2441,11 @@ rec {
|
||||
inherit stdenv fetchurl cracklib flex;
|
||||
};
|
||||
|
||||
pam_console = import ../os-specific/linux/pam_console {
|
||||
inherit stdenv fetchurl pam autoconf automake libtool pkgconfig bison flex;
|
||||
inherit (gtkLibs) glib;
|
||||
};
|
||||
|
||||
pam_devperm = import ../os-specific/linux/pam_devperm {
|
||||
inherit stdenv fetchurl pam;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user