From owner-freebsd-ports@FreeBSD.ORG Mon Feb 7 16:52:09 2005 Return-Path: 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 2893116A4CE for ; Mon, 7 Feb 2005 16:52:09 +0000 (GMT) Received: from ns.tagnet.ru (ns.tagnet.ru [80.64.16.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id B654943D41 for ; Mon, 7 Feb 2005 16:52:08 +0000 (GMT) (envelope-from boris@ntmk.ru) Received: from p-242.secure.tagnet.ru ([80.64.16.242]) by ns.tagnet.ru with esmtp (Exim 4.44 #0) id 1CyC7L-000AEq-6A for ; Mon, 07 Feb 2005 21:52:07 +0500 Message-ID: <42079CBD.6090703@ntmk.ru> Date: Mon, 07 Feb 2005 21:52:13 +0500 From: Boris Kovalenko User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7) Gecko/20040616 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <42075175.20603@ntmk.ru> <42078CC1.6080709@NetBSD.org> In-Reply-To: <42078CC1.6080709@NetBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: We need new feature for pkg_create? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Feb 2005 16:52:09 -0000 Johnny Lam wrote: > Boris Kovalenko wrote: > >> >> I'm net/quagga port maintainer. My port is installing some >> scripts to /etc/rc.d. I know, this is bad, but I really need rcorder >> to be applied to my scripts. > > > Could you explain what you mean by needing rcorder to by applied to > your scripts? Does that mean that you just want the scripts to be > installed into /etc/rc.d automatically by the package, regardless of > whether you do "make install" or pkg_add a binary package? Quagga is the routing software, so since 5.X I'm trying to use rcorder to properly start it (because other NETWORKING functions may depend on it). With make install we have no problems, because we always have ${PREFIX} available, but with pkg_add we haven't or I'm misunderstanding something. And with pkg_add I want to install scripts under ${PREFIX} user supplied to follow his wishes. I know about ${PKG_PREFIX} and trying to use right one. If I use hardcoded %%CWD_TRICK%% this is impossible (imho). > You can install the rc.d script somewhere under ${PREFIX} and then > write a +INSTALL script copy it into place. The +INSTALL script is > invoked with PKG_PREFIX set to the correct package prefix, so copying > ${PKG_PREFIX}/share/quagga/quagga${RC_SUFX} to /etc/rc.d/quagga will > always work correctly. There would need to be a corresponding action > in the +DEINSTALL script to remove the rc.d script. Hmm... still misunderstand You.. May You give a quick example? > > FWIW, the above is what is done in NetBSD pkgsrc. Pkgsrc has a > standard set of +INSTALL and +DEINSTALL scripts that are generated > during a "make install" that are controlled by various Makefile > variables. These scripts can create users, copy config files into > place, and create directories with special permissions, and allow us > to extend the pkg_* tools in many ways without needing to change the > existing semantics or behavior of the tools. I'm talking about make package and I don't know any variables which may help me. If I'm wrong please point me :) I want to be a guru :) And always listen to a guru > > Cheers, > > -- Johnny Lam > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > Regards, Boris