pfr Should the if
statement be placed at the end or the start of the file? does it matter?
Shouldn't matter because, unlike the shell, make
doesn't try to expand that variable when it encounters it. It waits until its read the whole file(s).
What you should do is move the rest of that pkgsrc-glop inside the 1st .if
block.
Most of those don't need to be set on NetBSD because they're the default.
And how does one determine this, RVP?
Very simply: Just cd
into any one of the pkgsrc package dirs., say editors/ed
, and there do: make show-var VARNAME=LOCALBASE
. Do this for each of the variables after commenting it out. If they're the same, just remove it.
I think everything from VARBASE
to PKGMANDIR
can go.
pfr but I can't delete my root user. Is there any way I can reset my root user back to default?
That's easy enough:
# cd /
# mv /root /root.save
# tar -xvpf /tmp/etc.tar.xz ./root
# chmod --reference=/root.save /root
For a regular users, you can just empty their home dirs. out, then,
a) copy the files in /etc/skel
to ~user/.
, and,
b) change ownership.
This'll leave the UID and GID unchanged.