From owner-freebsd-ports@FreeBSD.ORG Mon Apr 24 04:23:23 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 9A3E116A40D for ; Mon, 24 Apr 2006 04:23:23 +0000 (UTC) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (svm.csie.ntu.edu.tw [140.112.90.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id A16AD43D55 for ; Mon, 24 Apr 2006 04:23:22 +0000 (GMT) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: from svm.csie.ntu.edu.tw (localhost [127.0.0.1]) by svm.csie.ntu.edu.tw (8.13.4/8.13.4) with ESMTP id k3O4NIZn060030 for ; Mon, 24 Apr 2006 12:23:18 +0800 (CST) (envelope-from rafan@svm.csie.ntu.edu.tw) Received: (from rafan@localhost) by svm.csie.ntu.edu.tw (8.13.4/8.13.4/Submit) id k3O4NIes060029 for freebsd-ports@freebsd.org; Mon, 24 Apr 2006 12:23:18 +0800 (CST) (envelope-from rafan) Date: Mon, 24 Apr 2006 12:23:18 +0800 From: Rong-En Fan To: freebsd-ports@freebsd.org Message-ID: <20060424042318.GA59923@svm.csie.ntu.edu.tw> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.11 Subject: category for local ports 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, 24 Apr 2006 04:23:23 -0000 Hi, I'm creating a new category 'local' to store my local ports. I added VALID_CATEGORIES=local to /etc/make.conf, and a Makefile in ports/local/, which lists all subdirs. The only problem is that I need to add "SUBDIR += local" to ports/Makefile. I don't want to do this after each update. So, I added the following to /etc/make.conf: .if ${.CURDIR:M/usr/ports} SUBDIR += local .endif But it does not work. make index does not include my local ports in local/. Is it possible to do this in make.conf with some magic? If not, then I think I have to patch ports/Makefile after each update :( Thanks, Rong-En Fan