Date: Wed, 28 Aug 2002 16:34:10 -0500 From: Doug Poland <doug@polands.org> To: questions@freebsd.org Subject: Modifying a port for local use Message-ID: <20020828163410.A1930@polands.org>
next in thread | raw e-mail | index | archive | help
Hello,
I want to modify a port ( squirrelmail-1.2.7 ) for use on my system. The
issue is where the port is installed. The Makefile lets the ports system
install into /usr/local. However, I want it installed into /data/www.
After looking at /usr/ports/Mk/bsd.ports.mk it looked as simple as
redefining PREFIX= in the Makefile. I also want the the directory created
to reflect the PORTVERSION. So I hack the Makefile by adding/modifying:
PREFIX=/data/www
do-install:
${MKDIR} ${PREFIX}/squirrelmail-${PORTVERSION}
${CP} -R ${WRKSRC}/* ${PREFIX}/squirrelmail-${PORTVERSION}
${CHOWN} -R www:www ${PREFIX}/squirrelmail-${PORTVERSION}/data
After I do a make install, the port is installed in the appropriate
locatation, but in ${PREFIX} are a bunch of new directories {bin,etc,
include,info,lib,libdata,libexec,man,sbin,share,}.
When I attempt a pkg_delete or make deinstall, I get a bunch of messages
about files that don't exists. Examination reveals that the delete process
is not honoring my squirrelmail-${PORTVERSION} hack.
So, how am I supposed to change a port so it installs and deinstalls outside
the /usr/local directory structure?
--
Regards,
Doug
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020828163410.A1930>
