Changeset 102

Show
Ignore:
Timestamp:
10/31/07 14:38:32 (1 year ago)
Author:
jjarrett
Message:

added STIG modification scripts into clip rpm

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RHEL5/RPM/clip.spec

    r85 r102  
    4848/usr/share/clip/wrappers/scripts 
    4949/usr/share/clip/man/man8/xar.8 
     50/usr/share/clip/scripts/stig-fix 
    5051/etc/security/pam_env.conf 
    5152/%{_lib}/security/pam_tally3.so 
  • trunk/RHEL5/rpmify

    r76 r102  
    99cp /usr/src/redhat/RPMS/$ARCH/clip-$VERSION-$RELEASE.$ARCH.rpm RPM/ 
    1010cp /usr/src/redhat/SRPMS/clip-$VERSION-$RELEASE.src.rpm RPM/ 
     11 
     12sha1sum RPM/*.rpm > SHA1_$ARCH.txt 
     13 
  • trunk/RHEL5/scripts/Makefile

    r54 r102  
    1111        test -d $(DESTDIR)$(SHAREDIR)/wrappers || install -m 755 -d \ 
    1212                $(DESTDIR)$(SHAREDIR)/wrappers 
    13         #install -m 644 *.conf $(DESTDIR)$(SYSCONFDIR) 
     13        test -d $(DESTDIR)$(SHAREDIR)/scripts/ || install -m 755 -d \ 
     14                $(DESTDIR)$(SHAREDIR)/scripts 
     15        test -d $(DESTDIR)$(SHAREDIR)/scripts/stig-fix || install -m 755 -d \ 
     16                $(DESTDIR)$(SHAREDIR)/scripts/stig-fix  
     17        test -d $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat1 || install -m 755 -d \ 
     18                $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat1 
     19        test -d $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat2 || install -m 755 -d \ 
     20                $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat2 
     21        test -d $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat3 || install -m 755 -d \ 
     22                $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat3 
     23#               test -d *.conf || install -m 644 *.conf \  
     24#$(DESTDIR)$(SYSCONFDIR) 
    1425 
    1526        # Install scripts and data directories 
     
    2233        install -m 644 wrappers/wrapper.c $(DESTDIR)$(SHAREDIR)/wrappers 
    2334 
     35        # Install scripts 
     36        install -m 700 stig-fix/run-fixes.sh $(DESTDIR)$(SHAREDIR)/scripts/stig-fix  
     37        install -m 700 stig-fix/cat1/*.sh $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat1  
     38        install -m 700 stig-fix/cat2/*.sh $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat2  
     39        install -m 700 stig-fix/cat3/*.sh $(DESTDIR)$(SHAREDIR)/scripts/stig-fix/cat3  
     40 
    2441        # Patch installer  
    2542        perl -pe s!--BASE--!$(PREFIX)/share! < $(INSTALLER).in > \ 
  • trunk/RHEL5/scripts/installer.in

    r64 r102  
    5555} 
    5656 
     57# Install a collection of scripts to make CLIP  
     58# STIG-compliant.  
     59# Since these scripts are not likely to be found on the system, 
     60# cp and not Copy() is used to install these files.  
     61InstallStig() { 
     62        for d in $(ls -R STIGFIXDIR); do 
     63                cp -r $d /usr/share/clip/scripts/stig-fix &2>/dev/null 
     64        done 
     65} 
     66 
     67# Run the scripts installed in InstallStig. 
     68# This function assumes that a file named run-fixes.sh has been installed 
     69# in STIGFIXDIR, and is executable by root; this happens in InstallStig. 
     70# run-fixes.sh is used to launch the individual scripts. 
     71RunStigFixes() { 
     72        if [ -x $STIGFIXDIR/run-fixes.sh ]; then 
     73                echo "Running STIG fix script." 
     74                $STIGFIXDIR/run-fixes.sh 
     75        else 
     76                echo "Could not locate STIG fix script." 
     77        fi 
     78} 
     79 
     80 
    5781cat <<EOM 
    5882Certifiable Linux Integration Platform Installation Log 
     
    6791InstallPam 
    6892InstallMan 
     93InstallStig 
     94RunStigFixes