Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > media > main-release-src > by-pkgid > bbf3082ae0492f38fc1ce8966c068fc5 > files > 5

migrationtools-47-4mdv2009.1.src.rpm

--- MigrationTools-47/migrate_all_netinfo_offline.sh.instdir	2006-01-25 05:18:16.000000000 +0100
+++ MigrationTools-47/migrate_all_netinfo_offline.sh	2009-04-10 17:10:57.000000000 +0200
@@ -38,6 +38,7 @@
 
 PATH=$PATH:.
 export PATH
+INSTDIR=/usr/share/migrationtools/
 
 TMPDIR="/tmp"
 ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
@@ -68,7 +69,7 @@
 nidump networks $DOM > $ETC_NETWORKS
 nidump aliases $DOM > $ETC_ALIASES
 
-. migrate_all_offline.sh
+. ${INSTDIR}migrate_all_offline.sh
 
 rm -f $ETC_PASSWD
 rm -f $ETC_GROUP
--- MigrationTools-47/migrate_all_netinfo_online.sh.instdir	2006-01-25 05:18:16.000000000 +0100
+++ MigrationTools-47/migrate_all_netinfo_online.sh	2009-04-10 17:10:57.000000000 +0200
@@ -38,6 +38,7 @@
 
 PATH=$PATH:.
 export PATH
+INSTDIR=/usr/share/migrationtools/
 
 TMPDIR="/tmp"
 ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
@@ -68,7 +69,7 @@
 nidump networks $DOM > $ETC_NETWORKS
 nidump aliases $DOM > $ETC_ALIASES
 
-. migrate_all_online.sh
+. ${INSTDIR}migrate_all_online.sh
 
 rm -f $ETC_PASSWD
 rm -f $ETC_GROUP
--- MigrationTools-47/migrate_all_nis_offline.sh.instdir	2006-01-25 05:18:16.000000000 +0100
+++ MigrationTools-47/migrate_all_nis_offline.sh	2009-04-10 17:10:57.000000000 +0200
@@ -38,6 +38,7 @@
 
 PATH=$PATH:.
 export PATH
+INSTDIR=/usr/share/migrationtools/
 
 TMPDIR="/tmp"
 ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
@@ -70,7 +71,7 @@
 ypcat $DOMFLAG networks > $ETC_NETWORKS
 #ypcat $DOMFLAG -k aliases > $ETC_ALIASES
 
-. migrate_all_offline.sh
+. ${INSTDIR}migrate_all_offline.sh
 
 rm -f $ETC_PASSWD
 rm -f $ETC_GROUP
--- MigrationTools-47/migrate_all_nis_online.sh.instdir	2006-01-25 05:18:16.000000000 +0100
+++ MigrationTools-47/migrate_all_nis_online.sh	2009-04-10 17:10:57.000000000 +0200
@@ -38,7 +38,7 @@
 
 PATH=$PATH:.
 export PATH
-
+INSTDIR=/usr/share/migrationtools/
 
 TMPDIR="/tmp"
 ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
@@ -71,7 +71,7 @@
 ypcat $DOMFLAG networks > $ETC_NETWORKS
 #ypcat $DOMFLAG -k aliases > $ETC_ALIASES
 
-. migrate_all_online.sh
+. ${INSTDIR}migrate_all_online.sh
 
 rm -f $ETC_PASSWD
 rm -f $ETC_GROUP
--- MigrationTools-47/migrate_all_nisplus_offline.sh.instdir	2006-01-25 05:18:16.000000000 +0100
+++ MigrationTools-47/migrate_all_nisplus_offline.sh	2009-04-10 17:10:57.000000000 +0200
@@ -38,6 +38,7 @@
 
 PATH=$PATH:/usr/lib/nis:.
 export PATH
+INSTDIR=/usr/share/migrationtools/
 
 TMPDIR="/tmp"
 ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
@@ -72,7 +73,7 @@
 nisaddent -d netgroup $DOM > $ETC_NETGROUP
 niscat mail_aliases.org_dir.$DOM > $ETC_ALIASES
 
