From owner-freebsd-ports@FreeBSD.ORG Sun Dec 14 06:31:15 2003 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7376616A4CE for ; Sun, 14 Dec 2003 06:31:15 -0800 (PST) Received: from kartoffel.salatschuessel.net (p5084BFC8.dip.t-dialin.net [80.132.191.200]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B72E43D31 for ; Sun, 14 Dec 2003 06:31:13 -0800 (PST) (envelope-from lehmann@ans-netz.de) Received: from kartoffel.salatschuessel.net (localhost [127.0.0.1]) hBEEV7e1057641; Sun, 14 Dec 2003 15:31:11 +0100 (CET) (envelope-from lehmann@ans-netz.de) Date: Sun, 14 Dec 2003 15:31:07 +0100 From: Oliver Lehmann To: Thierry Thomas 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> X-Mailer: Sylpheed version 0.9.8 (GTK+ 1.2.10; i386-portbld-freebsd4.9) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable cc: ports@freebsd.org Subject: Re: pear-PEAR/pkg-install X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Dec 2003 14:31:15 -0000 Thierry Thomas wrote: > Le Dim 14 d=E9c 03 =E0 13:40:31 +0100, Oliver Lehmann > =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/