|
Revision 107, 1.2 kB
(checked in by jjarrett, 1 year ago)
|
Updated README and logic for naming of master archive.
|
- Property svn:executable set to
*
|
| Line | |
|---|
| 1 |
#!/bin/sh |
|---|
| 2 |
|
|---|
| 3 |
VERSION="1.0" |
|---|
| 4 |
RELEASE="5" |
|---|
| 5 |
OS="RHEL4.5" |
|---|
| 6 |
ARCH=$(uname -i) |
|---|
| 7 |
|
|---|
| 8 |
# "Check environment..." |
|---|
| 9 |
echo "Check environment..." |
|---|
| 10 |
test -d $DESTDIR/clip-files || install -m 755 -d $DESTDIR/clip-files |
|---|
| 11 |
test -d $DESTDIR/clip-files/refpolicy || install -m 755 -d $DESTDIR/clip-files/refpolicy |
|---|
| 12 |
test -d $DESTDIR/clip-files/selinux-usr || install -m 755 -d $DESTDIR/clip-files/selinux-usr |
|---|
| 13 |
test -d $DESTDIR/clip-files/usr || install -m 755 -d $DESTDIR/clip-files/usr |
|---|
| 14 |
|
|---|
| 15 |
# "Copy files..." |
|---|
| 16 |
echo "Copy files..." |
|---|
| 17 |
cp refpolicy/selinux-policy*.rpm $DESTDIR/clip-files/refpolicy/. |
|---|
| 18 |
cp $DESTDIR/RPMS/$ARCH/*.rpm $DESTDIR/clip-files/selinux-usr/. |
|---|
| 19 |
cp -r scripts/stig-fix/. $DESTDIR/clip-files/. |
|---|
| 20 |
|
|---|
| 21 |
# "Make scripts executable" |
|---|
| 22 |
echo "Make scripts executable" |
|---|
| 23 |
chmod 744 $DESTDIR/clip-files/*.sh |
|---|
| 24 |
chmod 744 $DESTDIR/clip-files/cat1/*.sh |
|---|
| 25 |
chmod 744 $DESTDIR/clip-files/cat2/*.sh |
|---|
| 26 |
chmod 744 $DESTDIR/clip-files/cat3/*.sh |
|---|
| 27 |
|
|---|
| 28 |
# "Archive Project Files" |
|---|
| 29 |
echo "Archive Project Files" |
|---|
| 30 |
cd $DESTDIR/clip-files |
|---|
| 31 |
rm -rf *.txt |
|---|
| 32 |
tar --exclude="*.gz" -czvf clip-files-$VERSION-$RELEASE.$OS.$ARCH.tar.gz . |
|---|
| 33 |
|
|---|
| 34 |
# "Calculate Checksum values..." |
|---|
| 35 |
echo "Calculate Checksum values..." |
|---|
| 36 |
sha1sum -b clip-files-$VERSION-$RELEASE.$OS.$ARCH.tar.gz refpolicy/*.rpm selinux-usr/*.rpm usr/*.rpm > SHA1s_$ARCH_$OS.txt |
|---|
| 37 |
|
|---|
| 38 |
echo "Completed..." |
|---|
| 39 |
|
|---|
| 40 |
|
|---|