From owner-freebsd-ports@FreeBSD.ORG Mon Aug 13 06:34:56 2007 Return-Path: Delivered-To: ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 478C216A469 for ; Mon, 13 Aug 2007 06:34:56 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.190]) by mx1.freebsd.org (Postfix) with ESMTP id BA91F13C49D for ; Mon, 13 Aug 2007 06:34:55 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: by fk-out-0910.google.com with SMTP id b27so1596598fka for ; Sun, 12 Aug 2007 23:34:54 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=drxje5zJBburK0z86AyPbRv5A6neKs4paDOMHYdbzwKddQDSUaGzrl8HsGwBdLJn2rBcUnu+RjI1voI9CvSVYBJ7N3QaP3FoJd8qEVXWvthdp4FeOUzFtDWezM7tNpeYOBCkwgkU6i5pLZGv4usQiSepC0X7VVIkUNusk/sg6Po= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=CbUzQhZLdWucBeJVjeI7x2KgpX48+UWq+ciTzqW+T9jVQEObUhJTDcmEqB9A0VEHahyU7cy7CJDlrTrP3+L2TAacpEECWP6EweTvH96d4K/Wypxev+4M7Ag7IzdP+v0e5yCGbNwQGaXE/eSQq9SIxmHPq7onSwY+yqwHwM+npUM= Received: by 10.86.70.8 with SMTP id s8mr4108251fga.1186986894334; Sun, 12 Aug 2007 23:34:54 -0700 (PDT) Received: by 10.86.59.6 with HTTP; Sun, 12 Aug 2007 23:34:54 -0700 (PDT) Message-ID: <790a9fff0708122334i3b77aea3m28cfe5e1d7953582@mail.gmail.com> Date: Mon, 13 Aug 2007 01:34:54 -0500 From: "Scot Hetzel" To: "Alexey Rubtsov" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <790a9fff0708090519x7ad0795eme128b4c265e9a7a1@mail.gmail.com> Cc: ports@freebsd.org, girgen@freebsd.org, perky@freebsd.org Subject: Re: packaging mod_python X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Aug 2007 06:34:56 -0000 On 8/12/07, Alexey Rubtsov wrote: > >> Decide: > >> Add PKGNAMESUFFX into Makefile of port like this for example: > >> > >> .if (${APACHE_PORT} == "www/apache22") > >> PKGNAMESUFFIX= -ap22 > >> .elif (${APACHE_PORT} == "www/apache20") > >> PKGNAMESUFFIX= -ap20 > >> .endif > >> > >> This problem exists in mod_jk2 and mod_perl. > >> Possibly somethere else... > >> > > > > The best place to put this would be in Mk/bsd.apache.mk, it would then > > get applied to all the mod_* ports. Instead of using PKGNAMESUFFIX, > > it should be changed to PKGNAMEPREFIX, as we currently have a > > preference for this (i.e py-24-*, py25-*, qt3-*, qt4-*, p5-*, > > linux-*). > > > > Scot > > Ok. What can i do for include this changes into bsd.apache.mk? > To make the change just make a copy of the original bsd.apache.mk: cd /usr/ports/Mk/ ; cp -rp bsd.apache.mk bsd.apache.mk-orig Then edit bsd.apache.mk: vi bsd.apache.mk Look for the second BUILD_DEPENDS+= ... and add (before the BUILD_DEPENDS): PKGNAMEPREFIX?= ap${APACHE_VERSION}- save the file, create a patch file (diff -u bsd.apache.mk-orig bsd.apache.mk > apache.diff), and then submit a PR with your reason for the change and the the patch file (send-pr or via the freebsd site). Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.