From owner-freebsd-ports@FreeBSD.ORG Wed Apr 26 22:16:31 2006 Return-Path: X-Original-To: ports@freebsd.org 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 3332216A409 for ; Wed, 26 Apr 2006 22:16:31 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id C34A243D46 for ; Wed, 26 Apr 2006 22:16:29 +0000 (GMT) (envelope-from swhetzel@gmail.com) Received: by xproxy.gmail.com with SMTP id s9so1063564wxc for ; Wed, 26 Apr 2006 15:16:29 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Ix4I45ANg/bxtRvLVETqQcwwNskIEeHF7QH8rxEYMSfztXIodEZ0f77842ByLna4VPKsLmwkk1m9x44pgSr2glwbDX6jC/dmoydVebgiK8JnVR5SAVP26d3cgZJzJhSFWx3F+9J1nsD6IhzLMwfoaNmHIKKG8Z+HTnlpUpbsgaI= Received: by 10.70.104.6 with SMTP id b6mr1526048wxc; Wed, 26 Apr 2006 15:16:29 -0700 (PDT) Received: by 10.70.27.4 with HTTP; Wed, 26 Apr 2006 15:16:29 -0700 (PDT) Message-ID: <790a9fff0604261516o2757af09vdb8adfbf2343114a@mail.gmail.com> Date: Wed, 26 Apr 2006 17:16:29 -0500 From: "Scot Hetzel" To: "Doug Barton" In-Reply-To: <444FE8F6.2040903@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20060426203500.GB1433@merlin.emma.line.org> <444FE8F6.2040903@FreeBSD.org> Cc: ports@freebsd.org, portmgr@freebsd.org, ports-bugs@freebsd.org Subject: Re: HEADS UP: Triage of rcNG related problem reports/USE_RC_SUBR X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Apr 2006 22:16:31 -0000 On 4/26/06, Doug Barton wrote: > Matthias Andree wrote: > > > It is a bit unfortunate that there is no accompanying security branch > > for ports, because then this inconsistency WRT etc/rc.d/* scripts > > wouldn't have bitten users. > > This is a period of change, which unfortunately necessitates some small > amount of pain in the short term. Sorry to hear that this aspect of the > change is causing you difficulty. > Could we have bsd.port.mk add the following (or similar code) to pkg-plist for the ports that are built on systems that install the startup script without a .sh extension? install-rc-script: : .if (${OSVERSION} >=3D 700007 || (${OSVERSION} < 700000 && ${OSVERSION} >=3D 600101)) =09@for i in ${USE_RC_SUBR}; do \ =09=09${INSTALL_SCRIPT} ${WRKDIR}/$${i} ${PREFIX}/etc/rc.d/$${i%.sh}; \ + ${ECHO_CMD} "@exec set OSVERSION=3D\`/sbin/sysctl -n kern.osreldate\` ; if ! (${OSVERSION} >=3D 700007 || (${OSVERSION} < 700000 && ${OSVERSION} >=3D 600101)) ; then echo \"This package requires a minimum of %%OSVERSION%%. You need to compile %%PKGNAME%% on your system from /usr/ports/%%PKGORIGIN%%\" ; false ; endif" >> ${TMPPLIST} =09=09${ECHO_CMD} "etc/rc.d/$${i%.sh}" >> ${TMPPLIST}; \ =09done .else : Scot -- DISCLAIMER: No electrons were mamed while sending this message. Only slightly bruised.