|
From: Serge L. <sma...@us...> - 2006-01-15 11:29:35
|
Update of /cvsroot/devil-linux/build/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18064 Added Files: pam_ldap pam_mysql pam-pgsql pam_radius Log Message: - added pam modules --- NEW FILE: pam_ldap --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/pam_ldap,v $ # $Revision: 1.2 $ # $Date: 2006/01/15 11:29:07 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: pam-ldap # Required-Start: $basebuildtools Linux-PAM openldap # Required-Stop: # Default-Start: 1 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_OPENLDAPLIB" = "y" ]; then ./configure --mandir=/usr/share/man || exit 1 make $PMAKE || exit 1 strip_debug # install it in local system, because other programs could need it make install || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: pam_mysql --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/pam_mysql,v $ # $Revision: 1.2 $ # $Date: 2006/01/15 11:29:07 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: pam-mysql # Required-Start: $basebuildtools Linux-PAM mysql # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_MYSQL_CLIENT" = "y" ]; then ./configure --with-pam-mods-dir=/lib/security/ make $PMAKE || exit 1 strip_debug # install it in local system, because other programs could need it make install || exit 1 fi ;; install ) if [ "$CONFIG_MYSQL_CLIENT" = "y" ]; then install -d -m 755 $CDDIR/usr/share/doc/pam-mysql install -c -m 644 NEWS README $CDDIR/usr/share/doc/pam-mysql/ fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: pam_radius --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/pam_radius,v $ # $Revision: 1.2 $ # $Date: 2006/01/15 11:29:07 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: pam-radius # Required-Start: $basebuildtools Linux-PAM freeradius # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_FREERADIUS" = "y" ]; then make $PMAKE || exit 1 strip_debug # install it in local system, because other programs could need it cp -p pam_radius_auth.so /lib/security || exit 1 fi ;; install ) if [ "$CONFIG_FREERADIUS" = "y" ]; then install -d -m 755 $CDDIR/usr/share/doc/pam-radius install -c -m 644 USAGE README $CDDIR/usr/share/doc/pam-radius/ # cp -p pam_radius_auth.conf $ETCDIR/etc/raddb/ || exit 1 # chown root.root $ETCDIR/etc/raddb/pam_radius_auth.conf # chmod 600 $ETCDIR/etc/raddb/pam_radius_auth.conf fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac --- NEW FILE: pam-pgsql --- #!/bin/bash # $Source: /cvsroot/devil-linux/build/scripts/pam-pgsql,v $ # $Revision: 1.2 $ # $Date: 2006/01/15 11:29:07 $ # # http://www.devil-linux.org # you need the next line, otherwise script won't be executed !!! # DL-build-system v3 ### BEGIN INIT INFO # Provides: pam-pgsql # Required-Start: $basebuildtools Linux-PAM postgresql # Required-Stop: # Default-Start: 1 2 # Default-Stop: # Description: description ### END INIT INFO # get the directoryname of the script MYDIR=${0%/*} # source functions and config source $MYDIR/settings case $1 in build ) if [ "$CONFIG_POSTGRESQL_CLIENT" = "y" ]; then replace_str pam_get_service.c '#include <security/pam_modules.h>' '#include <security/pam_modules.h>\n#include <stdio.h>' ./configure make $PMAKE || exit 1 strip_debug # install it in local system, because other programs could need it # make install DESTDIR=/lib/security/ || exit 1 install -c -m 755 -o root pam_pgsql.so /lib/security/ || exit 1 fi ;; install ) if [ "$CONFIG_POSTGRESQL_CLIENT" = "y" ]; then install -d -m 755 $CDDIR/usr/share/doc/libpam-pgsql || exit 1 install -c -m 644 README $CDDIR/usr/share/doc/libpam-pgsql || exit 1 fi ;; * ) echo "ERROR ($0)" echo "please add parameter so I know what to do" exit 1 ;; esac |