Date: Fri, 21 Mar 2008 02:25:50 +0300 From: Boris Samorodov <bsam@ipt.ru> To: freebsd-emulation@FreeBSD.org Subject: add LINUX_OSRELEASE to bsd.linux-rpm.mk Message-ID: <07011489@ipt.ru>
next in thread | raw e-mail | index | archive | help
--=-=-= Hello, We are approching a day when two default compat.linux.osrelease would exist (though it would be a one per branch). There should be a way to determine which linux infrastructure ports should be installed and a way to override this value (e.g. while package building). I propose the following patch to bsd.linux-rpm.mk. It introduces a new variable LINUX_OSRELEASE which is evaluated at bsd.linux-rpm.mk unless it has been already defined. What do you think? WBR -- bsam --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=blm.diff Content-Description: a patch for bsd.linux-rpm.mk --- bsd.linux-rpm.mk.orig 2008-03-21 01:30:36.000000000 +0300 +++ bsd.linux-rpm.mk 2008-03-21 01:47:44.000000000 +0300 @@ -12,6 +12,10 @@ # e.g. 3 for fedora core 3, 4 for fedora core 4 # This is used to set MASTER_SITE_{,SRC_}SUBDIR # if it isn't already set. +# LINUX_OSRELEASE - Contains the value of compat.linux.osrelease sysctl. +# Will be used to distinguish which linux +# infrastructure ports should be used. +# Valid values: 2.4.2, 2.6.16. # MASTER_SITE_SRC_SUBDIR # - The subdir for the src RPM's. # DISTFILES - For simple cases this will be set automatically @@ -52,6 +56,10 @@ LINUX_RPM_ARCH?= ${ARCH} . endif +.if !defined(LINUX_OSRELEASE) +LINUX_OSRELEASE!= ${SYSCTL} -n compat.linux.osrelease +.endif + .endif .if defined(_POSTMKINCLUDED) && !defined(Linux_RPM_Post_Include) --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?07011489>