| 1 |
To build RHEL 5.2 CLIP rpms use the following steps: |
|---|
| 2 |
|
|---|
| 3 |
== RPM Build Steps == |
|---|
| 4 |
|
|---|
| 5 |
* The following steps assume a standard RHEL5.2 installation |
|---|
| 6 |
|
|---|
| 7 |
* Use yum to install the following packages and their dependencies: |
|---|
| 8 |
|
|---|
| 9 |
- audit-libs-devel |
|---|
| 10 |
- autoconf |
|---|
| 11 |
- automake |
|---|
| 12 |
- bison |
|---|
| 13 |
- byacc |
|---|
| 14 |
- docbook-style-xsl |
|---|
| 15 |
- flex |
|---|
| 16 |
- gcc |
|---|
| 17 |
- libcap-devel |
|---|
| 18 |
- libtool |
|---|
| 19 |
- linuxdoc-tools |
|---|
| 20 |
- pam-devel |
|---|
| 21 |
- python-devel |
|---|
| 22 |
- rpm-build |
|---|
| 23 |
- subversion |
|---|
| 24 |
- swig |
|---|
| 25 |
- w3m |
|---|
| 26 |
|
|---|
| 27 |
To have yum install the packages from the RHEL5.2 installation cd, perform |
|---|
| 28 |
the follow before running the yum install command: |
|---|
| 29 |
mkdir /mnt/rhel5.2 |
|---|
| 30 |
mount /dev/cdrom /mnt/rhel5.2 |
|---|
| 31 |
rpm --import /mnt/rhel5.2/RPM-GPG-KEY-redhat-release |
|---|
| 32 |
vi /etc/yum.repos.d/rhel5.2.repo |
|---|
| 33 |
[RHEL5.2 CD] |
|---|
| 34 |
baseurl=file:///mnt/rhel5.2/Server |
|---|
| 35 |
enabled=1 |
|---|
| 36 |
|
|---|
| 37 |
* Checkout clip |
|---|
| 38 |
|
|---|
| 39 |
svn co http://oss.tresys.com/repos/clip/trunk/RHEL5.2 clip |
|---|
| 40 |
|
|---|
| 41 |
* Update the selinux toolchain |
|---|
| 42 |
|
|---|
| 43 |
Note: In the follow commands, replace $ARCH with your system architecture (either i386 or x86_64) |
|---|
| 44 |
|
|---|
| 45 |
cd clip/selinux-usr |
|---|
| 46 |
|
|---|
| 47 |
make libsepol-rpm |
|---|
| 48 |
rpm -Uvh --force rpm/RPMS/$ARCH/{libsepol,libsepol-devel}-1.16.14-1.$ARCH.rpm |
|---|
| 49 |
|
|---|
| 50 |
make libselinux-rpm |
|---|
| 51 |
rpm -Uvh --force rpm/RPMS/$ARCH/{libselinux,libselinux-devel,libselinux-python}-1.34.15-1.$ARCH.rpm |
|---|
| 52 |
|
|---|
| 53 |
make libsemanage-rpm |
|---|
| 54 |
rpm -Uvh --force rpm/RPMS/$ARCH/{libsemanage,libsemanage-devel}-1.10.9-1.$ARCH.rpm |
|---|
| 55 |
|
|---|
| 56 |
make policycoreutils-rpm |
|---|
| 57 |
rpm -Uvh --force rpm/RPMS/$ARCH/{policycoreutils,policycoreutils-newrole,policycoreutils-gui}-1.34.16-1.$ARCH.rpm |
|---|
| 58 |
|
|---|
| 59 |
make checkpolicy-rpm |
|---|
| 60 |
rpm -Uvh --force rpm/RPMS/$ARCH/checkpolicy-1.34.7-1.$ARCH.rpm |
|---|
| 61 |
|
|---|
| 62 |
* Build clip and clip selinux policy |
|---|
| 63 |
|
|---|
| 64 |
cd ../build |
|---|
| 65 |
|
|---|
| 66 |
make clip-rpm selinux-policy-clip-rpm |
|---|
| 67 |
|
|---|
| 68 |
* You will need to install the following rpms on the production system (See the INSTALL file for details on installing the production system): |
|---|
| 69 |
|
|---|
| 70 |
clip/RPM/clip-2.0-1.$ARCH.rpm |
|---|
| 71 |
clip/RPM/selinux-policy-clip-2.0-3.noarch.rpm |
|---|
| 72 |
clip/RPM/libsepol-1.16.14-1.$ARCH.rpm |
|---|
| 73 |
clip/RPM/libselinux-1.34.15-1.$ARCH.rpm |
|---|
| 74 |
clip/RPM/libselinux-python-1.34.15-1.$ARCH.rpm |
|---|
| 75 |
clip/RPM/libsemanage-1.10.9-1.$ARCH.rpm |
|---|
| 76 |
clip/RPM/policycoreutils-1.34.16-1.$ARCH.rpm |
|---|
| 77 |
clip/RPM/policycoreutils-newrole-1.34.16-1.$ARCH.rpm |
|---|
| 78 |
clip/RPM/checkpolicy-1.34.7-1.$ARCH.rpm |
|---|