Changeset 236

Show
Ignore:
Timestamp:
08/12/08 15:47:05 (3 months ago)
Author:
slawrence
Message:

Update README and INSTALL file
Update selinux toolchain makefile to copy rpms to the RPM dir and added an 'all' rule to quickly create all the rpms

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/RHEL5.2/INSTALL

    r28 r236  
    33 
    44To begin installation of Certifiable Linux Integration Platform (clip),  
    5 first obtain installation discs for Red Hat Enterprise Linux 4,  
    6 Enterprise Server, Update 4.  
     5first obtain installation discs for Red Hat Enterprise Linux 5.2.  
    76 
    87Next, obtain the kickstart file from  
    98http://oss.tresys.com/projects/clip/DownloadRelease. This file supplies  
    109Red Hat's installer, anaconda, with various install-time parameters.       
    11 Boot from Disc 1 of the RHEL4 ES installation discs, supplying the kickstart  
     10Boot from Disc 1 of the RHEL5.2 installation discs, supplying the kickstart  
    1211script as a kernel boot parameter: 
    1312 
    1413boot> linux ks=http://someserver/clip.ks 
    1514 
    16 This will initiate the installation process.  Prompts for locale information  
    17 and hard disk partitioning information will appear; choose appropriate  
    18 values for these settings. At this point, anaconda will install the operating 
    19 system and a few packages.  Once this completes, a reboot will be necessary.   
     15This will initiate the installation process.  At this point, anaconda will  
     16install the operating system and a few packages.  At the end of the  
     17installation you will be prompted for a password for the root and clipuser  
     18users. Once the installation completes, a reboot will be necessary. 
    2019 
    21 After rebooting, login to the sytem with the root password 'password'. 
     20After rebooting, login to the sytem as the clipuser and su to root to perform 
     21any post instalation tasks. 
     22 
    2223Various RPM files are required for the userspace component of the Gold  
    2324Standard platform. Download and install these RPMs from  
    24 http://oss.tresys.com/projects/clip/DownloadRelease 
    25 in the order listed below, making sure to verify each file's SHA1 checksum: 
     25http://oss.tresys.com/projects/clip/wiki/DownloadRelease 
    2626 
    27 libsepol-1.12.25-1.clip.i386.rpm 
    28 libselinux-1.30.27-1.clip.i386.rpm 
    29 libselinux-python-1.30.27-1.clip.i386.rpm 
    30 libsemanage-1.6.16-1.clip.i386.rpm 
    31 checkpolicy-1.30.10-1.clip.i386.rpm 
    32 policycoreutils-1.30.27-1.clip.i386.rpm  
    33 python-xattr-0.2-1.2.el4.rf.i386.rpm  
    34 setools-2.4-2.1.i386.rpm 
    35 selinux-policy-clip-1.0-1.noarch.rpm  
    36 clip-1.0-1.noarch.rpm 
     27libsepol-1.16.14-1 
     28libselinux-1.34.15-1 
     29libselinux-python-1.34.15-1 
     30libsemanage-1.10.9-1 
     31checkpolicy-1.34.7-1 
     32policycoreutils-1.34.16-1 
     33policycoreutils-newrole-1.34.16-1 
     34selinux-policy-clip-2.0-3 
     35clip-2.0-1 
    3736 
    38  
    39  
    40  
  • trunk/RHEL5.2/README

    r234 r236  
    11To build RHEL 5.2 CLIP rpms use the following steps: 
    2  
    32 
    43== RPM Build Steps == 
    54 
    6 * Install the following packages from the RHEL5.2 cd 
     5* The following steps assume a standard RHEL5.2 installation 
     6 
     7* Use yum to install the following packages and their dependencies: 
     8 
    79        - audit-libs-devel 
    810        - bison 
    911        - byacc 
    1012        - flex 
     13        - gcc 
    1114        - libcap-devel 
    1215        - pam-devel 
    1316        - python-devel 
     17        - rpm-build 
     18        - subversion 
    1419        - swig 
    1520 
     21        To have yum install the packages from the RHEL5.2 installation cd, perform  
     22        the follow before running the yum install command: 
     23                mkdir /mnt/rhel5.2 
     24                mount /dev/cdrom /mnt/rhel5.2 
     25                rpm --import /mnt/rhel5.2/RPM-GPG-KEY-redhat-release 
     26                vi /etc/yum.repos.d/rhel5.2.repo 
     27                        [RHEL5.2 CD] 
     28                        baseurl=file:///mnt/rhel5.2/Server 
     29                        enabled=1 
     30 
     31* Checkout clip 
     32 
     33        svn co http://oss.tresys.com/repos/clip/trunk/RHEL5.2 clip 
     34 
    1635* Update the selinux toolchain 
    17         cd RHEL5.2/selinux-usr 
    1836 
     37        ARCH=`uname -i` 
     38 
     39        cd clip/selinux-usr 
     40         
    1941        make libsepol-rpm 
    2042        rpm -Uvh --force rpm/RPMS/$ARCH/{libsepol,libsepol-devel}-1.16.14-1.$ARCH.rpm 
     
    2749 
    2850        make policycoreutils-rpm 
    29         rpm -Uvh --force rpm/RPMS/$ARCH/{policycoreutils,policycoreutils-newrole}-1.34.16-1.$ARCH.rpm 
     51        rpm -Uvh --force rpm/RPMS/$ARCH/{policycoreutils,policycoreutils-newrole,policycoreutils-gui}-1.34.16-1.$ARCH.rpm 
    3052 
    3153        make checkpolicy-rpm 
    3254        rpm -Uvh --force rpm/RPMS/$ARCH/checkpolicy-1.34.7-1.$ARCH.rpm 
    3355 
    34 * Install clip and clip selinux policy 
     56* Build clip and clip selinux policy 
    3557 
    36         cd RHEL5.2/build 
    37  
     58        cd ../build 
     59         
    3860        make clip-rpm selinux-policy-clip-rpm 
    3961 
    40 * RPMs will be located in RHEL5.2/RPM directory 
     62* Copy the following rpms needed for the production system to a cd or usb drive: 
    4163 
    42         cd RHEL5.2/RPM 
     64        clip/RPM/clip-2.0-1.$ARCH.rpm 
     65        clip/RPM/selinux-policy-clip-2.0-3.noarch.rpm 
     66        clip/RPM/libsepol-1.16.14-1.$ARCH.rpm  
     67        clip/RPM/libselinux-1.34.15-1.$ARCH.rpm 
     68        clip/RPM/libselinux-python-1.34.15-1.$ARCH.rpm 
     69        clip/RPM/libsemanage-1.10.9-1.$ARCH.rpm 
     70        clip/RPM/policycoreutils-1.34.16-1.$ARCH.rpm  
     71        clip/RPM/policycoreutils-newrole-1.34.16-1.$ARCH.rpm 
     72        clip/RPM/checkpolicy-1.34.7-1.$ARCH.rpm 
    4373 
    44         rpm -Uvh --force clip-2.0-1.$ARCH.rpm 
    45         rpm -Uvh --force selinux-policy-clip-2.0-3.noarch.rpm 
    46          
    47  
    48  
    49 == Build Dependencies == 
    50  
    51 clip-2.0-1: 
    52         audit-libs-devel 
    53         pam-devel 
    54  
    55 libsepol-1.16.14-1: 
    56         none 
    57  
    58 libselinux-1.34.15-1: 
    59         libsepol-devel > 1.16.14-1 
    60         swig 
    61         python-devel 
    62  
    63 libsemanage-1.10.9-1: 
    64         libselinux-devel > 1.34.15-1 
    65         swig 
    66         libsepol-devel > 1.16.14-1 
    67         python-devel 
    68         bison 
    69         flex 
    70  
    71 policycoreutils-1.34.16-1: 
    72         libsepol-devel > 1.16.14-1 
    73         libsemanage-devel > 1.10.9-1 
    74         libselinux-devel 1.34.15-1 
    75         libcap-devel 
    76         audit-libs-devel 
    77  
    78 checkpolicy-1.34.7: 
    79         byacc 
    80         flex 
    81         libsepol-devel > 1.16.14-1 
    82         libselinux-devel 
    83  
    84 selinux-policy-clip-2.0-3: 
    85         checkpolicy >= 1.34.7 
    86  
     74* See the INSTALL file for installing the clip production system and the rpms    
  • trunk/RHEL5.2/selinux-usr/Makefile

    r234 r236  
    1  
     1ARCH := $(shell uname -i) 
    22ROOT_DIR := $(shell pwd) 
    33INSTALL_DIR := $(ROOT_DIR)/install 
     
    88                       --define '_packager  Tresys Technology, LLS' \ 
    99                       --define '_url http://oss.tresys.com/projects/clip' 
     10OUTPUT_DIR := $(ROOT_DIR)/../RPM 
    1011 
    11 CHECKPOLICY_TAR  := $(RPM_TOPDIR)/SOURCES/checkpolicy-$(CHECKPOLICY_VERSION).tgz 
     12 
    1213CHECKPOLICY_SPEC := $(RPM_TOPDIR)/SPECS/checkpolicy.spec 
    13  
    14 LIBSELINUX_TAR  := $(RPM_TOPDIR)/SOURCES/libselinux-$(LIBSELINUX_VERSION).tgz 
    1514LIBSELINUX_SPEC := $(RPM_TOPDIR)/SPECS/libselinux.spec 
    16  
    17 LIBSEMANAGE_TAR  := $(RPM_TOPDIR)/SOURCES/libsemanage-$(LIBSEMANAGE_VERSION).tgz 
    1815LIBSEMANAGE_SPEC := $(RPM_TOPDIR)/SPECS/libsemanage.spec 
    19  
    20 LIBSEPOL_TAR  := $(RPM_TOPDIR)/SOURCES/libsepol-$(LIBSEPOL_VERSION).tgz 
    2116LIBSEPOL_SPEC := $(RPM_TOPDIR)/SPECS/libsepol.spec 
    22  
    23 POLICYCOREUTILS_TAR  := $(RPM_TOPDIR)/SOURCES/policycoreutils-$(POLICYCOREUTILS_VERSION).tgz 
    2417POLICYCOREUTILS_SPEC := $(RPM_TOPDIR)/SPECS/policycoreutils.spec 
    2518 
     19all: 
     20        make libsepol-rpm 
     21        rpm -Uvh --force rpm/RPMS/$(ARCH)/libsepol*.rpm 
     22        make libselinux-rpm 
     23        rpm -Uvh --force rpm/RPMS/$(ARCH)/libselinux*.rpm 
     24        make libsemanage-rpm 
     25        rpm -Uvh --force rpm/RPMS/$(ARCH)/libsemanage*.rpm 
     26        make policycoreutils-rpm 
     27        rpm -Uvh --force rpm/RPMS/$(ARCH)/policycoreutils*.rpm 
     28        make checkpolicy-rpm 
     29        rpm -Uvh --force rpm/RPMS/$(ARCH)/checkpolicy*.rpm 
    2630 
    2731checkpolicy-rpm:  
    2832        rpmbuild $(RPM_BUILD_FLAGS) -ba $(CHECKPOLICY_SPEC) 
     33        cp $(RPM_TOPDIR)/RPMS/$(ARCH)/checkpolicy*.rpm $(OUTPUT_DIR) 
    2934 
    3035libselinux-rpm:  
    3136        rpmbuild $(RPM_BUILD_FLAGS) -ba $(LIBSELINUX_SPEC) 
     37        cp $(RPM_TOPDIR)/RPMS/$(ARCH)/libselinux*.rpm $(OUTPUT_DIR) 
    3238 
    3339libsemanage-rpm:  
    3440        rpmbuild $(RPM_BUILD_FLAGS) -ba $(LIBSEMANAGE_SPEC) 
     41        cp $(RPM_TOPDIR)/RPMS/$(ARCH)/libsemanage*.rpm $(OUTPUT_DIR) 
    3542 
    3643libsepol-rpm: 
    3744        rpmbuild $(RPM_BUILD_FLAGS) -ba $(LIBSEPOL_SPEC) 
     45        cp $(RPM_TOPDIR)/RPMS/$(ARCH)/libsepol*.rpm $(OUTPUT_DIR) 
    3846 
    3947policycoreutils-rpm:  
    4048        rpmbuild $(RPM_BUILD_FLAGS) -ba $(POLICYCOREUTILS_SPEC) 
     49        cp $(RPM_TOPDIR)/RPMS/$(ARCH)/policycoreutils*.rpm $(OUTPUT_DIR) 
    4150 
    4251clean: 
     
    4756        mkdir $(INSTALL_DIR) 
    4857         
     58.PHONY: all checkpolicy-rpm libselinux-rpm libsemanage-rpm libsepol-rpm policycoreutils-rpm clean