1997-05-30 20:13:24 +00:00
|
|
|
--- chroot.sh.orig Wed Jul 31 15:34:34 1996
|
1997-06-05 13:54:01 +00:00
|
|
|
+++ chroot.sh Thu Jun 5 09:45:59 1997
|
1997-05-30 20:13:24 +00:00
|
|
|
@@ -10,9 +10,15 @@
|
|
|
|
#umask 022
|
|
|
|
|
|
|
|
RWHOIS_ROOT_DIR=$1
|
|
|
|
-COPY="cp"
|
|
|
|
+COPY="/bin/cp"
|
|
|
|
|
|
|
|
# check if these directories exist
|
|
|
|
+if test ! -d ${RWHOIS_ROOT_DIR}
|
|
|
|
+then
|
|
|
|
+ echo "make directory ${RWHOIS_ROOT_DIR}."
|
|
|
|
+ mkdir ${RWHOIS_ROOT_DIR}
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
if test ! -d ${RWHOIS_ROOT_DIR}/etc
|
|
|
|
then
|
|
|
|
echo "make directory ${RWHOIS_ROOT_DIR}/etc".
|
1997-06-05 13:54:01 +00:00
|
|
|
@@ -35,20 +41,30 @@
|
1997-05-30 20:13:24 +00:00
|
|
|
then
|
|
|
|
echo "make directory ${RWHOIS_ROOT_DIR}/usr"
|
|
|
|
mkdir $RWHOIS_ROOT_DIR/usr
|
|
|
|
- mkdir $RWHOIS_ROOT_DIR/usr/lib
|
|
|
|
-elif test ! -d $RWHOIS_ROOT_DIR/usr/lib
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+if test ! -d $RWHOIS_ROOT_DIR/usr/lib
|
|
|
|
then
|
|
|
|
echo "make directory ${RWHOIS_ROOT_DIR}/usr/lib"
|
|
|
|
mkdir $RWHOIS_ROOT_DIR/usr/lib
|
|
|
|
fi
|
|
|
|
|
|
|
|
+if test ! -d $RWHOIS_ROOT_DIR/usr/libexec
|
|
|
|
+then
|
|
|
|
+ echo "make directory ${RWHOIS_ROOT_DIR}/usr/libexec"
|
|
|
|
+ mkdir $RWHOIS_ROOT_DIR/usr/libexec
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
#copy /etc/resolv.conf to (rwhois_root)/etc
|
|
|
|
$COPY /etc/resolv.conf ${RWHOIS_ROOT_DIR}/etc
|
|
|
|
|
|
|
|
#copy /usr/lib/files to (rwhois_root)/usr/lib
|
|
|
|
- $COPY /usr/lib/ld.so /usr/lib/libnsl.so.1 /usr/lib/libsocket.so.1 /usr/lib/libc.so.1 /usr/lib/libdl.so.1 /usr/lib/libintl.so.1 /usr/lib/libmp.so.1 /usr/lib/libw.so.1 /usr/lib/libmapmalloc.so.1 $RWHOIS_ROOT_DIR/usr/lib
|
|
|
|
+ $COPY /usr/lib/libc.so.* ${PREFIX}/lib/libwrap.so.* $RWHOIS_ROOT_DIR/usr/lib
|
|
|
|
+
|
|
|
|
+#copy /usr/lib/files to (rwhois_root)/usr/lib
|
|
|
|
+ $COPY /usr/libexec/ld.so $RWHOIS_ROOT_DIR/usr/libexec
|
|
|
|
|
|
|
|
#copy /usr/bin/execut. to (rwhois_root)/bin
|
|
|
|
- $COPY /usr/bin/sh /usr/bin/sort $RWHOIS_ROOT_DIR/bin
|
|
|
|
+ $COPY /bin/sh /usr/bin/sort /bin/date $RWHOIS_ROOT_DIR/bin
|
|
|
|
|
|
|
|
echo "done"
|