From owner-freebsd-emulation@FreeBSD.ORG Wed Mar 22 21:34:37 2006 Return-Path: X-Original-To: freebsd-emulation@FreeBSD.org Delivered-To: freebsd-emulation@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79C0716A400 for ; Wed, 22 Mar 2006 21:34:37 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from mail.kuban.ru (mail.kuban.ru [62.183.66.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9421E43D66 for ; Wed, 22 Mar 2006 21:34:36 +0000 (GMT) (envelope-from bsam@ipt.ru) Received: from ipt.ru ([83.239.48.130]) by mail.kuban.ru (8.9.1/8.9.1) with ESMTP id k2MLYFjX015158 for ; Thu, 23 Mar 2006 00:34:25 +0300 (MSK) Received: from bsam by ipt.ru with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1FMAxq-0008A8-LR for freebsd-emulation@FreeBSD.org; Thu, 23 Mar 2006 00:33:58 +0300 To: freebsd-emulation@FreeBSD.org From: Boris Samorodov Date: Thu, 23 Mar 2006 00:33:58 +0300 Message-ID: <27349241@ho.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (berkeley-unix) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Cc: Subject: [patch] for bsd.linux-rpm.mk (SRC_GPL) X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Mar 2006 21:34:37 -0000 --=-=-= 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 --=-=-=--