pkg-plist and potentially strange paths

West Bend Support support at westbend.net
Wed Apr 16 13:07:19 PDT 2003


From: "Roman Neuhauser" <neuhauser at bellavista.cz>
> I'm playing with a new port for an Apache module.
> I want to install the .so in Apache's libexecdir, and I'm getting the
> path with
> 
> AP_LIBEXECDIR!= ${APXS} -q LIBEXECDIR
> 
> The port installs two files, the other one is README, and I'd like to
> put it in ${PREFIX}/share/doc/${PORTNAME}.
> 
> What should pkg-plist look like?
> 

%%AP_LIBEXECDIR%%/mod_mime.so
@exec %D/sbin/apxs -e -a -n mime %f
@unexec %D/sbin/apxs -e -A -n mime %f
share/doc/PORTNAME/README
@dirrm share/doc/PORTNAME

You also need to add to the ports make file:

PLIST_SUB+= AP_LIBEXECDIR="${AP_LIBEXECDIR:S,^${PREFIX}/,,}"

Scot


More information about the freebsd-ports mailing list