Date: Thu, 23 Mar 2006 00:33:58 +0300 From: Boris Samorodov <bsam@ipt.ru> To: freebsd-emulation@FreeBSD.org Subject: [patch] for bsd.linux-rpm.mk (SRC_GPL) Message-ID: <27349241@ho.ipt.ru>
next in thread | raw e-mail | index | archive | help
--=-=-= Hello! It's my second try to introduce a new variable to deal with linux sources. It was AUTO_LINUX_SRC last time, it's SRC_GPL now. Maybe someone suggest another name. Not all linux sources used at FreeBSD ports released under GPL or so. For example, devel/linux-allegro: ----- Allegro is gift-ware. It was created by a number of people working in cooperation, and is given to you freely as a gift. You may use, modify, redistribute, and generally hack it about in any way you like, and you do not have to give us anything in return. However, if you like this product you are encouraged to thank us by making a return gift to the Allegro community. This could be by writing an add-on package, providing a useful bug report, making an improvement to the library, or perhaps just releasing the sources of your program so that other people can learn from them. If you redistribute parts of this code or make a game using it, it would be nice if you mentioned Allegro somewhere in the credits, but you are not required to do this. We trust you not to abuse our generosity. ----- I propose attached patch. The default value is "yes". Comments are welcome. WBR -- Boris B. Samorodov, Research Engineer InPharmTech Co, http://www.ipt.ru Telephone & Internet Service Provider --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=gpl.patch Content-Description: SRC_GPL patch for bsd.linux-rpm.mk --- bsd.linux-rpm.mk.orig Thu Mar 23 00:02:38 2006 +++ bsd.linux-rpm.mk Wed Mar 22 23:39:00 2006 @@ -26,6 +26,8 @@ # contain libraries. # - BRANDELF_FILES: A list of files to brand as a linux executable in # case BRANDELF_DIRS can't be used. +# - SRC_GPL: Sources should be disributed with binaries. +# Default "yes". .if !defined(_POSTMKINCLUDED) && !defined(Linux_RPM_Pre_Include) @@ -81,8 +83,9 @@ DISTFILES?= ${DISTNAME}${EXTRACT_SUFX} SRC_DISTFILES?= ${DISTNAME}${SRC_SUFX} +SRC_GPL?= yes -. if defined(PACKAGE_BUILDING) +. if defined(PACKAGE_BUILDING) && ${SRC_GPL} == "yes" DISTFILES+= ${SRC_DISTFILES} MASTER_SITE_SUBDIR+= ${MASTER_SITE_SRC_SUBDIR} ALWAYS_KEEP_DISTFILES= yes --=-=-=--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?27349241>