Changeset 103
- 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
| r100 |
r103 |
|
| 1 | 1 | #!/bin/sh |
|---|
| 2 | 2 | |
|---|
| 3 | | # "Make all the Binary RPMs..." |
|---|
| 4 | | echo "Make all the RPMs..." |
|---|
| 5 | | make |
|---|
| 6 | | cd selinux-usr |
|---|
| 7 | | make install |
|---|
| 8 | | cd .. |
|---|
| | 3 | echo -n "Build CLIP Download Release Files[yes/no]? " |
|---|
| | 4 | read -e BUILD |
|---|
| 9 | 5 | |
|---|
| 10 | | # "Make CLIP RPM..." |
|---|
| 11 | | echo "Make CLIP RPM..." |
|---|
| 12 | | ./rpmify |
|---|
| | 6 | if [ "$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 |
|---|
| 13 | 22 | |
|---|
| 14 | | # "Generate the Complete collect archive..." |
|---|
| 15 | | echo "Generate the Complete collect archive..." |
|---|
| 16 | | ./archivify.sh |
|---|
| | 23 | export DESTDIR="$DIR" |
|---|
| 17 | 24 | |
|---|
| 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..." |
|---|
| | 58 | else |
|---|
| | 59 | if [ -z "$1"] ; then |
|---|
| | 60 | echo "usage: $0 <build directory>" |
|---|
| | 61 | fi |
|---|
| | 62 | fi |
|---|
| | 63 | |
|---|
| | 64 | |
|---|
| r100 |
r103 |
|
| 29 | 29 | |
|---|
| 30 | 30 | # change this to "y" to build a src rpm |
|---|
| 31 | | BUILDSRC = n |
|---|
| | 31 | BUILDSRC = y |
|---|
| 32 | 32 | |
|---|
| 33 | 33 | # This is the mode that /etc/selinux/config will be set to |
|---|
| r101 |
r103 |
|
| 154 | 154 | genfscon fat / gen_context(system_u:object_r:dosfs_t,s0) |
|---|
| 155 | 155 | genfscon 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 | | # |
|---|
| 161 | 156 | #genfscon ntfs-3g / gen_context(system_u:object_r:dosfs_t,s0) |
|---|
| 162 | | # |
|---|
| 163 | | |
|---|
| 164 | 157 | genfscon ntfs / gen_context(system_u:object_r:dosfs_t,s0) |
|---|
| 165 | 158 | genfscon vfat / gen_context(system_u:object_r:dosfs_t,s0) |
|---|
Download in other formats:
* Generating other formats may take time.