PLIST_FILES question

Gabor Kovesdan gabor at
Tue Jan 2 15:06:42 PST 2007

Beech Rintoul schrieb:
> Thanks to everyone who responded. I somehow missed that handbook section, but 
> I have it figured out now. What I needed to do is the following:
> .if defined(WITH_MYSQL)
> USE_MYSQL=	yes
> MODULES:=${MODULES}:mod_sql:mod_sql_mysql
> PLIST_FILES=	include/proftpd/mod_sql.h
> .endif
> The  extra header file is not copied to include unless that option is checked 
> and hard coding it in pkg-plist broke the pkg build. It didn't show up on 
> pointyhat because that option is off by default.

Oh, do you want to mix PLIST_FILES and pkg-plist, did I catch it right? 
That should not be done. You can list that file in pkg-plist as 
%%MYSQL%%include/proftpd/mod_sql.h and do the following in Makefile:

if defined(WITH_MYSQL)
[...another things here...]

PLIST_SUB+= MYSQL="@comment "

Look at e.g. security/amavisd-new, I do something similar there.


More information about the freebsd-ports mailing list