Subject: Re: pkg/21228: work directories are getting included in backups
To: Jeremy C. Reed <>
From: Rich Neswold <>
List: netbsd-bugs
Date: 04/18/2003 22:42:00
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Wasn't it 18-Apr-2003, at 10:03AM, when Jeremy C. Reed said:
> On Fri, 18 Apr 2003 wrote:
> > +.if defined(CHFLAGS)
> > +	${_PKG_SILENT}${_PKG_DEBUG}${CHFLAGS} nodump ${WRKDIR}
> > +.endif
> Just to let you know, pkgsrc is being used more and more on non-NetBSD
> platforms which may not offer filesystems that support the "no dump"
> attribute. I use it on many Linux systems (without any chflags)

That's why I conditionally did it. If you don't define CHFLAGS, you get the
current behavior.

> Linux uses chattr(1) for setting filesystem attributes. And it uses "+d"
> to set this.

Well, MKDIR is defined as "mkdir -p" for many platforms (in defs.*.mk).
Maybe CHFLAGS can be "chflags nodump" on *BSD and "chattr +d" for Linux
targets. Although I think I'd change the symbol name if we go down that

 Rich Neswold
  icq: 174908475
 efax: 1.240.536.7092

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.0.7 (FreeBSD)