Subject: Re: pkgsrc/rc.subr NOT_FOR_PLATFORM (was: Makefile targets and variables)
To: Jeremy C. Reed <>
From: grant beattie <>
List: tech-pkg
Date: 09/14/2003 16:02:24
On Tue, Sep 09, 2003 at 08:53:44AM -0700, Jeremy C. Reed wrote:

> > In pkgsrc/rc.subr/Makefile is wrotten:
> > ONLY_FOR_PLATFORM=      Linux-*-* SunOS-*-*
> >
> > Thus, on FreeBSD 4 it will not really works. I think it is a better
> > approach to use:
> > NOT_FOR_PLATFORM=	NetBSD-1.[5-9]*-* NetBSD-[2-9]*-* FreeBSD-[5-9]*-*
> That looks better. But I think this message may be hidden because the
> Subject line doesn't reflect this.

rc.subr was intended for platforms which don't have an /etc/rc.subr,
which FreeBSD 5.x does (albeit slightly imcompatible with NetBSD's).

I think FreeBSD-[1-4]*-* would be more appropriate? or am I missing

> I have Cc'd Grant who is the maintainer of the pkgtools/rc.subr package.
> This reminds me that I think this package should use PKG_SYSCONFDIR.

could you explain this further?