Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Dec 2003 15:31:07 +0100
From:      Oliver Lehmann <lehmann@ans-netz.de>
To:        Thierry Thomas <thierry@pompo.net>
Cc:        ports@freebsd.org
Subject:   Re: pear-PEAR/pkg-install
Message-ID:  <20031214153107.438f2f3d.lehmann@ans-netz.de>
In-Reply-To: <20031214131745.GA79389@graf.pompo.net>
References:  <20031214134031.0e42cee5.lehmann@ans-netz.de> <20031214131745.GA79389@graf.pompo.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Thierry Thomas wrote:

> Le Dim 14 d=E9c 03 =E0 13:40:31 +0100, Oliver Lehmann <lehmann@ans-netz.d=
e>
>  =E9crivait=A0:
> > Hi,
>=20
> Hello,
>=20
> > the variable PEAR is defined as ${PREFIX}/bin/pear. Shouldn't it be
> > better to define it as ${LOCALBASE}/bin/pear (and add an env entry in
> > Makefile.common)? Maybe i have that binary in an other location
> > installed, as i wish to install a pear module?
>=20
> Indeed, it would be fine, but this is not easy to pass ${LOCALBASE} to
> pkg-install / pkg-deinstall.

Why not change=20

post-install:
	@${MKDIR} ${PKGREGDIR}
	@${INSTALL_DATA} ${WRKDIR}/package.xml ${PKGREGDIR}
	@${SETENV} PKG_PREFIX=3D${PREFIX} \
	${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

to:

post-install:
	@${MKDIR} ${PKGREGDIR}
	@${INSTALL_DATA} ${WRKDIR}/package.xml ${PKGREGDIR}
	@${SETENV} PKG_PREFIX=3D"${PREFIX}" PHP_BASE=3D"${PHP_BASE}" \
	${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

and in pkg-install:
PEAR=3D${PREFIX}/bin/pear
to:
PEAR=3D${PHP_BASE}/bin/pear

But actually I have no clue how to modify pkg-deinstall. Where does
PKG_PREFIX in pkg-deinstall comes from?


--=20
 Oliver Lehmann
        @home: lehmann@ans-netz.de
      @office: oliver.lehmann@mgi.de
         @www: http://www.pofo.de/  |  http://wishlist.ans-netz.de/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031214153107.438f2f3d.lehmann>