Changeset 103

Show
Ignore:
Timestamp:
11/01/07 08:06:34 (1 year ago)
Author:
jjarrett
Message:

Updated master build script to allow user to specify Build Path

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RHEL4/buildDownloads.sh

    r100 r103  
    11#!/bin/sh 
    22 
    3 # "Make all the Binary RPMs..." 
    4 echo "Make all the RPMs..." 
    5 make 
    6 cd selinux-usr 
    7 make install 
    8 cd .. 
     3echo -n "Build CLIP Download Release Files[yes/no]? " 
     4read -e BUILD 
    95 
    10 # "Make CLIP RPM..." 
    11 echo "Make CLIP RPM..." 
    12 ./rpmify 
     6if [ "$BUILD" = "yes" ] ; then 
     7        DIR="" 
     8        if [ -z "$1"] ; then 
     9                DIR=$(pwd)/tmp 
     10        else 
     11                DIR="$1" 
     12        fi 
     13        echo "Building Downloads..." 
     14        echo "Define Build Path defaults to '$DIR'."  
     15        echo -n "To Accept default <ENTER> or type in full path: " 
     16        read -e PATH 
     17        if [ -z "$PATH" ] ; then 
     18                DIR="$DIR" 
     19        else 
     20                DIR="$PATH" 
     21        fi 
    1322 
    14 # "Generate the Complete collect archive..." 
    15 echo "Generate the Complete collect archive..." 
    16 ./archivify.sh 
     23        export DESTDIR="$DIR" 
    1724 
    18 echo "Completed..." 
     25        # "Make all the Binary RPMs..." 
     26        echo "" 
     27        echo "Make all the RPMs..." 
     28        echo "" 
     29        echo "Make CLIP the RPM..." 
     30        echo "" 
     31        make 
     32        cd selinux-usr 
     33        echo "" 
     34        echo "Make Upstream the RPMs..." 
     35        echo "" 
     36        make install 
     37        cd ../refpolicy/build 
     38        echo "" 
     39        echo "Make CLIP Policy the RPM..." 
     40        echo "" 
     41        make 
     42        cd ../.. 
     43 
     44 
     45        # "Make CLIP RPM..." 
     46        echo "" 
     47        echo "Make CLIP RPM..." 
     48        echo "" 
     49        ./rpmify 
     50 
     51        # "Generate the Complete collect archive..." 
     52        echo "" 
     53        echo "Generate the Complete collect archive..." 
     54        echo "" 
     55        ./archivify.sh 
     56 
     57        echo "Completed..." 
     58else 
     59        if [ -z "$1"] ; then 
     60                echo "usage: $0 <build directory>" 
     61        fi 
     62fi 
     63 
     64 
  • trunk/RHEL4/refpolicy/build/Makefile

    r100 r103  
    2929 
    3030# change this to "y" to build a src rpm 
    31 BUILDSRC = n 
     31BUILDSRC = y 
    3232 
    3333# This is the mode that /etc/selinux/config will be set to 
  • trunk/RHEL4/refpolicy/src/selinux-policy-clip/policy/modules/kernel/filesystem.te

    r101 r103  
    154154genfscon fat / gen_context(system_u:object_r:dosfs_t,s0) 
    155155genfscon msdos / gen_context(system_u:object_r:dosfs_t,s0) 
    156  
    157 #***************************************************************** 
    158 # checkpolicy-1.32-1.clip.x86_64.rpm does not support this 'name' 
    159 #***************************************************************** 
    160 # 
    161156#genfscon ntfs-3g / gen_context(system_u:object_r:dosfs_t,s0) 
    162 # 
    163  
    164157genfscon ntfs / gen_context(system_u:object_r:dosfs_t,s0) 
    165158genfscon vfat / gen_context(system_u:object_r:dosfs_t,s0)