-. migrate_all_offline.sh
+. ${INSTDIR}migrate_all_offline.sh
 
 rm -f $ETC_PASSWD
 rm -f $ETC_GROUP
--- MigrationTools-47/migrate_all_nisplus_online.sh.instdir	2006-01-25 05:18:16.000000000 +0100
+++ MigrationTools-47/migrate_all_nisplus_online.sh	2009-04-10 17:10:57.000000000 +0200
@@ -38,7 +38,7 @@
 
 PATH=$PATH:.
 export PATH
-
+INSTDIR=/usr/share/migrationtools/
 
 TMPDIR="/tmp"
 ETC_PASSWD="$TMPDIR/passwd.$$.ldap"
@@ -73,7 +73,7 @@
 nisaddent -d netgroup $DOM > $ETC_NETGROUP
 niscat mail_aliases.org_dir.$DOM > $ETC_ALIASES
 
-. migrate_all_online.sh
+. ${INSTDIR}migrate_all_online.sh
 
 rm -f $ETC_PASSWD
 rm -f $ETC_GROUP
--- MigrationTools-47/migrate_all_offline.sh.instdir	2006-01-25 05:18:16.000000000 +0100
+++ MigrationTools-47/migrate_all_offline.sh	2009-04-10 17:10:57.000000000 +0200
@@ -41,6 +41,7 @@
 # Luke Howard <lukeh@padl.com> April 1997
 #
 
+INSTDIR=/usr/share/migrationtools/
 DB="/tmp/nis.$$.ldif"
 
 if [ "X$ETC_ALIASES" = "X" ]; then
@@ -108,32 +109,32 @@
 fi
 
 echo "Creating naming context entries..."
-$PERL migrate_base.pl		> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_base.pl		> $DB
 echo "Migrating aliases..."
-$PERL migrate_aliases.pl 	$ETC_ALIASES >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_aliases.pl 	$ETC_ALIASES >> $DB
 #echo "Migrating fstab..."
-#$PERL migrate_fstab.pl		$ETC_FSTAB >> $DB
+#$PERL -I${INSTDIR} ${INSTDIR}migrate_fstab.pl		$ETC_FSTAB >> $DB
 echo "Migrating groups..."
-$PERL migrate_group.pl		$ETC_GROUP >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_group.pl		$ETC_GROUP >> $DB
 echo "Migrating hosts..."
-$PERL migrate_hosts.pl		$ETC_HOSTS >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_hosts.pl		$ETC_HOSTS >> $DB
 echo "Migrating networks..."
-$PERL migrate_networks.pl	$ETC_NETWORKS >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_networks.pl	$ETC_NETWORKS >> $DB
 echo "Migrating users..."
-$PERL migrate_passwd.pl		$ETC_PASSWD >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_passwd.pl		$ETC_PASSWD >> $DB
 echo "Migrating protocols..."
-$PERL migrate_protocols.pl	$ETC_PROTOCOLS >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_protocols.pl	$ETC_PROTOCOLS >> $DB
 echo "Migrating rpcs..."
-$PERL migrate_rpc.pl		$ETC_RPC >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_rpc.pl		$ETC_RPC >> $DB
 echo "Migrating services..."
-$PERL migrate_services.pl	$ETC_SERVICES >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_services.pl	$ETC_SERVICES >> $DB
 echo "Migrating netgroups..."
-$PERL migrate_netgroup.pl	$ETC_NETGROUP >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup.pl	$ETC_NETGROUP >> $DB
 echo "Importing into LDAP..."
 echo "Migrating netgroups (by user)..."
-$PERL migrate_netgroup_byuser.pl	$ETC_NETGROUP >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byuser.pl	$ETC_NETGROUP >> $DB
 echo "Migrating netgroups (by host)..."
-$PERL migrate_netgroup_byhost.pl	$ETC_NETGROUP >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byhost.pl	$ETC_NETGROUP >> $DB
 echo "Preparing LDAP database..."
 if [ "X$SLAPADD" = "X" ]; then
 	$LDIF2LDBM -i $DB
