mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-10 07:04:03 +00:00
Add oracle7-client 0.01, oracle 7 client.
This commit is contained in:
parent
6a9aeb3867
commit
79dd3ec0b0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60176
@ -57,6 +57,7 @@
|
||||
SUBDIR += mysqltcl
|
||||
SUBDIR += mytop
|
||||
SUBDIR += namazu2
|
||||
SUBDIR += oracle7-client
|
||||
SUBDIR += p5-ApacheDBILogConfig
|
||||
SUBDIR += p5-ApacheDBILogger
|
||||
SUBDIR += p5-AsciiDB-TagFile
|
||||
|
38
databases/oracle7-client/Makefile
Normal file
38
databases/oracle7-client/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# New ports collection makefile for: oracle7-client
|
||||
# Date created: 3 Dec 2001
|
||||
# Whom: Sergey Skvortsov <skv@protey.ru>
|
||||
#
|
||||
# $FreeBSD$
|
||||
#
|
||||
|
||||
PORTNAME= oracle7-client
|
||||
PORTVERSION= 0.01
|
||||
CATEGORIES= databases
|
||||
MASTER_SITES= \
|
||||
ftp://ftp.atnet.ru/pub/OS/FreeBSD/oracle/ \
|
||||
ftp://ftp.lipetsk.ru/pub/unix/Oracle/FreeBSD/ \
|
||||
ftp://ftp.redcom.ru/pub/Oracle/freebsd-client7/
|
||||
DISTNAME= oracle7.client.OCI
|
||||
|
||||
MAINTAINER= skv@FreeBSD.org
|
||||
|
||||
ORACLE_PREFIX= oracle7
|
||||
DIST_SUBDIR= ${ORACLE_PREFIX}
|
||||
WRKSRC= ${WRKDIR}/${ORACLE_PREFIX}
|
||||
ORACLE_HOME= ${PREFIX}/${ORACLE_PREFIX}
|
||||
PLIST_SUB= ORACLE_PREFIX="${ORACLE_PREFIX}"
|
||||
|
||||
NO_BUILD= yes
|
||||
|
||||
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
|
||||
|
||||
post-install:
|
||||
@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
1
databases/oracle7-client/distinfo
Normal file
1
databases/oracle7-client/distinfo
Normal file
@ -0,0 +1 @@
|
||||
MD5 (oracle7/oracle7.client.OCI.tar.gz) = 2b7f881f744aa5b0440f2efe81a20736
|
1
databases/oracle7-client/pkg-comment
Normal file
1
databases/oracle7-client/pkg-comment
Normal file
@ -0,0 +1 @@
|
||||
Oracle 7 client
|
6
databases/oracle7-client/pkg-descr
Normal file
6
databases/oracle7-client/pkg-descr
Normal file
@ -0,0 +1,6 @@
|
||||
Oracle 7 client
|
||||
|
||||
WWW: http://www.oracle.com/
|
||||
|
||||
-- Sergey Skvortsov
|
||||
skv@FreeBSD.org
|
47
databases/oracle7-client/pkg-install
Normal file
47
databases/oracle7-client/pkg-install
Normal file
@ -0,0 +1,47 @@
|
||||
#!/bin/sh
|
||||
|
||||
PATH=/bin:/usr/sbin
|
||||
DB_DIR=${PKG_PREFIX}/oracle7
|
||||
|
||||
USER=oracle
|
||||
GROUP=${USER}
|
||||
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
UID=71
|
||||
GID=${UID}
|
||||
|
||||
if pw group show "${GROUP}" 2>/dev/null; then
|
||||
echo "You already have a group \"${GROUP}\", so I will use it."
|
||||
else
|
||||
if pw groupadd ${GROUP} -g ${GID}; then
|
||||
echo "Added group \"${GROUP}\"."
|
||||
else
|
||||
echo "Adding group \"${GROUP}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if pw user show "${USER}" 2>/dev/null; then
|
||||
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}
|
||||
then
|
||||
echo "Added user \"${USER}\"."
|
||||
else
|
||||
echo "Adding user \"${USER}\" failed..."
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
if ! [ -x ${DB_DIR} ] ; then
|
||||
mkdir -p ${DB_DIR}
|
||||
chown ${USER}:${GROUP} ${DB_DIR}
|
||||
fi
|
||||
;;
|
||||
|
||||
POST-INSTALL)
|
||||
chown -R ${USER}:${GROUP} ${DB_DIR}/rdbms/log
|
||||
;;
|
||||
esac
|
1795
databases/oracle7-client/pkg-plist
Normal file
1795
databases/oracle7-client/pkg-plist
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user