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

Re: PREFIX and /etc



> I have a port that needs to put files into /etc and /sbin (in fact,
> the only files that go into /usr/local are the man pages).  Looking
> through bsd.port.mk, it appears that the only way to do this without
> causing tar errors during the 'make package' stage is to set PREFIX
> to "/" in the port Makefile.  Is this the normal way to do things,
> or am I missing something?

You cannot put anything into /sbin.  It needs to go into ${PREFIX}/sbin
You cannot set PREFIX, the user of the port sets it to whatever they
like.

For /etc, look at the documentation and various example of SYSCONFDIR
usage throughout the tree (you need to use INSTALL/DEINSTALL scripts)