From owner-freebsd-ports Mon Jun 26 8: 6: 4 2000 Delivered-To: freebsd-ports@freebsd.org Received: from rfhs8012.fh-regensburg.de (rfhs8012.fh-regensburg.de [194.95.108.29]) by hub.freebsd.org (Postfix) with ESMTP id 09F1837B97C for ; Mon, 26 Jun 2000 08:05:58 -0700 (PDT) (envelope-from feyrer@rfhs8012.fh-regensburg.de) Received: from rfhpc8320.fh-regensburg.de (feyrer@rfhpc8320 [194.95.108.32]) by rfhs8012.fh-regensburg.de (8.10.1/8.10.1) with ESMTP id e5QF5G304380; Mon, 26 Jun 2000 17:05:20 +0200 (MET DST) Received: (from feyrer@localhost) by rfhpc8320.fh-regensburg.de (8.9.1/8.8.3) id RAA19545; Mon, 26 Jun 2000 17:07:50 +0200 (MET DST) Date: Mon, 26 Jun 2000 17:07:49 +0200 (MET DST) From: Hubert Feyrer X-Sender: feyrer@rfhpc8320.fh-regensburg.de Reply-To: hubert.feyrer@informatik.fh-regensburg.de To: "Sergey A. Borodin" Cc: ports@freebsd.org, www@netbsd.com Subject: Re: Please, Help me with prefix (@cwd keyword in PLIST file)!!! In-Reply-To: <200006261441.SAA106414@poplar.soft.sun.mcst.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 26 Jun 2000, Sergey A. Borodin wrote: > Binary and all necessary files are lain in /export/BOR/psh/src directory > (including BUILD_INFO, COMMENT, DESC, PLIST files and psh directory - the application > itself) and after running pkg_create(1) command I get psh.tgz package. > I need that using 'pkg_add psh.tgz' command application will be installed to /opt/psh > directory by default. Instead of it application is installed to /export/BOR/psh/src/psh > directory by default. How can I point to when running pkg_create(1) command that > application will be installed (using pkg_add(1) command without -p flag) to /opt/psh > directory by default? > Can anybody help me? Sure: If you use pkgsrc, just put the following into your /etc/mk.conf: LOCALBASE=/opt/psh then make clean && make package. If you want to call pkg_create manually, check out the PKG_ARGS variable in pkgsrc/mk/bsd.pkg.mk, you want to use the -p switch to pkg_create. > BTW, can anybody point me a literature about package creation on NetBSD System? pkgsrc/Packages.txt (ftp://ftp.netbsd.org/pub/NetBSD/packages/pkgsrc/Packages.txt) > @cwd /export/BOR/psh/src Um, shouldn't that be /opt/bor? Also, there's something weird about @cwd: you'll have to duplicate (only) the first @cwd line in the PLIST for things to actually work for some reason I forgot. BTW, there's also a mailing list for discussing pkg related things on NetBSD: tech-pkg@netbsd.org. Please send your follow-ups there - thanks! - Hubert -- NetBSD - because Unix isn't just #include , i386, ILP32, ELF, ...! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message