Pass PKGNAME as well to the INSTALL script.
This commit is contained in:
parent
897a8e231a
commit
4d5c706270
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=17930
6 changed files with 12 additions and 12 deletions
|
@ -3,7 +3,7 @@
|
||||||
# Date created: 25 Nov 1998
|
# Date created: 25 Nov 1998
|
||||||
# Whom: Ichiro Fukuhara <ichiro@ichiro.org>
|
# Whom: Ichiro Fukuhara <ichiro@ichiro.org>
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.4 1999/01/01 07:19:44 kuriyama Exp $
|
# $Id: Makefile,v 1.5 1999/04/16 17:03:01 max Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
DISTNAME= postgresql-6.4.2
|
DISTNAME= postgresql-6.4.2
|
||||||
|
@ -121,7 +121,7 @@ pre-install:
|
||||||
@ ${MKDIR} ${PREFIX}/${INSTALL_DIR}
|
@ ${MKDIR} ${PREFIX}/${INSTALL_DIR}
|
||||||
@ ${SETENV} INSTALL_DIR=${INSTALL_DIR} \
|
@ ${SETENV} INSTALL_DIR=${INSTALL_DIR} \
|
||||||
PGSQL_UID=${PGSQL_UID} PGSQL_GID=${PGSQL_GID} \
|
PGSQL_UID=${PGSQL_UID} PGSQL_GID=${PGSQL_GID} \
|
||||||
${SH} ${PKGDIR}/INSTALL PRE-INSTALL
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
|
||||||
post-install:
|
post-install:
|
||||||
@ if [ ! -f ${PREFIX}/${INSTALL_DIR}/.profile ]; then \
|
@ if [ ! -f ${PREFIX}/${INSTALL_DIR}/.profile ]; then \
|
||||||
${ECHO} "PATH=${PATH}:${PREFIX}/${INSTALL_DIR}/bin" \
|
${ECHO} "PATH=${PATH}:${PREFIX}/${INSTALL_DIR}/bin" \
|
||||||
|
|
|
@ -48,7 +48,7 @@ yesno() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $2 in
|
||||||
PRE-INSTALL)
|
PRE-INSTALL)
|
||||||
|
|
||||||
## Hack /etc/master.passwd ##
|
## Hack /etc/master.passwd ##
|
||||||
|
@ -88,7 +88,7 @@ EOF
|
||||||
if yesno "Would you like to create it automatically?" y; then
|
if yesno "Would you like to create it automatically?" y; then
|
||||||
# We need a command 'pw(8)'
|
# We need a command 'pw(8)'
|
||||||
check_pw
|
check_pw
|
||||||
pw useradd ${PGSQL_UID} -u 70 -g ${PGSQL_GID} -h - -d /usr/local/${INSTALL_DIR} \
|
pw useradd ${PGSQL_UID} -u 70 -g ${PGSQL_GID} -h - -d ${PKG_PREFIX}/${INSTALL_DIR} \
|
||||||
-s /bin/sh -c "PostgreSQL pseudo-user" || exit
|
-s /bin/sh -c "PostgreSQL pseudo-user" || exit
|
||||||
else
|
else
|
||||||
echo "Please create it, and try again."
|
echo "Please create it, and try again."
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Date created: 25 Nov 1998
|
# Date created: 25 Nov 1998
|
||||||
# Whom: Ichiro Fukuhara <ichiro@ichiro.org>
|
# Whom: Ichiro Fukuhara <ichiro@ichiro.org>
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.4 1999/01/01 07:19:44 kuriyama Exp $
|
# $Id: Makefile,v 1.5 1999/04/16 17:03:01 max Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
DISTNAME= postgresql-6.4.2
|
DISTNAME= postgresql-6.4.2
|
||||||
|
@ -121,7 +121,7 @@ pre-install:
|
||||||
@ ${MKDIR} ${PREFIX}/${INSTALL_DIR}
|
@ ${MKDIR} ${PREFIX}/${INSTALL_DIR}
|
||||||
@ ${SETENV} INSTALL_DIR=${INSTALL_DIR} \
|
@ ${SETENV} INSTALL_DIR=${INSTALL_DIR} \
|
||||||
PGSQL_UID=${PGSQL_UID} PGSQL_GID=${PGSQL_GID} \
|
PGSQL_UID=${PGSQL_UID} PGSQL_GID=${PGSQL_GID} \
|
||||||
${SH} ${PKGDIR}/INSTALL PRE-INSTALL
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
|
||||||
post-install:
|
post-install:
|
||||||
@ if [ ! -f ${PREFIX}/${INSTALL_DIR}/.profile ]; then \
|
@ if [ ! -f ${PREFIX}/${INSTALL_DIR}/.profile ]; then \
|
||||||
${ECHO} "PATH=${PATH}:${PREFIX}/${INSTALL_DIR}/bin" \
|
${ECHO} "PATH=${PATH}:${PREFIX}/${INSTALL_DIR}/bin" \
|
||||||
|
|
|
@ -48,7 +48,7 @@ yesno() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $2 in
|
||||||
PRE-INSTALL)
|
PRE-INSTALL)
|
||||||
|
|
||||||
## Hack /etc/master.passwd ##
|
## Hack /etc/master.passwd ##
|
||||||
|
@ -88,7 +88,7 @@ EOF
|
||||||
if yesno "Would you like to create it automatically?" y; then
|
if yesno "Would you like to create it automatically?" y; then
|
||||||
# We need a command 'pw(8)'
|
# We need a command 'pw(8)'
|
||||||
check_pw
|
check_pw
|
||||||
pw useradd ${PGSQL_UID} -u 70 -g ${PGSQL_GID} -h - -d /usr/local/${INSTALL_DIR} \
|
pw useradd ${PGSQL_UID} -u 70 -g ${PGSQL_GID} -h - -d ${PKG_PREFIX}/${INSTALL_DIR} \
|
||||||
-s /bin/sh -c "PostgreSQL pseudo-user" || exit
|
-s /bin/sh -c "PostgreSQL pseudo-user" || exit
|
||||||
else
|
else
|
||||||
echo "Please create it, and try again."
|
echo "Please create it, and try again."
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
# Date created: 25 Nov 1998
|
# Date created: 25 Nov 1998
|
||||||
# Whom: Ichiro Fukuhara <ichiro@ichiro.org>
|
# Whom: Ichiro Fukuhara <ichiro@ichiro.org>
|
||||||
#
|
#
|
||||||
# $Id: Makefile,v 1.4 1999/01/01 07:19:44 kuriyama Exp $
|
# $Id: Makefile,v 1.5 1999/04/16 17:03:01 max Exp $
|
||||||
#
|
#
|
||||||
|
|
||||||
DISTNAME= postgresql-6.4.2
|
DISTNAME= postgresql-6.4.2
|
||||||
|
@ -121,7 +121,7 @@ pre-install:
|
||||||
@ ${MKDIR} ${PREFIX}/${INSTALL_DIR}
|
@ ${MKDIR} ${PREFIX}/${INSTALL_DIR}
|
||||||
@ ${SETENV} INSTALL_DIR=${INSTALL_DIR} \
|
@ ${SETENV} INSTALL_DIR=${INSTALL_DIR} \
|
||||||
PGSQL_UID=${PGSQL_UID} PGSQL_GID=${PGSQL_GID} \
|
PGSQL_UID=${PGSQL_UID} PGSQL_GID=${PGSQL_GID} \
|
||||||
${SH} ${PKGDIR}/INSTALL PRE-INSTALL
|
${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGDIR}/INSTALL ${PKGNAME} PRE-INSTALL
|
||||||
post-install:
|
post-install:
|
||||||
@ if [ ! -f ${PREFIX}/${INSTALL_DIR}/.profile ]; then \
|
@ if [ ! -f ${PREFIX}/${INSTALL_DIR}/.profile ]; then \
|
||||||
${ECHO} "PATH=${PATH}:${PREFIX}/${INSTALL_DIR}/bin" \
|
${ECHO} "PATH=${PATH}:${PREFIX}/${INSTALL_DIR}/bin" \
|
||||||
|
|
|
@ -48,7 +48,7 @@ yesno() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
case $1 in
|
case $2 in
|
||||||
PRE-INSTALL)
|
PRE-INSTALL)
|
||||||
|
|
||||||
## Hack /etc/master.passwd ##
|
## Hack /etc/master.passwd ##
|
||||||
|
@ -88,7 +88,7 @@ EOF
|
||||||
if yesno "Would you like to create it automatically?" y; then
|
if yesno "Would you like to create it automatically?" y; then
|
||||||
# We need a command 'pw(8)'
|
# We need a command 'pw(8)'
|
||||||
check_pw
|
check_pw
|
||||||
pw useradd ${PGSQL_UID} -u 70 -g ${PGSQL_GID} -h - -d /usr/local/${INSTALL_DIR} \
|
pw useradd ${PGSQL_UID} -u 70 -g ${PGSQL_GID} -h - -d ${PKG_PREFIX}/${INSTALL_DIR} \
|
||||||
-s /bin/sh -c "PostgreSQL pseudo-user" || exit
|
-s /bin/sh -c "PostgreSQL pseudo-user" || exit
|
||||||
else
|
else
|
||||||
echo "Please create it, and try again."
|
echo "Please create it, and try again."
|
||||||
|
|
Loading…
Reference in a new issue