Date: Wed, 8 Jan 2003 02:16:16 +0100 From: "Simon 'corecode' Schubert" <corecode@corecode.ath.cx> To: Fernan Aguero <fernan@iib.unsam.edu.ar> Cc: ports@FreeBSD.ORG Subject: Re: [newbie porter] how and where to copy extra files? Message-ID: <20030108021616.3aeb2ca6.corecode@corecode.ath.cx> In-Reply-To: <20030107203054.GD24749@iib.unsam.edu.ar> References: <20030107203054.GD24749@iib.unsam.edu.ar>
next in thread | previous in thread | raw e-mail | index | archive | help
--=.)4D/ERqo:Nz9VX Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Lately Fernan Aguero told: > I have a tarball with some documentation, examples, models and > scripts that I like to have installed under $PREFIX/share > > First of all how do I do this in the Makefile? I mean I can > just do 'cp work/package-name/documentation/* ${PREFIX}/share/doc' > but I've seen that ports Makefiles like to have more generic > ways of doing it ... perhaps there are some variables > already set that I can use ... yes. see /usr/ports/Mk/bsd.port.mk: # INSTALL_PROGRAM - A command to install binary executables. # INSTALL_SCRIPT - A command to install executable scripts. # INSTALL_DATA - A command to install sharable data. # INSTALL_MAN - A command to install manpages (doesn't compress). using these and ${MKDIR} should work fine (and set permissions correctly). please don't access work/package-name; instead go with ${WRKSRC} > Then the second issue is that of playing well with others > and avoid polluting $PREFIX/share. hier(7) says nothing > about /usr/local/share, but I've seen that > i) there are package specific directories > -> I can create one for my port and dump everything there > ii) there are 'doc' and 'examples' dirs > -> I can dump docs and examples there, but what about the > other extra stuff (scripts and models)? # DOCSDIR - Name of the directory to install the packages docs in # EXAMPLESDIR - Name of the directory to install the packages examples in # DATADIR - Name of the directory to install the packages shared data these directories have to be ${MKDIR}'ed so: your models and scripts go to ${DATADIR}, docs go to ${DOCSDIR} and examples go to ${EXAMPLESDIR} cheers simon -- /"\ http://corecode.ath.cx/#donate \ / \ ASCII Ribbon Campaign / \ Against HTML Mail and News --=.)4D/ERqo:Nz9VX Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (FreeBSD) iD8DBQE+G3vkr5S+dk6z85oRAmQ6AKC59DyZaKucjlgxUHdoJE8WVkB0yQCdGOwS 5Rbl9ZNPKkO5Jy2mLKIUjyc= =dQ+s -----END PGP SIGNATURE----- --=.)4D/ERqo:Nz9VX-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030108021616.3aeb2ca6.corecode>