version 1.17, 2009/12/15 10:52:32
|
version 1.18, 2011/02/21 08:53:39
|
|
|
else | else |
PEGASUS_RPM_CVS_TAG:=HEAD | PEGASUS_RPM_CVS_TAG:=HEAD |
endif | endif |
|
############################################################################### |
|
## |
|
## 32 bit RedHat yield x.x like 5.5 for lsb_release -r -s whereas |
|
## 32 bit SUSE yield x like 11 |
|
## so, need to used findstring for comparing |
|
## |
|
## |
|
############################################################################### |
ifeq ($(IDISTRO),RedHatEnterpriseServer) | ifeq ($(IDISTRO),RedHatEnterpriseServer) |
DISTRO:=REDHAT | DISTRO:=REDHAT |
export PEGASUS_DISTRO_SUFFIX:= \ | export PEGASUS_DISTRO_SUFFIX:= \ |
$(if $(filter $(RELEASE),4.92 4.93 5 5.1 5.2 5.3),el5,xxx) |
$(if $(filter $(RELEASE),4.92 4.93 5 5.1 5.2 5.3),el5,$(if $(filter $(RELEASE),6 6.0),el6,xxx)) |
else | else |
ifeq ($(findstring RedHat,$(IDISTRO)),RedHat) | ifeq ($(findstring RedHat,$(IDISTRO)),RedHat) |
DISTRO:=REDHAT | DISTRO:=REDHAT |
ifeq ($(RELEASE),4) |
ifeq ($(findstring 6, $(RELEASE)),6) |
|
export PEGASUS_DISTRO_SUFFIX=rhel6 |
|
else |
|
ifeq ($(findstring 5, $(RELEASE)),5) |
|
export PEGASUS_DISTRO_SUFFIX=rhel5 |
|
else |
|
ifeq ($(findstring 4, $(RELEASE)),4) |
export PEGASUS_DISTRO_SUFFIX=rhel4 | export PEGASUS_DISTRO_SUFFIX=rhel4 |
else | else |
ifeq ($(RELEASE),3) |
ifeq ($(findstring 3, $(RELEASE)),3) |
export PEGASUS_DISTRO_SUFFIX=rhel3 | export PEGASUS_DISTRO_SUFFIX=rhel3 |
else | else |
export PEGASUS_DISTRO_SUFFIX=xxx | export PEGASUS_DISTRO_SUFFIX=xxx |
endif | endif |
endif | endif |
|
endif |
|
endif |
else | else |
ifeq ($(findstring SUSE,$(IDISTRO)),SUSE) | ifeq ($(findstring SUSE,$(IDISTRO)),SUSE) |
DISTRO:=SUSE | DISTRO:=SUSE |
|
|
ifeq ($(RELEASE),10) | ifeq ($(RELEASE),10) |
export PEGASUS_DISTRO_SUFFIX=sles10 | export PEGASUS_DISTRO_SUFFIX=sles10 |
else | else |
|
ifeq ($(RELEASE),11) |
|
export PEGASUS_DISTRO_SUFFIX=sles11 |
|
else |
export PEGASUS_DISTRO_SUFFIX=xxx | export PEGASUS_DISTRO_SUFFIX=xxx |
endif | endif |
endif | endif |
endif | endif |
endif | endif |
endif | endif |
|
endif |
| |
############################################################################### | ############################################################################### |
# | # |