Date: Thu, 5 Aug 2004 14:48:22 +0200 From: Sven Esbjerg <esbjerg@xbsd.net> To: ports@FreeBSD.ORG Subject: changing a Makefile based on user input Message-ID: <20040805124822.GE82359@esbjerg.name>
next in thread | raw e-mail | index | archive | help
I'm trying to port RTFM (http://bestpractical.com/rtfm/) since we use it at work. It's my first port and I'm unsure of how the following should be done. Intalling RTFM is simple. Untar the tarball. Edit the Makefile and run make install. However the Makefile needs to be changed according to the postgresql installation - it needs a username for tampering with the database and a password if that is required. It also needs to know where rt lives. I would like to provide the user with defaults (pgsql user and /usr/local/rt3 as installation directory) but I would also like the user to be able to specify these options. I guess my question is: can I run some kind of script just after extracting but before installing? Is it advisable to create a sed script that does the actual mangling of the Makefile or? Sven Esbjerg -- http://www.usenet.dk/netikette - på forhånd tak.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040805124822.GE82359>