aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorskv <skv@FreeBSD.org>2003-04-09 19:31:31 +0800
committerskv <skv@FreeBSD.org>2003-04-09 19:31:31 +0800
commit54f424aa32b7ffedbadd2a99d689f10a90ce00ea (patch)
treeaf44679368c410875fba8cdf90c340a061eb6f24 /databases
parent0acd224b0d6abe59f241d7627102a39e43791b80 (diff)
downloadfreebsd-ports-gnome-54f424aa32b7ffedbadd2a99d689f10a90ce00ea.tar.gz
freebsd-ports-gnome-54f424aa32b7ffedbadd2a99d689f10a90ce00ea.tar.zst
freebsd-ports-gnome-54f424aa32b7ffedbadd2a99d689f10a90ce00ea.zip
1. remove ${PREFIX}/oracle7 on uninstall
2. don't use skeleton files while user addition Pointed by: kris
Diffstat (limited to 'databases')
-rw-r--r--databases/oracle7-client/Makefile12
-rw-r--r--databases/oracle7-client/pkg-install5
-rw-r--r--databases/oracle7-client/pkg-plist1
3 files changed, 10 insertions, 8 deletions
diff --git a/databases/oracle7-client/Makefile b/databases/oracle7-client/Makefile
index d3294a5eb2b2..a49094651973 100644
--- a/databases/oracle7-client/Makefile
+++ b/databases/oracle7-client/Makefile
@@ -8,7 +8,7 @@
PORTNAME= oracle7-client
PORTVERSION= 0.01
CATEGORIES= databases
-MASTER_SITES= \
+MASTER_SITES= ftp://www.kuzbass.ru/pub/freebsd/oracle/ \
ftp://ftp.atnet.ru/pub/OS/FreeBSD/oracle/ \
ftp://ftp.lipetsk.ru/pub/unix/Oracle/FreeBSD/ \
ftp://ftp.redcom.ru/pub/Oracle/freebsd-client7/
@@ -26,14 +26,14 @@ PLIST_SUB= ORACLE_PREFIX="${ORACLE_PREFIX}"
NO_BUILD= yes
pre-install:
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
do-install:
- @${CP} -pRP ${WRKSRC}/network ${WRKSRC}/ocommon \
- ${WRKSRC}/rdbms ${ORACLE_HOME}
- @${LN} -sf rdbms/lib ${ORACLE_HOME}/lib
+ @${CP} -pRP ${WRKSRC}/network ${WRKSRC}/ocommon ${WRKSRC}/rdbms \
+ ${ORACLE_HOME}
+ @${LN} -sf rdbms/lib ${ORACLE_HOME}/lib
post-install:
- @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+ @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
.include <bsd.port.mk>
diff --git a/databases/oracle7-client/pkg-install b/databases/oracle7-client/pkg-install
index f30bfe445475..00bac61fae2a 100644
--- a/databases/oracle7-client/pkg-install
+++ b/databases/oracle7-client/pkg-install
@@ -26,11 +26,12 @@ PRE-INSTALL)
echo "You already have a user \"${USER}\", so I will use it."
else
if pw useradd ${USER} -u ${UID} -g ${GROUP} -h - \
- -m -d ${DB_DIR} -c "Oracle" -b ${PKG_PREFIX}
+ -d ${DB_DIR} -c "Oracle"
then
echo "Added user \"${USER}\"."
else
- echo "Adding user \"${USER}\" failed..."
+ echo "Adding user \"${USER}\" failed."
+ echo "Please create it manually, before reinstalling this package."
exit 1
fi
fi
diff --git a/databases/oracle7-client/pkg-plist b/databases/oracle7-client/pkg-plist
index d961bf674466..f2e8db353ed9 100644
--- a/databases/oracle7-client/pkg-plist
+++ b/databases/oracle7-client/pkg-plist
@@ -1793,3 +1793,4 @@
@dirrm %%ORACLE_PREFIX%%/rdbms/mesg
@dirrm %%ORACLE_PREFIX%%/rdbms/public
@dirrm %%ORACLE_PREFIX%%/rdbms
+@dirrm %%ORACLE_PREFIX%%