Changeset 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 | |||||
# e.g. 6.6 for centos 6.6 | |||||
# 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 16 Lines | |||||
SRC_SUFX?= .src.rpm | SRC_SUFX?= .src.rpm | ||||
USE_LINUX?= yes | USE_LINUX?= yes | ||||
USE_LINUX_PREFIX= yes | USE_LINUX_PREFIX= yes | ||||
NO_WRKSUBDIR= yes | NO_WRKSUBDIR= yes | ||||
NO_BUILD= yes | NO_BUILD= yes | ||||
. if ${ARCH} == "amd64" || ${ARCH} == "i386" | |||||
. if ${USE_LINUX} == "c6" || ${USE_LINUX} == "yes" # default to CentOS | |||||
# Do not build CentOS 6 ports if overridden by f10 | |||||
. if defined(OVERRIDE_LINUX_BASE_PORT) && ${OVERRIDE_LINUX_NONBASE_PORTS} == "f10" | |||||
IGNORE= This port requires CentOS ${LINUX_DIST_VER}. Please remove OVERRIDE_LINUX_NONBASE_PORTS=f10 in /etc/make.conf. | |||||
. endif | .endif | ||||
LINUX_RPM_ARCH?= i686 # ?= because of nasty c5 qt ports | |||||
. elif ${USE_LINUX} == "f10" | |||||
# Do not build Fedora 10 ports unless specifically overridden. | |||||
#. if ! defined(OVERRIDE_LINUX_NONBASE_PORTS) || ${OVERRIDE_LINUX_NONBASE_PORTS} != "f10" | |||||
#IGNORE= This port requires Fedora 10, yet Fedora 10 is heavily outdated and contains many vulnerable ports. If you really need it, add OVERRIDE_LINUX_NONBASE_PORTS=f10 in /etc/make.conf. | |||||
#. endif | |||||
LINUX_RPM_ARCH?= i386 # the linuxulator does not yet support amd64 code | |||||
. else | |||||
LINUX_RPM_ARCH?= ${ARCH} | |||||
. endif | |||||
. elif ${ARCH} == "powerpc" | |||||
LINUX_RPM_ARCH?= ppc | |||||
. endif | |||||
netchild: Why is all the above removed, is it handled in another place (which one)? I can not find a… | |||||
Not Done Inline ActionsIn my local copy of this patch I added the IGNORE part again. netchild: In my local copy of this patch I added the IGNORE part again. | |||||
.endif | |||||
.if defined(_POSTMKINCLUDED) && !defined(Linux_RPM_Post_Include) | .if defined(_POSTMKINCLUDED) && !defined(Linux_RPM_Post_Include) | ||||
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 | ||||
Show All 18 Lines | |||||
. else | . else | ||||
MASTER_SITE_SUBDIR?= ${LINUX_DIST_VER}/${LINUX_RPM_ARCH}/os/Fedora/RPMS \ | MASTER_SITE_SUBDIR?= ${LINUX_DIST_VER}/${LINUX_RPM_ARCH}/os/Fedora/RPMS \ | ||||
updates/${LINUX_DIST_VER}/${LINUX_RPM_ARCH} | updates/${LINUX_DIST_VER}/${LINUX_RPM_ARCH} | ||||
MASTER_SITE_SRC_SUBDIR?= ${LINUX_DIST_VER}/SRPMS \ | MASTER_SITE_SRC_SUBDIR?= ${LINUX_DIST_VER}/SRPMS \ | ||||
updates/${LINUX_DIST_VER}/SRPMS | updates/${LINUX_DIST_VER}/SRPMS | ||||
. endif | . endif | ||||
. endif | . endif | ||||
. elif ${LINUX_DIST} == "centos" | . elif ${LINUX_DIST} == "centos" | ||||
MASTER_SITES_SUBDIR= /centos/6/os/i386/Packages/ | MASTER_SITES?= ${MASTER_SITE_CENTOS_LINUX} | ||||
MASTER_SITES_SUBDIR?= /centos/${LINUX_DIST_VER}/os/${LINUX_REPO_ARCH}/Packages/ | |||||
MASTER_SITES_SRC_SUBDIR?= /${LINUX_DIST_VER}/os/Source/SPackages/ | |||||
. if ${LINUX_DIST_VER} == "5" #needed for Qt... | . if ${LINUX_DIST_VER} == "5" #needed for Qt... | ||||
LINUX_RPM_ARCH= i386 | LINUX_RPM_ARCH= i386 | ||||
MASTER_SITES_SUBDIR= /centos/5/os/i386/Packages/ | MASTER_SITES_SUBDIR= /centos/5/os/i386/Packages/ | ||||
. endif | . endif | ||||
. ifndef MASTER_SITES | . ifndef MASTER_SITES | ||||
MASTER_SITES= ${MASTER_SITE_CENTOS_LINUX} | MASTER_SITES= ${MASTER_SITE_CENTOS_LINUX} | ||||
. if ${LINUX_DIST_VER} == "6.6" | MASTER_SITES_SUBDIR= /centos/${LINUX_DIST_VER}/os/${LINUX_REPO_ARCH}/Packages/ | ||||
. if ! defined(PACKAGE_BUILDING) | . if ${LINUX_DIST_VER} != "6.6" | ||||
MASTER_SITES= http://mirror.centos.org/centos/6/os/i386/Packages/ | MASTER_SITES= http://vault.centos.org/${LINUX_DIST_VER}/os/${LINUX_REPO_ARCH}/Packages/ | ||||
MASTER_SITES_SUBDIR= /centos/6/os/i386/Packages/ | |||||
. else | |||||
MASTER_SITES?= http://vault.centos.org/%SUBDIR%/ | |||||
MASTER_SITES_SUBDIR= /${LINUX_DIST_VER}/os/Source/SPackages/ | |||||
. endif | . endif | ||||
. else | |||||
MASTER_SITES= http://vault.centos.org/${LINUX_DIST_VER}/os/i386/Packages/ | |||||
. endif | . endif | ||||
. if defined(PACKAGE_BUILDING) | |||||
MASTER_SITES+= http://vault.centos.org/%SUBDIR%/ | |||||
MASTER_SITES_SRC_SUBDIR= /${LINUX_DIST_VER}/os/Source/SPackages/ | |||||
. endif | . endif | ||||
eadlerUnsubmitted Done Inline ActionsWhy is this hidden under PACKAGE_BUILDING? eadler: Why is this hidden under `PACKAGE_BUILDING`? | |||||
. endif | . endif | ||||
Not Done Inline Actionsthis was already here. We only fetch the source files if we are building a package. Not entirely sure why. allanjude: this was already here. We only fetch the source files if we are building a package. Not… | |||||
Not Done Inline Actionsbecause GPL allanjude: because GPL | |||||
Not Done Inline ActionsWe don't need the srpms to install a port (end-user), but we are required to provide the (L)GPLed source on CDs and our mirrors, as such we fetch it when we do a pacakge build on the FreeBSD cluster -> automatically included in the upload to the mirrors. netchild: We don't need the srpms to install a port (end-user), but we are required to provide the… | |||||
. endif | . endif | ||||
#.if ${USE_LINUX:L} == "yes" #redundant with bsd.port.mk fu | #.if ${USE_LINUX:L} == "yes" #redundant with bsd.port.mk fu | ||||
#USE_LINUX= c6 | #USE_LINUX= c6 | ||||
#.endif | #.endif | ||||
PKGNAMEPREFIX?= linux-${USE_LINUX}- | PKGNAMEPREFIX?= linux-${USE_LINUX}- | ||||
Show All 33 Lines | |||||
linux-rpm-clean-portdocs: | linux-rpm-clean-portdocs: | ||||
. for x in ${PORTDOCS} | . for x in ${PORTDOCS} | ||||
@${RM} -f ${WRKDIR}/${DOCSDIR_REL}/${x} | @${RM} -f ${WRKDIR}/${DOCSDIR_REL}/${x} | ||||
. endfor | . endfor | ||||
@${RMDIR} ${WRKDIR}/${DOCSDIR_REL} | @${RMDIR} ${WRKDIR}/${DOCSDIR_REL} | ||||
. endif | . endif | ||||
. endif | . endif | ||||
PLIST= ${MASTERDIR}/pkg-plist.${LINUX_RPM_ARCH} | |||||
. if defined(AUTOMATIC_PLIST) | . if defined(AUTOMATIC_PLIST) | ||||
. if ${USE_LINUX} == "f10" || ${USE_LINUX} == "yes" | . if ${USE_LINUX} == "f10" || ${USE_LINUX} == "yes" | ||||
Not Done Inline ActionsThe default is now C6, this is broken (not by me), but is never encountered because it is inside if AUTOMATIC_PLIST allanjude: The default is now C6, this is broken (not by me), but is never encountered because it is… | |||||
_LINUX_BASE_SUFFIX= f10 | _LINUX_BASE_SUFFIX= f10 | ||||
xmjAuthorUnsubmitted Not Done Inline ActionsIs this actually used anywhere? xmj: Is this actually used anywhere? | |||||
allanjudeUnsubmitted Not Done Inline Actionsno idea, I didn't change that line allanjude: no idea, I didn't change that line | |||||
eadlerUnsubmitted Not Done Inline ActionsIf this isn't used, please remove it in this cleanup. It may be worthwhile just to grep the tree for its use. If it is used outside of this file, it must be renamed. eadler: If this isn't used, please remove it in this cleanup. It may be worthwhile just to grep the… | |||||
Not Done Inline ActionsUSE_LINUX=f10 is used for all of the linux-f10-* ports allanjude: USE_LINUX=f10 is used for all of the linux-f10-* ports
| |||||
. elif ${USE_LINUX} == "c6" | . elif ${USE_LINUX} == "c6" | ||||
USE_LINUX= c6 | USE_LINUX= c6 | ||||
Not Done Inline ActionsNo need for setting USE_LINUX to c6 if it's tested one line above. xmj: No need for setting USE_LINUX to c6 if it's tested one line above. | |||||
_LINUX_BASE_SUFFIX= c6 | _LINUX_BASE_SUFFIX= c6 | ||||
. elif ${USE_LINUX} == "c6_64 | |||||
_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\" and \"c6\" | IGNORE= uses AUTOMATIC_PLIST with an unsupported USE_LINUX, \"${USE_LINUX}\". Supported values are \"yes\", \"f10\", \"c6\", and \"c6_64\" | ||||
eadlerUnsubmitted Not Done Inline ActionsIs there a variable containing the list of allowed values rather than replicating them into the IGNORE? eadler: Is there a variable containing the list of allowed values rather than replicating them into the… | |||||
. endif | . endif | ||||
PLIST?= ${WRKDIR}/.PLIST.linux-rpm | PLIST?= ${WRKDIR}/.PLIST.linux-rpm | ||||
pre-install: linux-rpm-generate-plist | pre-install: linux-rpm-generate-plist | ||||
. if !target(linux-rpm-generate-plist) | . if !target(linux-rpm-generate-plist) | ||||
linux-rpm-generate-plist: | linux-rpm-generate-plist: | ||||
Show All 19 Lines |
Why is all the above removed, is it handled in another place (which one)? I can not find a place where the IGNORE part is done after this patch.