PDA

View Full Version : Need help to port creation


SHRDLU
June 11th, 2009, 10:22
The following is required:

It is necessary to check up before port installation, whether a certain application is installed.
If the application is not installed, it is necessary to interrupt port installation and type the message "You should install a <CERTAIN APPLICATION> first"

As it to make in port Makefile?

Thanks. Sorry for my English

SirDice
June 11th, 2009, 10:24
Look into *_DEPENDS

http://www.freebsd.org/doc/en/books/porters-handbook/makefile-depend.html

SHRDLU
June 11th, 2009, 10:35
Look into *_DEPENDS

No. I know about it.
*_DEPENDS - for automatically install all dependent applications, but I need a manually install one application

SirDice
June 11th, 2009, 10:39
Why does it need to be installed manually? That defeats the purpose of a port.

SHRDLU
June 11th, 2009, 10:42
My port is required a PostgreSQL server. I wish to give to the user independently to choose the PostgreSQL server version.

SirDice
June 11th, 2009, 10:53
Look into OPTIONS

http://www.freebsd.org/doc/en/books/porters-handbook/makefile-options.html

SHRDLU
June 11th, 2009, 13:47
Thanks, i'm try it.

SirDice
June 11th, 2009, 14:41
If you do
find /usr/ports -type f -name 'Makefile' -exec grep -H PGSQL {} \;

You'll get a list of other ports that use PostgreSQL, have a look how they do it.

SHRDLU
June 11th, 2009, 17:13
Thanks, SirDice. I have found some ports where there is a similar solutions.