Hi guys, 

I'm trying to create my own port. I'm stucked with the following
Makefile:

PORTNAME=      openjsip
PORTVERSION=   0.0.4
...
...
MY_FILE=       proxy.properties

do-check: 

        #FIRST TEST
.       if !exists(/usr/local/share/openjsip/conf/proxy.properties)
                @${ECHO_MSG} ">> /usr/local/share/openjsip/conf/proxy.properties
doesn't exist"
.       else
                @${ECHO_MSG} ">> /usr/local/share/openjsip/conf/proxy.properties
exists"
.       endif
        
        #SECOND TEST
        @${ECHO_MSG} ">> DATADIR=${DATADIR}"

.for f in ${MY_FILE}
.       if !exists(${DATADIR}/conf/${f})
                @${ECHO_MSG} ">> File ${DATADIR}/conf/${f} doesn't exist"
.       else
                @${ECHO_MSG} ">> File ${DATADIR}/conf/${f} exists"
.       endif
.endfor


I'm trying to make script to check the existence of proxy.properties
file.
The first test works well while to other one (with the use of 'for')
doesn't.
Can you help me, I don't understand why the second test fails.

OUTPUT:

ykrap...@net/openjsip
>file /usr/local/share/openjsip/conf/proxy.properties
/usr/local/share/openjsip/conf/proxy.properties: ASCII English text,
with CRLF line terminators

ykrap...@net/openjsip >make do-check
#FIRST TEST
>> /usr/local/share/openjsip/conf/proxy.properties exists
#SECOND TEST
>> DATADIR=/usr/local/share/openjsip
>> File /usr/local/share/openjsip/conf/proxy.properties doesn't exist

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to