mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-14 03:10:47 +00:00
4e6ebc04cb
Discussed with: thierry, antonio@php.net Required by: PHP 5.1
15 lines
292 B
Bash
15 lines
292 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# Register the package $1 in the port registry
|
|
|
|
PREFIX=${PKG_PREFIX:=%%PREFIX%%}
|
|
PEAR=${PREFIX}/bin/pear
|
|
PKGREGDIR=${PREFIX}/share/pear/packages/$1
|
|
|
|
[ "x$1" = "x" ] && exit 1
|
|
if [ "x$2" = "xPOST-INSTALL" ]; then
|
|
${PEAR} install -r -n -f ${PKGREGDIR}/package.xml
|
|
fi
|