OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /v/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 12-Sep-2006 08:27:08
Branch: HEAD Handle: 2006091207270800
Modified files:
openpkg-src/perl-sys perl-sys.spec
Log:
add optional Authen::PAM support
Summary:
Revision Changes Path
1.156 +24 -1 openpkg-src/perl-sys/perl-sys.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/perl-sys/perl-sys.spec
============================================================================
$ cvs diff -u -r1.155 -r1.156 perl-sys.spec
--- openpkg-src/perl-sys/perl-sys.spec 4 Sep 2006 14:11:38 -0000
1.155
+++ openpkg-src/perl-sys/perl-sys.spec 12 Sep 2006 06:27:08 -0000
1.156
@@ -39,6 +39,7 @@
%define V_file_tail 0.99.3
%define V_freezethaw 0.43
%define V_authen_sasl 2.10
+%define V_authen_pam 0.16
%define V_weakref 0.01
%define V_filehandle_deluxe 0.92
%define V_filehandle_rollback 1.05
@@ -65,7 +66,10 @@
Group: Language
License: GPL/Artistic
Version: %{V_perl}
-Release: 20060904
+Release: 20060912
+
+# package options
+%option with_pam no
# list of sources
Source0:
http://www.cpan.org/modules/by-module/Unix/Unix-Syslog-%{V_unix_syslog}.tar.gz
@@ -97,6 +101,7 @@
Source26:
http://www.cpan.org/modules/by-module/IPC/IPC-Run3-%{V_ipc_run3}.tar.gz
Source27:
http://www.cpan.org/modules/by-module/IO/IO-Mux-%{V_io_mux}.tar.gz
Source28:
http://www.cpan.org/modules/by-module/File/File-FnMatch-%{V_file_fnmatch}.tar.gz
+Source29:
http://www.cpan.org/modules/by-module/Authen/Authen-PAM-%{V_authen_pam}.tar.gz
# build information
Prefix: %{l_prefix}
@@ -105,6 +110,10 @@
PreReq: OpenPKG, openpkg >= 20040130, perl >= %{V_perl}
BuildPreReq: perl-time, perl-term
PreReq: perl-time, perl-term
+%if "%{with_pam}" == "yes"
+BuildPreReq: PAM
+PreReq: PAM
+%endif
AutoReq: no
AutoReqProv: no
@@ -124,6 +133,7 @@
- File::Tail (%{V_file_tail})
- FreezeThaw (%{V_freezethaw})
- Authen::SASL (%{V_authen_sasl})
+ - Authen::PAM (%{V_authen_pam}) [with_pam=yes]
- Archive::Zip (%{V_archive_zip})
- WeakRef (%{V_weakref})
- FileHandle::Deluxe (%{V_filehandle_deluxe})
@@ -286,6 +296,11 @@
url = http://www.cpan.org/modules/by-module/File/
regex = File-FnMatch-(__VER__)\.tar\.gz
}
+ prog perl-sys:Authen-PAM = {
+ version = %{V_authen_pam}
+ url = http://www.cpan.org/modules/by-module/Authen/
+ regex = Authen-PAM-(__VER__)\.tar\.gz
+ }
%prep
%setup -q -c
@@ -317,6 +332,7 @@
%setup -q -T -D -a 26
%setup -q -T -D -a 27
%setup -q -T -D -a 28
+ %setup -q -T -D -a 29
%build
@@ -352,6 +368,13 @@
%{l_prefix}/bin/perl-openpkg -d %{SOURCE26} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE27} configure build install
%{l_prefix}/bin/perl-openpkg -d %{SOURCE28} configure build install
+%if "%{with_pam}" == "yes"
+ export CC="%{l_cc}"
+ export CFLAGS="%{l_cflags} -I`%{l_rc} --query pam_incdir`"
+ export CPPFLAGS="%{l_cppflags} -I`%{l_rc} --query pam_incdir`"
+ export LDFLAGS="%{l_ldflags} -L`%{l_rc} --query pam_libdir`"
+ %{l_prefix}/bin/perl-openpkg -d %{SOURCE29} configure build install
+%endif
%{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} `cat
perl-openpkg-files`
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [email protected]