VirtualBox

Changeset 57775 in vbox


Ignore:
Timestamp:
Sep 16, 2015 9:25:17 AM (9 years ago)
Author:
vboxsync
Message:

Installer/linux: detect Oracle Linux, CentOS and RedHat in rpm/rules.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/rpm/rules

    r56848 r57775  
    7575 # look for fedora
    7676  rpmrel  := $(shell cat /etc/fedora-release | sed -e 's/^Fedora  *release  *\([1-9][0-9]*\) .*/fedora\1/')
     77 endif
     78 ifeq ($(rpmrel),)
     79 # look for OL
     80  rpmrel  := $(shell cat /etc/enterprise-release | sed -ne 's/^Enterprise Linux[a-zA-Z ]*\([1-9][0-9]*\).*/ol\1/p')
     81 endif
     82 ifeq ($(rpmrel),)
     83 # look for CentOS
     84  rpmrel  := $(shell cat /etc/redhat-release | sed -ne 's/^CentOS[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p')
     85 endif
     86 ifeq ($(rpmrel),)
     87 # look for Red Hat
     88  rpmrel  := $(shell cat /etc/redhat-release | sed -ne 's/^Red Hat[a-zA-Z ]*\([1-9][0-9]*\).*/centos\1/p')
    7789 endif
    7890 ifeq ($(rpmrel),)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette