NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: MK variables and removal of old files

Khelben Blackstaff <> writes:

> This seemed the most relevant list for my question.

nope; perhaps tech-install

> Usually i disable parts of the base system that i don't need. Using
> i build a distribution and then install the new files and merge changed etc
> files. However the old files are left there.
> Before installing the new files to / i can diff the mtree files from /etc
> and from DESTDIR/etc and if there are differences, manually delete
> those files but this seems stupid/not_proper to me.
> A friend of mine uses FreeBSD and he told me that there is a "check-old" and
> "delete-old" target that does this automatically.
> As a dare from him, i changed /usr/src/Makefile to copy this functionality
> and it worked, but i am not very familiar with the NetBSD build system,
> so maybe there already is a way to do this.
> So, i want to ask what is the proper way to delete old files after compiling
> the base system with custom MK variables ?

I would use etcmanage from pkgsrc/sysutils/etcmanage to deal with this.

Are you concerned about binaries in e.g. /usr/bin, or just things in /etc?

Attachment: pgpLxBIBiePQ0.pgp
Description: PGP signature

Home | Main Index | Thread Index | Old Index