diff options
Diffstat (limited to 'pkgs/os-specific/linux/pam_console')
-rw-r--r-- | pkgs/os-specific/linux/pam_console/configure.ac | 27 | ||||
-rw-r--r-- | pkgs/os-specific/linux/pam_console/default.nix | 9 |
2 files changed, 30 insertions, 6 deletions
diff --git a/pkgs/os-specific/linux/pam_console/configure.ac b/pkgs/os-specific/linux/pam_console/configure.ac new file mode 100644 index 000000000000..0d2d0288acff --- /dev/null +++ b/pkgs/os-specific/linux/pam_console/configure.ac @@ -0,0 +1,27 @@ +AC_PREREQ([2.59]) +AC_INIT([pam_console], [@PV@]) +AM_INIT_AUTOMAKE([pam_console], [@PV@]) + +AC_CONFIG_HEADER([config.h]) + +AC_GNU_SOURCE + +AM_CONDITIONAL([HAVE_VERSIONING], [test "x" = "y"]) + +PKG_CHECK_MODULES([GLIB], [glib-2.0]) + +m4_undefine([AC_PROG_CXX]) +m4_defun([AC_PROG_CXX],[]) +m4_undefine([AC_PROG_F77]) +m4_defun([AC_PROG_F77],[]) +AC_PROG_LIBTOOL + +AC_PROG_YACC + +SECUREDIR=${libdir}/security +SCONFIGDIR=${sysconfdir}/security + +AC_SUBST([SECUREDIR]) +AC_SUBST([SCONFIGDIR]) + +AC_OUTPUT([Makefile]) diff --git a/pkgs/os-specific/linux/pam_console/default.nix b/pkgs/os-specific/linux/pam_console/default.nix index ae759479875b..56c881b33407 100644 --- a/pkgs/os-specific/linux/pam_console/default.nix +++ b/pkgs/os-specific/linux/pam_console/default.nix @@ -2,12 +2,9 @@ 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"; - }; + # Configure script borrowed from the good folks at Gentoo + # (http://sources.gentoo.org/viewcvs.py/*checkout*/gentoo-x86/sys-auth/pam_console/files/pam_console-configure.ac). + configure = ./configure.ac; in |