how do I modify pkg-plist for opional modules
Scot W. Hetzel
hetzels at westbend.net
Wed May 28 15:15:30 PDT 2003
From: "Guy Fraser" <guy at incentre.net>
> The FreeRadius port is marked as broken due to a "bad" pkg-plist.
> If MySQL and X99-Token software are both installed the list is
> correct. The Makefile installs modules if the required software is
> installed before "make".
> The pkg-plist can never be correct unless all files for all optional
> modules are included but not required to be available for install or
> removal. Alternatively a wild card could be used since the optional
> modules are all in the "lib" subdirectory and start with "rlm_", so
> "lib/rlm_*" could match.
> Let me know how to do this and I will try to fix the problem.
You need to change PLIST_SUB so that it contains a variable that is either
set to " or "@comment depending on whether the module is installed or not
You'll need to add something like the following to the Makefile:
PLIST_SUB+= MYSQL="@comment "
Then in pkg-plist change
Take a look at net/openldap2, or security/cyrus-sasl2 (Makefile and
pkg-plist) for an example.
More information about the freebsd-ports