Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:sjcundy:Configuration
ubco-ldapauth
ubco-ldapauth.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ubco-ldapauth.spec of Package ubco-ldapauth
Name: ubco-ldapauth Version: 1.0 Release: 1 License: GPL BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch Source: %{name}-%{version}.tar.bz2 Requires: pam_ldap nss_ldap gcc kernel-source pwdutils openssh Group: System/Base Packager: Steve Cundy <steve.cundy@ubc.ca> Vendor: UBC Okanagan Summary: SLE10 UBCO IT LDAP Authentication # Define some variables %define patchdir /opt/UBCO/patches/%{name} %description Provide SLE10 Ldap based authentication for itservices staff only. + sudo permissions to itservices staff + basic security modifications to ssh authentication %prep %setup %build %install mkdir -p $RPM_BUILD_ROOT/%patchdir cp -a patches/* $RPM_BUILD_ROOT/%patchdir echo %{name}-%{version}-%{release} > $RPM_BUILD_ROOT/%patchdir/VERSION %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root) %patchdir %post # $1 = 0 - delete # $1 = 1 - new install # $1 = 2 - upgrade # Order: pre/post 2, preun/postun 1 if [ "$1" = "1" ] ; then # first install ln -s /home /UBC-O echo +::: >> /etc/group echo +:::::: >> /etc/passwd patch /etc/pam.d/common-session %patchdir/common-session.patch patch /etc/ldap.conf %patchdir/ldap.conf.patch patch /etc/nsswitch.conf %patchdir/nsswitch.conf.patch patch /etc/security/pam_unix2.conf %patchdir/pam_unix2.conf.patch patch /etc/ssh/sshd_config %patchdir/sshd_config.patch patch /etc/sudoers %patchdir/sudoers.patch patch /etc/nscd.conf %patchdir/nscd.conf.patch mkdir -p /var/lib/suseRegister touch /var/lib/suseRegister/neverRegisterOnBoot fi %preun if [ "$1" = "0" ] ; then # delete unlink /UBC-O cat /etc/group | sed -e '/+:::/d' > /etc/group cat /etc/passwd | sed -e '/+::::::/d' > /etc/passwd patch -R /etc/pam.d/common-session %patchdir/common-session.patch patch -R /etc/nsswitch.conf %patchdir/nsswitch.conf.patch patch -R /etc/security/pam_unix2.conf %patchdir/pam_unix2.conf.patch patch -R /etc/ssh/sshd_config %patchdir/sshd_config.patch patch -R /etc/nscd.conf %patchdir/nscd.conf.patch fi %changelog * Fri Feb 22 2008 Steve Cundy <steve.cundy@ubc.ca> - Inital build using OBS * Fri Jul 13 2007 Steve Cundy <steve.cundy@ubc.ca> - Repackaged for SLED10 SP1 - Added the neverRegisterOnBoot file * Fri Apr 20 2007 Steve Cundy <steve.cundy@ubc.ca> - fixed nss_base_passwd/user issue * Thu Feb 01 2007 Steve Cundy <steve.cundy@ubc.ca> - test ugprade * Wed Jan 31 2007 Steve Cundy <steve.cundy@ubc.ca> - modified ldap.conf to list proper nss_group_base - added nscd.conf tweaks for ldap lookups - added gcc and kernel-source "requirement" as they are common - fixed recognition of upgrade vs install * Tue Aug 29 2006 Steve Cundy <steve.cundy@ubc.ca> - modified for use with SLE10 * Tue Jul 11 2006 Steve Cundy <steve.cundy@ubc.ca> - moved ubco custom items to /opt/UBCO * Fri May 26 2006 Steve Cundy <steve.cundy@ubc.ca> - added patches instead of files (diff -u orig new) * Thu May 04 2006 Steve Cundy <steve.cundy@ubc.ca> - initial build of base NLD template for UBC Okanagan
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor