Need help to port creation

SHRDLU

New Member


Messages: 5

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
 
OP
OP
S

SHRDLU

New Member


Messages: 5

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

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,553
Messages: 30,264

Why does it need to be installed manually? That defeats the purpose of a port.
 
OP
OP
S

SHRDLU

New Member


Messages: 5

My port is required a PostgreSQL server. I wish to give to the user independently to choose the PostgreSQL server version.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 7,553
Messages: 30,264

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.
 
Top