From owner-freebsd-current@FreeBSD.ORG Thu Jul 29 14:07:28 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0019616A4CE for ; Thu, 29 Jul 2004 14:07:27 +0000 (GMT) Received: from fillmore.dyndns.org (port-212-202-50-15.dynamic.qsc.de [212.202.50.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id A444943D2F for ; Thu, 29 Jul 2004 14:07:27 +0000 (GMT) (envelope-from eikemeier@fillmore-labs.com) Received: from dhcp-11.local ([172.16.0.11] helo=dhcp-15.local) by fillmore.dyndns.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.41 (FreeBSD)) id 1BqBZ5-000P9q-SL; Thu, 29 Jul 2004 16:07:27 +0200 Date: Thu, 29 Jul 2004 16:08:37 +0200 Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v482) To: Alex Kapranoff From: Oliver Eikemeier In-Reply-To: <20040729131949.GA39464@capella.park.rambler.ru> Message-Id: Content-Transfer-Encoding: 7bit User-Agent: KMail/1.5.9 cc: current@freebsd.org Subject: Re: RFC: Alternate patch to have true new-style rc.d ports scripts(without touching localpkg) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jul 2004 14:07:28 -0000 Alex Kapranoff wrote: > * Oliver Eikemeier [July 29 2004, 12:39]: >> I'm not sure if we should filter out *all* scripts with extensions. >> There might be a startup.app port we like to add, perhaps just a list >> of >> values like `.old', `.sample' e.t.c. should be filtered out. OTOH this >> is easily changeable, should the need arise. > > And startup.app port can easily be started with startup_app script, > This is a non-issue, I think. Jup, I'm thinking in terms of complexity and POLA here, not functionality. >> which will install `apache' or `apache.sh' depending on OSVERSION. A >> variable RC_SUFX is set that could be used in pkg-message or other >> places when necessary. > > The need for two versions of startup scripts for each port is highly > undesirable. There should be some shims for 4.x systems, I suppose, > for them to be able to execute extensionless rc.d scripts in simple > lexicographic order (and missing all the rcorder benefits). No, every port just has one version of a startup script, it is just *installed* under a different name, depending on OSVERSION. The borderline is not 4.x/5.x, it is before/after the patch (which enables execution of extensionless rc.d scripts). The supporting code in bsd.port.mk could install shims that enables newer 5.x packages to be used on older systems, but I would prefer not to have them. >> Sourcing port scripts is not possible with this patch, which is a good >> thing IMHO. Also some documentation needs to added to rc(8) before this >> patch can go in. > > I like the patch and would like it to go into the tree instead of > Mike Makonnen's solution. Sourcing 3rd party (ports) scripts into the > shell > which performs global system startup procedures worries me. Thanks. Mike's patch sources scripts only into localpkg, so there is an additional layer, yet they can influence each other (by erroneously setting common variables). I can not see what sourcing ports scripts should be good for, though. -Oliver