Code

Remove /usr as well. Maybe this is best done by changing BASEDIR to
[nagiosplug.git] / pkg / solaris / solpkg
index 00846d09223541469dbb9fda2d6ca62247f560a4..41d8e1772ec064aaba3e068ed42fe1a5735821c5 100755 (executable)
@@ -8,6 +8,7 @@ $pkgmk = "/usr/bin/pkgmk";
 $pkgtrans = "/usr/bin/pkgtrans";
 $prototype = "prototype";
 $pkginfo = "pkginfo";
+$egrep = "/usr/bin/egrep";
 
 # Sanity check
 
@@ -18,7 +19,7 @@ if ($pwd =~ '\/usr\/local') {
 die  "Wrong location, please cd to <PKGBASE>/usr/local/ and run again.\n"
         if ($pwd eq "");
 
-open (PREPROTO,"$find . -print |$egrep -v \"^.(/usr(/local)|/opt)?\$\" | $pkgproto |") ||
+open (PREPROTO,"$find . -print |$egrep -v \"^\.(/usr(/local)?|/opt)?\$\" | $pkgproto |") ||
        die "Unable to read prototype information ($!)\n";
 open (PROTO,">$prototype") ||
        die "Unable to write file prototype ($!)\n";