Subject: Re: pkg/21228: work directories are getting included in backups
To: Jeremy C. Reed <reed@reedmedia.net>
From: Rich Neswold <rneswold@earthlink.net>
List: netbsd-bugs
Date: 04/18/2003 22:42:00
--BXVAT5kNtrzKuDFl
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 rneswold@earthlink.net wrote:
>=20
> > +.if defined(CHFLAGS)
> > +	${_PKG_SILENT}${_PKG_DEBUG}${CHFLAGS} nodump ${WRKDIR}
> > +.endif
>=20
> 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
path...

--=20
 Rich Neswold
=20
  icq: 174908475
  web: home.earthlink.net/~rneswold
 efax: 1.240.536.7092

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (FreeBSD)

iD8DBQE+oMWIZmE+i9FKxdwRAlHpAJ9irvkLUdDdNYdIKS+lwTPssieXJQCfYQu9
cNafGcaZI9mzKOFUZdQS+VM=
=r5yU
-----END PGP SIGNATURE-----

--BXVAT5kNtrzKuDFl--