Changeset View
Changeset View
Standalone View
Standalone View
Mk/bsd.linux-rpm.mk
#-*- tab-width: 4; -*- | #-*- tab-width: 4; -*- | ||||
# ex:ts=4 | # ex:ts=4 | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# Variables: | # Variables: | ||||
# LINUX_DIST - Will be used to set some dist-specific presets. | # LINUX_DIST - Will be used to set some dist-specific presets. | ||||
# Valid values: fedora | # Valid values: fedora | ||||
# LINUX_DIST_VER - Use depends upon the dist-specific presets. | # LINUX_DIST_VER - Use depends upon the dist-specific presets. | ||||
# Valid values for "fedora": all version numbers | # Valid values for "fedora": all version numbers | ||||
# e.g. 10 for fedora 10 | # e.g. 10 for fedora 10 | ||||
# Valid values for "centos": all version numbers | # Valid values for "centos": all version numbers | ||||
# e.g. 6.6 for centos 6.6 | # e.g. 6.7 for centos 6.7 | ||||
# This is used to set MASTER_SITE_{,SRC_}SUBDIR | # This is used to set MASTER_SITE_{,SRC_}SUBDIR | ||||
# if it isn't already set. | # if it isn't already set. | ||||
# MASTER_SITE_SRC_SUBDIR | # MASTER_SITE_SRC_SUBDIR | ||||
# - The subdir for the src RPM's. | # - The subdir for the src RPM's. | ||||
# DISTFILES - For simple cases this will be set automatically | # DISTFILES - For simple cases this will be set automatically | ||||
# based upon the DISTNAME. | # based upon the DISTNAME. | ||||
# SRC_DISTFILES - Variable which contains the corresponding src RPM's. | # SRC_DISTFILES - Variable which contains the corresponding src RPM's. | ||||
# If there's no corresponding src RPM, it has to be | # If there's no corresponding src RPM, it has to be | ||||
Show All 35 Lines | |||||
Linux_RPM_Post_Include= bsd.linux-rpm.mk | Linux_RPM_Post_Include= bsd.linux-rpm.mk | ||||
.if ${USE_LINUX} == "f10" | .if ${USE_LINUX} == "f10" | ||||
USE_LINUX?= "f10" | USE_LINUX?= "f10" | ||||
LINUX_DIST= fedora | LINUX_DIST= fedora | ||||
LINUX_DIST_VER= 10 | LINUX_DIST_VER= 10 | ||||
.else # default to CentOS | .else # default to CentOS | ||||
LINUX_DIST= centos | LINUX_DIST= centos | ||||
LINUX_DIST_VER= 6.6 | LINUX_DIST_VER= 6.7 | ||||
.endif | .endif | ||||
.if defined(LINUX_DIST) | .if defined(LINUX_DIST) | ||||
DIST_SUBDIR?= rpm/${LINUX_RPM_ARCH}/${LINUX_DIST}/${LINUX_DIST_VER} | DIST_SUBDIR?= rpm/${LINUX_RPM_ARCH}/${LINUX_DIST}/${LINUX_DIST_VER} | ||||
. if ${LINUX_DIST} == "fedora" | . if ${LINUX_DIST} == "fedora" | ||||
# we do not want to define MASTER_SITES and MASTER_SITE_* if they are already defined | # we do not want to define MASTER_SITES and MASTER_SITE_* if they are already defined | ||||
# ex.: MASTER_SITES=file:///... | # ex.: MASTER_SITES=file:///... | ||||
▲ Show 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | |||||
. endif | . endif | ||||
. if defined(AUTOMATIC_PLIST) | . if defined(AUTOMATIC_PLIST) | ||||
. if ${USE_LINUX} == "f10" | . if ${USE_LINUX} == "f10" | ||||
_LINUX_BASE_SUFFIX= f10 | _LINUX_BASE_SUFFIX= f10 | ||||
. elif ${USE_LINUX} == "c6" || ${USE_LINUX} == "yes" | . elif ${USE_LINUX} == "c6" || ${USE_LINUX} == "yes" | ||||
_LINUX_BASE_SUFFIX= c6 | _LINUX_BASE_SUFFIX= c6 | ||||
. elif ${USE_LINUX} == "c6_64 | . elif ${USE_LINUX} == "c6_64" | ||||
_LINUX_BASE_SUFFIX= c6 | _LINUX_BASE_SUFFIX= c6 | ||||
. else | . else | ||||
# other linux_base ports do not provide a pkg-plist file | # other linux_base ports do not provide a pkg-plist file | ||||
IGNORE= uses AUTOMATIC_PLIST with an unsupported USE_LINUX, \"${USE_LINUX}\". Supported values are \"yes\", \"f10\", \"c6\", and \"c6_64\" | IGNORE= uses AUTOMATIC_PLIST with an unsupported USE_LINUX, \"${USE_LINUX}\". Supported values are \"yes\", \"f10\", \"c6\", and \"c6_64\" | ||||
. endif | . endif | ||||
PLIST?= ${WRKDIR}/.PLIST.linux-rpm | PLIST?= ${WRKDIR}/.PLIST.linux-rpm | ||||
Show All 23 Lines |