Installing 'config' file with port
Jerry
gesbbb at yahoo.com
Mon Mar 2 06:02:35 PST 2009
I know that is is probably obviously; however, I still can not get it
to work. This is the first time I have tried to do this, so bear with
me.
I am creating a port that will install a 'config' file in the
"/usr/local/etc" directory. Reading through the 'Porters Handbook", I
cam across this example.
post-install:
@if [ ! -f ${PREFIX}/etc/orbit.conf ]; then \
${CP} -p ${PREFIX}/etc/orbit.conf.sample ${PREFIX}/etc/orbit.conf ; \
fi
First, when I write the 'config' file, do I place it under the ports
'files' directory and give it a ".in".
Second, what do I have to do to get the file installed in the config
directory?
The program does not come with a config file by default. If that should
change, how would I go about using it instead of the one I created?
--
Jerry
gesbbb at yahoo.com
Those who can, do; those who can't, write.
Those who can't write work for the Bell Labs Record.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-ports/attachments/20090302/24c56037/signature.pgp
More information about the freebsd-ports
mailing list