From owner-freebsd-ports@FreeBSD.ORG Tue Nov 14 18:11:46 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A3ED116A47E for ; Tue, 14 Nov 2006 18:11:46 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0665B43D45 for ; Tue, 14 Nov 2006 18:11:45 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by ug-out-1314.google.com with SMTP id o2so1218559uge for ; Tue, 14 Nov 2006 10:11:45 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GqdLIMGd6CbAMNR0WIS8AjBXJIaBk3tsg8bhgU3PseZ+qLUB2c3lr4WoqIB81B7UbakrUIzV7+5BbusrIEdGXoWEMj8hP3GMdKP9G1vURIXGhjRpM0rl6rOUNI/Njc4PO3ooKC0/7t8JyanXMhYc+xj/gzJS0KN9i9z9J++8SZA= Received: by 10.67.121.15 with SMTP id y15mr1273844ugm.1163527904917; Tue, 14 Nov 2006 10:11:44 -0800 (PST) Received: by 10.67.86.8 with HTTP; Tue, 14 Nov 2006 10:11:44 -0800 (PST) Message-ID: <790a9fff0611141011q4bd9ee97h9357e6d959f95abb@mail.gmail.com> Date: Tue, 14 Nov 2006 12:11:44 -0600 From: "Scot Hetzel" To: freebsd-ports@freebsd.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: Charles Sprickman Subject: Re: [nycbug-talk] creating "local" ports (fwd) 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: Tue, 14 Nov 2006 18:11:46 -0000 On 11/14/06, Dirk Meyer wrote: > Hallo Charles Sprickman, > > > I'm finding that there are a number of ports that we need to patch for > > some functionality that's unique to our business (qmail, mailfront, etc.). > > Currently we just do "make patch" and then apply our patches. This works, > > but is a bit of a pain to maintain. > > Is there a way to create a "local" category? ie: /usr/ports/LOCAL > > I like to point out a very easy way: > > $ mkdir /usr/ports/LOCAL > $ echo "PKGCATEGORY?=LOCAL" > /usr/ports/LOCAL/makefile.inc > $ echo "PKGNAMESUFFIX?=-local" >> /usr/ports/LOCAL/makefile.inc I found a way where you don't need to set PKGCATEGORY, and allows your local ports to be included in a 'make index'. /usr/ports/Makefile.local # $FreeBSD$ # SUBDIR+= local /usr/ports/local/Makefile # $FreeBSD$ # SUBDIR += emulators SUBDIR += games SUBDIR += graphics SUBDIR += net SUBDIR += security SUBDIR += textproc SUBDIR += x11 .include /usr/ports/local/emulators/Makefile # $FreeBSD$ # COMMENT = Local Emulators for other operating systems SUBDIR += linux-wine .include /usr/ports/local/emulators/Makefile.inc # $FreeBSD$ # # This file needs to be copied into every local/*/ subdirectory to set # common variables. # Used to set the origin of the local port PKGORIGIN= local/${PKGCATEGORY}/${PORTDIRNAME} # Used in the local ports tree to set dependencies on other local ports. LOCALPORTSDIR= ${PORTSDIR}/local #Uncomment if you want your local packages to have a "-local" suffix. #PGKNAMESUFFIX?= -local Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.