From owner-freebsd-ports Mon Jun 26 8:49:17 2000 Delivered-To: freebsd-ports@freebsd.org Received: from mcst.ru (ithil.mcst.ru [192.124.182.204]) by hub.freebsd.org (Postfix) with SMTP id 5BC4A37BC72; Mon, 26 Jun 2000 08:49:06 -0700 (PDT) (envelope-from bor@soft.sun.mcst.ru) Received: by mcst.ru (SMI-8.6/SMI-SVR4) id TAA12279; Mon, 26 Jun 2000 19:50:55 +0400 Received: from tretyak-le1.sun.mcst.ru(192.124.182.194) by ithil via smap (V2.1) id xma012276; Mon, 26 Jun 00 19:50:53 +0400 Received: by tretyak.sun.mcst.ru (SMI-8.6/SMI-SVR4) id TAA23019; Mon, 26 Jun 2000 19:48:08 +0400 Received: from soft-gw.sun.mcst.ru(192.168.3.3) by tretyak via smap (V2.1) id xma023015; Mon, 26 Jun 00 19:47:44 +0400 Received: from poplar.soft.sun.mcst.ru by soft.sun.mcst.ru (5.x/SMI-SVR4) id AA03479; Mon, 26 Jun 2000 19:47:42 +0400 Received: (from bor@localhost) by poplar.soft.sun.mcst.ru (8.9.3+Sun/8.9.1) id TAA106602; Mon, 26 Jun 2000 19:47:39 +0400 (MSD) Date: Mon, 26 Jun 2000 19:47:39 +0400 (MSD) From: "Sergey A. Borodin" Message-Id: <200006261547.TAA106602@poplar.soft.sun.mcst.ru> To: ports@freebsd.org, jkh@freebsd.org, www@netbsd.com, jtk@netbsd.org, rh@netbsd.org, jwise@netbsd.org, wulf@netbsd.org Subject: Please, Help me with prefix (@cwd keyword in PLIST file)!!! X-Sun-Charset: US-ASCII Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, all! I've found "FreeBSD Porter's Handbook" very helpful! Thanks! But I have some problem with prefix (@cwd keyword in PLIST file). Main information: I'm running under NetBSD 1.4 on SparcStation 10: net-bsd# uname -a NetBSD net-bsd 1.4 NetBSD 1.4 (GENERIC_SCSI3) #0: Sun May 9 04:05:20 MEST 1999 pk@flambard:/usr/src/sys/arch/sparc/compile/GENERIC_SCSI3 sparc net-bsd# I now that the pkg_create command first appeared in FreeBSD (as mentioned in man pages for pkg_create(1) command). I have some pre-compiled application and want to create package using pkg_create(1) command: pkg_create -B BUILD_INFO -c COMMENT -d DESC -f PLIST -v psh (you can see contents of BUILD_INFO, COMMENT, DESC and PLIST files below) but I have a problem with @cwd keyword in PLIST file! The main problem is: 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? BTW, can anybody point me a literature about package creation on NetBSD System? AND more, I don't use pkgsrc system!!! PS. I'm very sorry for my bad English! It's not my native language. Thank you very much in advance! SERGEY BORODIN BUILD_INFO file: ~~~~~~~~~~~~~~~~ OPSYS= NetBSD OS_VERSION= 1.4 MACHINE_ARCH= sparc MACHINE_GNU_ARCH= sparc CPPFLAGS= CFLAGS= -DNETBSD,-I/opt/tcltk/include,-fPIC LDFLAGS= -Bshareable,-ltcl76 -lm,-L/opt/tcltk/lib LICENSE= CONFIGURE_ARGS= --disable-shared --host=sparc--netbsd --prefix=/export/BOR/psh/opt CC= cc-egcs-1.1.1 PLIST file: ~~~~~~~~~~~ @name psh @cwd /export/BOR/psh/src @pkgdep tcl* @owner root @group wheel @mode 0755 psh/bin/psh psh/lib/data psh/lib/socket @mode 0644 psh/README psh/tcllib/data.proto psh/tcllib/dhcp.proto psh/tcllib/ether.proto psh/tcllib/file.proto psh/tcllib/hopopt.proto psh/tcllib/icmp.proto psh/tcllib/ioctl_array.tcl psh/tcllib/ip.proto psh/tcllib/ipv6-frag.proto psh/tcllib/ipv6-icmp.proto psh/tcllib/ipv6-opts.proto psh/tcllib/ipv6-route.proto psh/tcllib/ipv6.proto psh/tcllib/pbuild.tk psh/tcllib/pinfo.tcl psh/tcllib/pshrc psh/tcllib/socket.proto psh/tcllib/streams.proto psh/tcllib/syscall.proto psh/tcllib/tcp.proto psh/tcllib/tli.proto psh/tcllib/pbuild/pbuild.ui.tcl psh/tcllib/pbuild/pbuild_1.ui.tcl psh/tcllib/pbuild/pbuild_2.ui.tcl psh/tcllib/pbuild/pbuild_3.ui.tcl psh/tcllib/pbuild/pbuild_4.ui.tcl @dirrm psh/tcllib/pbuild @dirrm psh/tcllib @dirrm psh/lib @dirrm psh/bin @dirrm psh @ignore COMMENT @ignore DESC @ignore PLIST @ignore BUILD_INFO COMMENT file: ~~~~~~~~~~~~~ Packet Shell DESC file: ~~~~~~~~~~ This package contains the binary release of Packet Shell and utility scripts. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message