From owner-freebsd-ports Tue Jun 12 8:41:20 2001 Delivered-To: freebsd-ports@freebsd.org Received: from ringworld.nanolink.com (ringworld.nanolink.com [195.24.48.13]) by hub.freebsd.org (Postfix) with SMTP id CDFF637B401 for ; Tue, 12 Jun 2001 08:41:14 -0700 (PDT) (envelope-from roam@orbitel.bg) Received: (qmail 52791 invoked by uid 1000); 12 Jun 2001 15:39:54 -0000 Date: Tue, 12 Jun 2001 18:39:54 +0300 From: Peter Pentchev To: Jeff Palmer Cc: ports@freebsd.org Subject: Re: General questions Message-ID: <20010612183954.A52701@ringworld.oblivion.bg> Mail-Followup-To: Jeff Palmer , ports@freebsd.org References: <5.1.0.14.0.20010612032452.00ac4600@jeff.isni.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.0.14.0.20010612032452.00ac4600@jeff.isni.net>; from scorpio@drkshdw.org on Tue, Jun 12, 2001 at 03:35:48AM -0600 Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Tue, Jun 12, 2001 at 03:35:48AM -0600, Jeff Palmer wrote: > I'm creating a new port. An addition to qmail. > > I've created and maintained other ports, but this is my first "major" one. > Unfortunately, the porters-handbook is a little lacking (I might send a > -doc PR after I get these answers.) > > Anyway, on to the questions. > > #1) I don't want to hard code /var/qmail in the do-install: > However, my port doesn't seem to understand the > ${QMAIL-INSTALL-PREFIX} > as other ports do. (e.g. mail/qmail-tls) > How would I tell the Makefile to use the ${QMAIL-INSTALL-PREFIX} like other > ports? I believe the variable is actually called QMAIL_PORT_PREFIX; what exactly are you doing, and how does it fail? Can you post your Makefile, along with some logs, to show exactly how is it failing? > (I think the answer to number 1 will get me through number 2) Quite possibly :) > #2) After the port is installed, how do I create the pkg-plist? nothing > goes into > ${PREFIX} (/usr/local/) most files will actually be going into > /var/qmail/bin/ > > would I create the pkg-plist with: > ${QMAIL-INSTALL-PREFIX}/bin/file1 > ${QMAIL-INSTALL-PREFIX}/bin/file2 etc? After you've done something like PREFIX?= ${QMAIL_PORT_PREFIX}, then no, you don't need the QMAIL_PORT_PREFIX in the pkg-plist, too; everything there is relative to ${PREFIX}, so you just need bin/file1, bin/file2, etc. > I have a plist creation script that I created from the porters > handbook, however, > it creates an empty file now, because nothing goes into /usr/local If you set ${PREFIX} properly, everything should work. G'luck, Peter -- Hey, out there - is it *you* reading me, or is it someone else? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message