From owner-freebsd-ports@FreeBSD.ORG Mon Dec 25 19:35:46 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D618016A407 for ; Mon, 25 Dec 2006 19:35:46 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.freebsd.org (Postfix) with ESMTP id 9397D13C470 for ; Mon, 25 Dec 2006 19:35:46 +0000 (UTC) (envelope-from gabor@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id CFA5F9BFD9E; Mon, 25 Dec 2006 20:35:44 +0100 (CET) X-Virus-Scanned: amavisd-new at t-hosting.hu Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id iflJTF-eeF0U; Mon, 25 Dec 2006 20:35:41 +0100 (CET) Received: from [192.168.2.186] (catv-50635cb6.catv.broadband.hu [80.99.92.182]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id A91C29BFD9B; Mon, 25 Dec 2006 20:35:41 +0100 (CET) Message-ID: <45902808.9060700@FreeBSD.org> Date: Mon, 25 Dec 2006 20:35:36 +0100 From: Gabor Kovesdan User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Aaron Dalton References: <45901A0E.1090005@daltons.ca> In-Reply-To: <45901A0E.1090005@daltons.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: FreeBSD Ports Subject: Re: NOPORTDOCS question 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, 25 Dec 2006 19:35:46 -0000 Aaron Dalton schrieb: > I've been away for a number of months and after grepping the ports tree > for a while, I have decided that there must have been some change to the > way NOPORTDOCS is handled. Could somebody point me to a port, or post > an example, of the "correct" way to now handle port docs and NOPORTDOCS > in the Makefile and plist? > > Thanks for your time. > There are two kinds of NOPORTDOCS use. 1, If you don't have a pgk-plist. Look at e.g. archivers/mtf. The files you install into DOCSDIR should be listed in PORTDOCS and it is handled automatically at install-time when the packing list is generated. 2, If you have a pkg-plist. Look at e.g. archivers/xdms. In pkg-plist you have to put %%PORTDOCS%% before the affected files and it will be replaced with "@comment " if NOPORTDOCS is set and removed if unset at install-time. I think that's all you should know about NOPORTDOCS. Oh, and the installation of those files should be done in the post-install target. And don't forget to use ${MKDIR} ${DOCSDIR}. ${MKDIR} is actually set to mkdir -p, so it will create the directories recursively if don't exist. Cheers, Gabor