Do-solaris-pkg:

  Minor tweaks to work properly
parent a2d021dd
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# Script to create Solaris packages # Script to create Solaris packages
# #
$INTERACTIVE= 0; $INTERACTIVE= 0;
$hostname= `hostname`; chomp ($hostname= `hostname`);
$find = "/usr/bin/find"; $find = "/usr/bin/find";
$pkgproto = "/usr/bin/pkgproto"; $pkgproto = "/usr/bin/pkgproto";
$pkgmk = "/usr/bin/pkgmk -o"; $pkgmk = "/usr/bin/pkgmk -o";
...@@ -75,7 +75,7 @@ $os =~ '\.'; ...@@ -75,7 +75,7 @@ $os =~ '\.';
$os = "sol$'"; $os = "sol$'";
chomp $os; chomp $os;
$default{"basedir"}= "/usr/local"; $default{"basedir"}= "/usr/local";
$default{"packagename"}= $fullname . '.pkg'; $default{"packagename"}= "${fullname}.pkg";
# Check for correctness of guessed values by userinput # Check for correctness of guessed values by userinput
...@@ -136,6 +136,8 @@ system ("gzip /tmp/$packagename"); ...@@ -136,6 +136,8 @@ system ("gzip /tmp/$packagename");
# Clean-up the spool area # Clean-up the spool area
system ("(cd /var/spool/pkg; rm -rf $pkg)"); system ("(cd /var/spool/pkg; rm -rf $pkg)");
# Clean-up the ~/packaging/ area
system ("(rm -rf mysql*)");
unlink $pkginfo; unlink $pkginfo;
unlink $prototype; unlink $prototype;
system ("mv /tmp/${packagename}.gz $pkgdir"); system ("mv /tmp/${packagename}.gz $pkgdir");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment