Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 2003 15:07:34 -0500
From:      "West Bend Support" <support@westbend.net>
To:        "Roman Neuhauser" <neuhauser@bellavista.cz>, "freebsd-ports" <freebsd-ports@freebsd.org>
Subject:   Re: pkg-plist and potentially strange paths
Message-ID:  <02ec01c30453$d2352200$13fd2fd8@Admin02>
References:  <20030416141320.GO36951@freepuppy.bellavista.cz>

next in thread | previous in thread | raw e-mail | index | archive | help
From: "Roman Neuhauser" <neuhauser@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?02ec01c30453$d2352200$13fd2fd8>