--- MigrationTools-47/migrate_all_online.sh.instdir	2006-01-25 05:18:16.000000000 +0100
+++ MigrationTools-47/migrate_all_online.sh	2009-04-10 17:10:57.000000000 +0200
@@ -38,6 +38,8 @@
 SHELL=/bin/sh
 export SHELL
 
+INSTDIR=/usr/share/migrationtools/
+
 DB=/tmp/nis.$$.ldif
 
 if [ "X$ETC_ALIASES" = "X" ]; then
@@ -104,7 +106,7 @@
 fi
 
 if [ "X$LDAP_BASEDN" = "X" ]; then
-	defaultcontext=`$PERL -e 'require "migrate_common.ph"; print \$DEFAULT_BASE';`
+	defaultcontext=`$PERL -I${INSTDIR} -e 'require "'${INSTDIR}migrate_common.ph'"; print \$DEFAULT_BASE';`
 	question="Enter the X.500 naming context you wish to import into: [$defaultcontext]"
 	echo "$question " | tr -d '\012' > /dev/tty
 	read LDAP_BASEDN
@@ -160,35 +162,35 @@
 echo "Importing into $LDAP_BASEDN..."
 echo
 echo "Creating naming context entries..."
-$PERL migrate_base.pl -n		> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_base.pl -n		> $DB
 if [ "X$LDAP_PROFILE" = "Xyes" ]; then
 	echo "Creating DUAConfigProfile entry..."
-	$PERL migrate_profile.pl "$LDAPHOST" >> $DB
+	$PERL -I${INSTDIR} ${INSTDIR}migrate_profile.pl "$LDAPHOST" >> $DB
 fi
 echo "Migrating aliases..."
-$PERL migrate_aliases.pl 	$ETC_ALIASES >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_aliases.pl 	$ETC_ALIASES >> $DB
 #echo "Migrating fstab..."
-#$PERL migrate_fstab.pl		$ETC_FSTAB >> $DB
+#$PERL -I${INSTDIR} ${INSTDIR}migrate_fstab.pl		$ETC_FSTAB >> $DB
 echo "Migrating groups..."
-$PERL migrate_group.pl		$ETC_GROUP >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_group.pl		$ETC_GROUP >> $DB
 echo "Migrating hosts..."
-$PERL migrate_hosts.pl		$ETC_HOSTS >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_hosts.pl		$ETC_HOSTS >> $DB
 echo "Migrating networks..."
-$PERL migrate_networks.pl	$ETC_NETWORKS >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_networks.pl	$ETC_NETWORKS >> $DB
 echo "Migrating users..."
-$PERL migrate_passwd.pl		$ETC_PASSWD >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_passwd.pl		$ETC_PASSWD >> $DB
 echo "Migrating protocols..."
-$PERL migrate_protocols.pl	$ETC_PROTOCOLS >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_protocols.pl	$ETC_PROTOCOLS >> $DB
 echo "Migrating rpcs..."
-$PERL migrate_rpc.pl		$ETC_RPC >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_rpc.pl		$ETC_RPC >> $DB
 echo "Migrating services..."
-$PERL migrate_services.pl	$ETC_SERVICES >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_services.pl	$ETC_SERVICES >> $DB
 echo "Migrating netgroups..."
-$PERL migrate_netgroup.pl	$ETC_NETGROUP >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup.pl	$ETC_NETGROUP >> $DB
 echo "Migrating netgroups (by user)..."
-$PERL migrate_netgroup_byuser.pl	$ETC_NETGROUP >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byuser.pl	$ETC_NETGROUP >> $DB
 echo "Migrating netgroups (by host)..."
-$PERL migrate_netgroup_byhost.pl	$ETC_NETGROUP >> $DB
+$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byhost.pl	$ETC_NETGROUP >> $DB
 
 echo "Importing into LDAP..."