Oddity with SUB_FILES= and pkg-message.in

Paul Schmehl pauls at utdallas.edu
Tue Feb 14 21:44:07 PST 2006


--On February 14, 2006 9:32:36 PM -0800 Peter Thoenen <eol1 at yahoo.com> 
wrote:

> Any reason SUB_FILES= pkg-message doesn't work? (where pkg-message.in
> is in ${FILESDIR})
>
> Kicks an error "unterminated newline".  Thought it was just me but
> noticed not a single port with pkg-message.in mods it via SUB_FILES=
> ... they all do the following hack:
>
> post-patch:
> @${SED} -e "s|%%PREFIX%%|${PREFIX}|g" \
>             ${FILESDIR}/pkg-message.in > ${PKGMESSAGE}
>
> Seems a undeeded hack as SUB_FILES should handle.
>
All my ports use SUB_FILES and pkg-message.in in $FILESDIR, and they work 
fine.  Look at security/sancp, security/barnyard or x11-toolkits/iwidgets, 
for example.

Paul Schmehl (pauls at utdallas.edu)
Adjunct Information Security Officer
University of Texas at Dallas
AVIEN Founding Member
http://www.utdallas.edu/


More information about the freebsd-ports mailing list