Репозитории ALT
Группа :: Система/Основа
Пакет: pam_userpass
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Name: pam_userpass
Version: 1.0
Release: alt1
Summary: Pluggable authentication module for USER/PASS-style protocols
License: LGPL
Group: System/Base
Url: http://www.openwall.com/pam/
Source: ftp://ftp.openwall.com/pub/projects/pam/modules/%name/%name-%version.tar.bz2
BuildPreReq: libpam0-devel
%set_pam_name %name
%package -n %pam_name
Summary: Pluggable authentication module for USER/PASS-style protocols
License: LGPL
Group: System/Base
Provides: %name = %version-%release
Obsoletes: %name
%package devel
Summary: Library and header files for developing pam_userpass-aware applications
Group: Development/C
Requires: %name = %version-%release, libpam-devel
%package devel-static
Summary: Development static %name library
Group: Development/C
Requires: %name-devel = %version-%release
%description
%name is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
%description -n %pam_name
%name is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
%description devel
%name is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
This package contains development library and header files
required for building pam_userpass-aware applications.
%description devel-static
%name is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
This package contains development static library.
%prep
%setup -q
%build
%make_build CFLAGS="$RPM_OPT_FLAGS -Iinclude -fPIC -Werror" SECUREDIR=/%_lib/security LIBDIR=%_libdir LDFLAGS=
%install
%make_install install DESTDIR=$RPM_BUILD_ROOT SECUREDIR=/%_lib/security LIBDIR=%_libdir
%define docdir %_docdir/%name-%version
%__rm -rf $RPM_BUILD_ROOT%docdir
%__mkdir_p $RPM_BUILD_ROOT%docdir/example
%__install -p -m644 LICENSE README $RPM_BUILD_ROOT%docdir/
%__install -p -m644 example_userpass.c \
$RPM_BUILD_ROOT%docdir/example/
%__install -p -m644 conf/example_userpass \
$RPM_BUILD_ROOT%docdir/example/example_userpass.pamd
%__chmod a-x $RPM_BUILD_ROOT/%_lib/security/*.so*
%add_findprov_lib_path /%_lib/security
%post -n %pam_name -p %post_ldconfig
%postun -n %pam_name -p %postun_ldconfig
%files -n %pam_name
%_libdir/*.so.*
/%_lib/security/*
%dir %docdir
%docdir/[A-Z]*
%files devel
%_libdir/*.so
%_includedir/security/*
%dir %docdir
%docdir/example
%files devel-static
%_libdir/*.a
%changelog
…
Полный changelog можно просмотреть здесь
Version: 1.0
Release: alt1
Summary: Pluggable authentication module for USER/PASS-style protocols
License: LGPL
Group: System/Base
Url: http://www.openwall.com/pam/
Source: ftp://ftp.openwall.com/pub/projects/pam/modules/%name/%name-%version.tar.bz2
BuildPreReq: libpam0-devel
%set_pam_name %name
%package -n %pam_name
Summary: Pluggable authentication module for USER/PASS-style protocols
License: LGPL
Group: System/Base
Provides: %name = %version-%release
Obsoletes: %name
%package devel
Summary: Library and header files for developing pam_userpass-aware applications
Group: Development/C
Requires: %name = %version-%release, libpam-devel
%package devel-static
Summary: Development static %name library
Group: Development/C
Requires: %name-devel = %version-%release
%description
%name is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
%description -n %pam_name
%name is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
%description devel
%name is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
This package contains development library and header files
required for building pam_userpass-aware applications.
%description devel-static
%name is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing
to verify a username/password pair. The module doesn't do
any actual authentication, - other modules, such as pam_tcb,
should be stacked to provide the authentication.
This package contains development static library.
%prep
%setup -q
%build
%make_build CFLAGS="$RPM_OPT_FLAGS -Iinclude -fPIC -Werror" SECUREDIR=/%_lib/security LIBDIR=%_libdir LDFLAGS=
%install
%make_install install DESTDIR=$RPM_BUILD_ROOT SECUREDIR=/%_lib/security LIBDIR=%_libdir
%define docdir %_docdir/%name-%version
%__rm -rf $RPM_BUILD_ROOT%docdir
%__mkdir_p $RPM_BUILD_ROOT%docdir/example
%__install -p -m644 LICENSE README $RPM_BUILD_ROOT%docdir/
%__install -p -m644 example_userpass.c \
$RPM_BUILD_ROOT%docdir/example/
%__install -p -m644 conf/example_userpass \
$RPM_BUILD_ROOT%docdir/example/example_userpass.pamd
%__chmod a-x $RPM_BUILD_ROOT/%_lib/security/*.so*
%add_findprov_lib_path /%_lib/security
%post -n %pam_name -p %post_ldconfig
%postun -n %pam_name -p %postun_ldconfig
%files -n %pam_name
%_libdir/*.so.*
/%_lib/security/*
%dir %docdir
%docdir/[A-Z]*
%files devel
%_libdir/*.so
%_includedir/security/*
%dir %docdir
%docdir/example
%files devel-static
%_libdir/*.a
%changelog
…
Полный changelog можно просмотреть здесь