pam_mysql

Paul P Komkoff Jr i at stingr.net
Thu Jun 23 14:55:20 UTC 2005


Hi!

This is an attempt to make pam_mysql more uptodate.
Basically, the one shipped in extras now won't work with crypted md5
password, and I need to load some /etc/shadow file into mysql - that
was the reason I've touched it.

This needs cleanup - removing patch0, adding Epoch: 1 maybe (upstream
versioning did change) but I think this will be useful.

-- 
Paul P 'Stingray' Komkoff Jr // http://stingr.net/key <- my pgp key
 This message represents the official view of the voices in my head
-------------- next part --------------
--- /home/stingray/rpmbuild/SPECS/pam_mysql.spec	2005-04-07 02:12:42.000000000 +0400
+++ pam_mysql.spec.new	2005-06-23 18:46:06.000000000 +0400
@@ -1,14 +1,14 @@
 Summary:	PAM module for auth UNIX users using MySQL data base
 Name:		pam_mysql
-Version:	0.50
-Release:	6
+Version:	0.6.0
+Release:	1
 
 License:	GPL
 Group:		Base
-Source0:	http://dl.sf.net/pam-mysql/pam_mysql-0.5.tar.gz
+Source0:	http://dl.sf.net/pam-mysql/pam_mysql-0.6.0.tar.gz
 Patch:		pam_mysql-0.5-vars.patch
 URL:		http://sf.net/projects/pam-mysql/
-BuildRequires:	pam-devel mysql-devel zlib-devel
+BuildRequires:	pam-devel mysql-devel zlib-devel openssl-devel cyrus-sasl-devel
 BuildRoot:	%{_tmppath}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -16,22 +16,26 @@
 users against an MySQL database.
 
 %prep
-%setup -q -n %{name}
-%patch -p 1 -b .vars
+%setup -q
+#%patch -p 1 -b .vars
 
 %build
-make LIBDIR=%{_libdir}
+%configure --enable-static=no --with-openssl --with-cyrus-sasl2 --libdir=/%{_lib}
+make
+#make LIBDIR=%{_libdir}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -D -m 755 pam_mysql.so $RPM_BUILD_ROOT/%{_lib}/security/pam_mysql.so
+make install DESTDIR=$RPM_BUILD_ROOT
+rm $RPM_BUILD_ROOT/%{_lib}/security/pam_mysql.la
+#install -D -m 755 pam_mysql.so $RPM_BUILD_ROOT/%{_lib}/security/pam_mysql.so
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-,root,root)
-%doc Readme Changelog
+%doc README ChangeLog
 /%{_lib}/security/pam_mysql.so
 
 %changelog


More information about the fedora-extras-list mailing list