components/sendmail/patches/install.sh.patch
author Alan Coopersmith <Alan.Coopersmith@Oracle.COM>
Fri, 07 Oct 2016 22:43:37 -0700
changeset 7203 c08b4f974065
parent 3649 4006eaaa7d29
permissions -rw-r--r--
21866045 move /etc/pam.d/gdm-autologin from system/core-os to system/display-manager/gdm

# All of the changes in this patch are specific to a Solaris build, and thus
# not applicable upstream.
--- sendmail-8.14.7/devtools/bin/install.sh	2001-03-16 15:37:31.000000000 -0800
+++ sendmail-8.14.7/devtools/bin/install.sh	2013-06-19 12:14:10.497500058 -0700
@@ -45,7 +45,7 @@
 		shift; shift
 		;;
 
-	  -c)	program=cp
+	  -c)	program="cp -f"
 		shift
 		;;
 
@@ -62,6 +62,10 @@
 	esac
 done
 
+# IPS makes owner and group moot for Solaris internal builds.
+owner=""
+group=""
+
 # Check source file
 if [ -z "$1" ]
 then
@@ -88,6 +92,13 @@
 	dst=$2
 fi
 
+# Make sure destination dir exists
+dstdir=`dirname $dst`
+if [ ! -d $dstdir ]
+then
+	mkdir -p $dstdir
+fi
+
 # Do install operation
 $program $src $dst
 if [ $? != 0 ]