================================ pam:source=0.99.6.2-12 cvc rdiff pam -1 /weasel.rpath.org@wgl:3-devel/0.99.6.2-12 ================================ 0.99.6.2-12 Filip Brcic (brcha@xxxxxxx) Wed Jun 10 12:06:18 2009 Automatic promote by rBuild. system-auth.pamd: new --- /dev/null +++ system-auth.pamd @@ -0,0 +16 @@ +#%PAM-1.0 +# This file is auto-generated. +# User changes will be destroyed the next time authconfig is run. +auth required pam_env.so +auth sufficient pam_unix.so try_first_pass nullok +auth required pam_deny.so + +account required pam_unix.so + +password required pam_cracklib.so try_first_pass retry=3 +password sufficient pam_unix.so try_first_pass use_authtok nullok md5 shadow +password required pam_deny.so + +session optional pam_keyinit.so revoke +session required pam_limits.so +session required pam_unix.so pam.recipe: new --- /dev/null +++ pam.recipe @@ -0,0 +103 @@ +# +# Copyright (c) 2004-2008 rPath, Inc. +# This file is distributed under the terms of the MIT License. +# A copy is available at http://www.rpath.com/permanent/mit-license.html +# + +class Pam(CPackageRecipe): + name = 'pam' + version = '0.99.6.2' + + buildRequires = [ 'autoconf:runtime', 'automake:runtime', + 'libtool:runtime', 'glib:devel', 'cracklib:devel', 'cracklib:runtime', + 'flex:runtime', 'bison:runtime', 'db:devel', 'pkgconfig:devel', + 'libxml2:runtime', 'libxslt:runtime', 'xauth:runtime', ] + + # FIXME: Don't build docs to break build loop: + # pam -> linuxdoc-tools -> opensp -> xmlto -> util-linux -> pam + #if Use.builddocs: + # buildRequires.append('linuxdoc-tools') + + def setup(r): + r.disableParallelMake() + r.macros.update({ + 'sbindir': '%(essentialsbindir)s', + 'cflags': '-fPIC %(cflags)s', + 'pamcso': '0.81.0', + 'pamso': '0.81.5', + 'pam_miscso': '0.81.2', + }) + + r.addArchive( 'http://www.kernel.org/pub/linux/libs/pam/pre/library/Linux-PAM-%(version)s.tar.bz2', + keyid='517D0F0E') + + srpm = 'http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/pam-0.99.6.2-2.fc6.src.rpm' + r.addSource('other.pamd', rpm=srpm) + r.addSource('system-auth.pamd') + r.addSource('config-util.pamd', rpm=srpm) + r.addPatch('pam-0.99.3.0-cracklib-try-first-pass.patch', rpm=srpm) + r.addPatch('pam-0.99.4.0-dbpam.patch', rpm=srpm) + + # Add compatibility with older pam configuration files + r.addArchive('pam-redhat-0.99.6-2.tar.bz2', rpm=srpm, dir='%(maindir)s') + r.addPatch('pam-0.99.5.0-redhat-modules.patch', rpm=srpm) + # compatibility with recent autotools + r.addPatch('http://cvs.fedora.redhat.com/viewcvs/*checkout*/devel/pam/pam-0.99.6.2-reconf.patch') + + r.Configure( + ' --libdir=%(essentiallibdir)s --enable-shared' + ' --enable-static-libpam --enable-fakeroot=%(destdir)s' + ' --includedir=%(includedir)s/security' + ' --enable-isadir=../../%(lib)s/security' ) + r.Make() + + r.MakeInstall() + r.Install('other.pamd', '%(sysconfdir)s/pam.d/other', mode=0644) + r.Install('system-auth.pamd', '%(sysconfdir)s/pam.d/system-auth', + mode=0644) + r.Install('config-util.pamd', '%(sysconfdir)s/pam.d/config-util', + mode=0644) + r.Install('doc/man/*.3', '%(mandir)s/man3/', mode=0644) + r.Install('doc/man/*.8', '%(mandir)s/man8/', mode=0644) + + # some libraries are essential, move them and fix symlinks + for lib, ver in zip(('libpam', 'libpamc', 'libpam_misc'), + ('%(pamso)s', '%(pamcso)s', '%(pam_miscso)s')): + r.Symlink('%%(essentiallibdir)s/%s.so.%s' %(lib, ver), + '%%(libdir)s/%s.so' %lib) + r.Symlink('%s.so.%s' % (lib, ver), + '%%(essentiallibdir)s/%s.so' %lib) + + r.MakeDirs('%(localstatedir)s/run/console') + r.ExcludeDirectories(exceptions='%(localstatedir)s/run/console') + + # pam_radius in the Linux-PAM package is out-of-date, + # get rid of it so it doesn't clash with up-to-date ones + # kept up externally + r.Run('rm -f doc/txts/README.pam_radius') + r.Remove('%(essentiallibdir)s/security/pam_radius.so') + + # /lib/security needs to exist regardless of %(lib)s + r.MakeDirs('/lib/security', mode=0755) + + # Helper programs need special permissions + r.SetModes('%(essentialsbindir)s/unix_chkpwd', 04555) + + # we use versioned special docs + r.Move('/usr/share/doc/pam/*', '%(thisdocdir)s/') + + # there is really no runtime for pam per se; it's purely library + r.ComponentSpec('lib', '%(essentiallibdir)s/security/') + r.ComponentSpec(catchall='data') + # The /lib/security directory must exist even on multilib systems, + # since $ISA is "../../lib64/security/" and is relative to + # /lib/security, which must therefore exist. It needs to go + # in :data instead of :lib to make multilib installs work, since + # it cannot be shared. + r.ExcludeDirectories(exceptions='/lib/security') + r.ComponentSpec('data', '/lib/security') + r.Requires('pam:data', r'%(essentiallibdir)s/libpam\.so.*') + + # Silence warnings from pam_env (RPL-1317) + r.Create('%(sysconfdir)s/environment') + r.InitialContents('%(sysconfdir)s/environment') pam-0.99.6.2-2.fc6.src.rpm: new Linux-PAM-0.99.6.2.tar.bz2: new pam-0.99.6.2-reconf.patch: new Committed by: brcha