<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" /><style type="text/css"><!--
#msg dl { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fc0 solid; padding: 6px; }
#msg ul, pre { overflow: auto; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<title>[27400] trunk/dports/gnome/gnotify</title>
</head>
<body>

<div id="msg">
<dl>
<dt>Revision</dt> <dd><a href="http://trac.macosforge.org/projects/macports/changeset/27400">27400</a></dd>
<dt>Author</dt> <dd>boeyms@macports.org</dd>
<dt>Date</dt> <dd>2007-08-02 06:38:37 -0700 (Thu, 02 Aug 2007)</dd>
</dl>

<h3>Log Message</h3>
<pre>gnome/gnotify: replace missing files from ${filespath} rather than port:automake

The current GNotify source has broken symlinks for files that it requires from
automake instead of the actual files.  port:gnotify currently fixes this by
copying them for the share directory of port:automake.  However, since GNotify
doesn't actually require automake to be run before building, we can just put the required files into ${filespath} and copy them over.  The files included here come from automake-1.10.

Of the files so added here, install-sh is under the MIT/X License, and
mkinstalldirs is in the public domain.  mkinstalldirs is under the GPL, but it
has an exception stating that, if it is included in a package that uses
autoconf, it may be distributed under that package's licence.  I may be
stretching this exception a bit by claiming that we are okay to copy
mkinstalldirs here because we use autoconf somewhere else in MacPorts.  If
anyone has any concerns, I can remove these files and restore the dependence on
port:automake, though I'll have to to do some hackery to retrieve the version of
the installed port:automake, as we have to get around the fact that
port:automake installs these files into ${prefix}/share/automake-${version}.

Ultimately, of course, the GNotify developers should fix the package so we don't
have to do this, so I will notify them of the problem.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkdportsgnomegnotifyPortfile">trunk/dports/gnome/gnotify/Portfile</a></li>
</ul>

<h3>Added Paths</h3>
<ul>
<li><a href="#trunkdportsgnomegnotifyfilesinstallsh">trunk/dports/gnome/gnotify/files/install-sh</a></li>
<li><a href="#trunkdportsgnomegnotifyfilesmissing">trunk/dports/gnome/gnotify/files/missing</a></li>
<li><a href="#trunkdportsgnomegnotifyfilesmkinstalldirs">trunk/dports/gnome/gnotify/files/mkinstalldirs</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkdportsgnomegnotifyPortfile"></a>
<div class="modfile"><h4>Modified: trunk/dports/gnome/gnotify/Portfile (27399 => 27400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gnome/gnotify/Portfile        2007-08-02 13:37:58 UTC (rev 27399)
+++ trunk/dports/gnome/gnotify/Portfile        2007-08-02 13:38:37 UTC (rev 27400)
</span><span class="lines">@@ -15,10 +15,10 @@
</span><span class="cx"> master_sites    sourceforge
</span><span class="cx"> checksums        md5 6e7a031a5b1e9b12ac04992ccbf71627
</span><span class="cx"> patchfiles        patch_Makefile.in
</span><del>-depends_lib        bin:automake-1.7:automake bin:gnome-session:gnome-session
</del><ins>+depends_lib        bin:gnome-session:gnome-session
</ins><span class="cx"> configure.cflags        -no-cpp-precomp -flat_namespace -undefined suppress
</span><span class="cx"> pre-configure        {
</span><del>-                file copy -force ${prefix}/share/automake-1.7/install-sh ${worksrcpath}
-                file copy -force ${prefix}/share/automake-1.7/mkinstalldirs ${worksrcpath}
-                file copy -force ${prefix}/share/automake-1.7/missing ${worksrcpath}
</del><ins>+                file copy -force ${filespath}/install-sh ${worksrcpath}
+                file copy -force ${filespath}/mkinstalldirs ${worksrcpath}
+                file copy -force ${filespath}/missing ${worksrcpath}
</ins><span class="cx">                 }
</span></span></pre></div>
<a id="trunkdportsgnomegnotifyfilesinstallsh"></a>
<div class="addfile"><h4>Added: trunk/dports/gnome/gnotify/files/install-sh (0 => 27400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gnome/gnotify/files/install-sh                                (rev 0)
+++ trunk/dports/gnome/gnotify/files/install-sh        2007-08-02 13:38:37 UTC (rev 27400)
</span><span class="lines">@@ -0,0 +1,507 @@
</span><ins>+#!/bin/sh
+# install - install a program, script, or datafile
+
+scriptversion=2006-10-14.15
+
+# This originates from X11R5 (mit/util/scripts/install.sh), which was
+# later released in X11R6 (xc/config/util/install.sh) with the
+# following copyright and license.
+#
+# Copyright (C) 1994 X Consortium
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the &quot;Software&quot;), to
+# deal in the Software without restriction, including without limitation the
+# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+# sell copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
+# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#
+# Except as contained in this notice, the name of the X Consortium shall not
+# be used in advertising or otherwise to promote the sale, use or other deal-
+# ings in this Software without prior written authorization from the X Consor-
+# tium.
+#
+#
+# FSF changes to this file are in the public domain.
+#
+# Calling this script install-sh is preferred over install.sh, to prevent
+# `make' implicit rules from creating a file called install from it
+# when there is no Makefile.
+#
+# This script is compatible with the BSD install script, but was written
+# from scratch.
+
+nl='
+'
+IFS=&quot; &quot;&quot;        $nl&quot;
+
+# set DOITPROG to echo to test this script
+
+# Don't use :- since 4.3BSD and earlier shells don't like it.
+doit=&quot;${DOITPROG-}&quot;
+if test -z &quot;$doit&quot;; then
+  doit_exec=exec
+else
+  doit_exec=$doit
+fi
+
+# Put in absolute file names if you don't have them in your path;
+# or use environment vars.
+
+mvprog=&quot;${MVPROG-mv}&quot;
+cpprog=&quot;${CPPROG-cp}&quot;
+chmodprog=&quot;${CHMODPROG-chmod}&quot;
+chownprog=&quot;${CHOWNPROG-chown}&quot;
+chgrpprog=&quot;${CHGRPPROG-chgrp}&quot;
+stripprog=&quot;${STRIPPROG-strip}&quot;
+rmprog=&quot;${RMPROG-rm}&quot;
+mkdirprog=&quot;${MKDIRPROG-mkdir}&quot;
+
+posix_glob=
+posix_mkdir=
+
+# Desired mode of installed file.
+mode=0755
+
+chmodcmd=$chmodprog
+chowncmd=
+chgrpcmd=
+stripcmd=
+rmcmd=&quot;$rmprog -f&quot;
+mvcmd=&quot;$mvprog&quot;
+src=
+dst=
+dir_arg=
+dstarg=
+no_target_directory=
+
+usage=&quot;Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
+   or: $0 [OPTION]... SRCFILES... DIRECTORY
+   or: $0 [OPTION]... -t DIRECTORY SRCFILES...
+   or: $0 [OPTION]... -d DIRECTORIES...
+
+In the 1st form, copy SRCFILE to DSTFILE.
+In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
+In the 4th, create DIRECTORIES.
+
+Options:
+-c         (ignored)
+-d         create directories instead of installing files.
+-g GROUP   $chgrpprog installed files to GROUP.
+-m MODE    $chmodprog installed files to MODE.
+-o USER    $chownprog installed files to USER.
+-s         $stripprog installed files.
+-t DIRECTORY  install into DIRECTORY.
+-T         report an error if DSTFILE is a directory.
+--help     display this help and exit.
+--version  display version info and exit.
+
+Environment variables override the default commands:
+  CHGRPPROG CHMODPROG CHOWNPROG CPPROG MKDIRPROG MVPROG RMPROG STRIPPROG
+&quot;
+
+while test $# -ne 0; do
+  case $1 in
+    -c) shift
+        continue;;
+
+    -d) dir_arg=true
+        shift
+        continue;;
+
+    -g) chgrpcmd=&quot;$chgrpprog $2&quot;
+        shift
+        shift
+        continue;;
+
+    --help) echo &quot;$usage&quot;; exit $?;;
+
+    -m) mode=$2
+        shift
+        shift
+        case $mode in
+          *' '* | *'        '* | *'
+'*          | *'*'* | *'?'* | *'['*)
+            echo &quot;$0: invalid mode: $mode&quot; &gt;&amp;2
+            exit 1;;
+        esac
+        continue;;
+
+    -o) chowncmd=&quot;$chownprog $2&quot;
+        shift
+        shift
+        continue;;
+
+    -s) stripcmd=$stripprog
+        shift
+        continue;;
+
+    -t) dstarg=$2
+        shift
+        shift
+        continue;;
+
+    -T) no_target_directory=true
+        shift
+        continue;;
+
+    --version) echo &quot;$0 $scriptversion&quot;; exit $?;;
+
+    --)        shift
+        break;;
+
+    -*)        echo &quot;$0: invalid option: $1&quot; &gt;&amp;2
+        exit 1;;
+
+    *)  break;;
+  esac
+done
+
+if test $# -ne 0 &amp;&amp; test -z &quot;$dir_arg$dstarg&quot;; then
+  # When -d is used, all remaining arguments are directories to create.
+  # When -t is used, the destination is already specified.
+  # Otherwise, the last argument is the destination.  Remove it from $@.
+  for arg
+  do
+    if test -n &quot;$dstarg&quot;; then
+      # $@ is not empty: it contains at least $arg.
+      set fnord &quot;$@&quot; &quot;$dstarg&quot;
+      shift # fnord
+    fi
+    shift # arg
+    dstarg=$arg
+  done
+fi
+
+if test $# -eq 0; then
+  if test -z &quot;$dir_arg&quot;; then
+    echo &quot;$0: no input file specified.&quot; &gt;&amp;2
+    exit 1
+  fi
+  # It's OK to call `install-sh -d' without argument.
+  # This can happen when creating conditional directories.
+  exit 0
+fi
+
+if test -z &quot;$dir_arg&quot;; then
+  trap '(exit $?); exit' 1 2 13 15
+
+  # Set umask so as not to create temps with too-generous modes.
+  # However, 'strip' requires both read and write access to temps.
+  case $mode in
+    # Optimize common cases.
+    *644) cp_umask=133;;
+    *755) cp_umask=22;;
+
+    *[0-7])
+      if test -z &quot;$stripcmd&quot;; then
+        u_plus_rw=
+      else
+        u_plus_rw='% 200'
+      fi
+      cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
+    *)
+      if test -z &quot;$stripcmd&quot;; then
+        u_plus_rw=
+      else
+        u_plus_rw=,u+rw
+      fi
+      cp_umask=$mode$u_plus_rw;;
+  esac
+fi
+
+for src
+do
+  # Protect names starting with `-'.
+  case $src in
+    -*) src=./$src ;;
+  esac
+
+  if test -n &quot;$dir_arg&quot;; then
+    dst=$src
+    dstdir=$dst
+    test -d &quot;$dstdir&quot;
+    dstdir_status=$?
+  else
+
+    # Waiting for this to be detected by the &quot;$cpprog $src $dsttmp&quot; command
+    # might cause directories to be created, which would be especially bad
+    # if $src (and thus $dsttmp) contains '*'.
+    if test ! -f &quot;$src&quot; &amp;&amp; test ! -d &quot;$src&quot;; then
+      echo &quot;$0: $src does not exist.&quot; &gt;&amp;2
+      exit 1
+    fi
+
+    if test -z &quot;$dstarg&quot;; then
+      echo &quot;$0: no destination specified.&quot; &gt;&amp;2
+      exit 1
+    fi
+
+    dst=$dstarg
+    # Protect names starting with `-'.
+    case $dst in
+      -*) dst=./$dst ;;
+    esac
+
+    # If destination is a directory, append the input filename; won't work
+    # if double slashes aren't ignored.
+    if test -d &quot;$dst&quot;; then
+      if test -n &quot;$no_target_directory&quot;; then
+        echo &quot;$0: $dstarg: Is a directory&quot; &gt;&amp;2
+        exit 1
+      fi
+      dstdir=$dst
+      dst=$dstdir/`basename &quot;$src&quot;`
+      dstdir_status=0
+    else
+      # Prefer dirname, but fall back on a substitute if dirname fails.
+      dstdir=`
+        (dirname &quot;$dst&quot;) 2&gt;/dev/null ||
+        expr X&quot;$dst&quot; : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
+             X&quot;$dst&quot; : 'X\(//\)[^/]' \| \
+             X&quot;$dst&quot; : 'X\(//\)$' \| \
+             X&quot;$dst&quot; : 'X\(/\)' \| . 2&gt;/dev/null ||
+        echo X&quot;$dst&quot; |
+            sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
+                   s//\1/
+                   q
+                 }
+                 /^X\(\/\/\)[^/].*/{
+                   s//\1/
+                   q
+                 }
+                 /^X\(\/\/\)$/{
+                   s//\1/
+                   q
+                 }
+                 /^X\(\/\).*/{
+                   s//\1/
+                   q
+                 }
+                 s/.*/./; q'
+      `
+
+      test -d &quot;$dstdir&quot;
+      dstdir_status=$?
+    fi
+  fi
+
+  obsolete_mkdir_used=false
+
+  if test $dstdir_status != 0; then
+    case $posix_mkdir in
+      '')
+        # Create intermediate dirs using mode 755 as modified by the umask.
+        # This is like FreeBSD 'install' as of 1997-10-28.
+        umask=`umask`
+        case $stripcmd.$umask in
+          # Optimize common cases.
+          *[2367][2367]) mkdir_umask=$umask;;
+          .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
+
+          *[0-7])
+            mkdir_umask=`expr $umask + 22 \
+              - $umask % 100 % 40 + $umask % 20 \
+              - $umask % 10 % 4 + $umask % 2
+            `;;
+          *) mkdir_umask=$umask,go-w;;
+        esac
+
+        # With -d, create the new directory with the user-specified mode.
+        # Otherwise, rely on $mkdir_umask.
+        if test -n &quot;$dir_arg&quot;; then
+          mkdir_mode=-m$mode
+        else
+          mkdir_mode=
+        fi
+
+        posix_mkdir=false
+        case $umask in
+          *[123567][0-7][0-7])
+            # POSIX mkdir -p sets u+wx bits regardless of umask, which
+            # is incompatible with FreeBSD 'install' when (umask &amp; 300) != 0.
+            ;;
+          *)
+            tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
+            trap 'ret=$?; rmdir &quot;$tmpdir/d&quot; &quot;$tmpdir&quot; 2&gt;/dev/null; exit $ret' 0
+
+            if (umask $mkdir_umask &amp;&amp;
+                exec $mkdirprog $mkdir_mode -p -- &quot;$tmpdir/d&quot;) &gt;/dev/null 2&gt;&amp;1
+            then
+              if test -z &quot;$dir_arg&quot; || {
+                   # Check for POSIX incompatibilities with -m.
+                   # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
+                   # other-writeable bit of parent directory when it shouldn't.
+                   # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
+                   ls_ld_tmpdir=`ls -ld &quot;$tmpdir&quot;`
+                   case $ls_ld_tmpdir in
+                     d????-?r-*) different_mode=700;;
+                     d????-?--*) different_mode=755;;
+                     *) false;;
+                   esac &amp;&amp;
+                   $mkdirprog -m$different_mode -p -- &quot;$tmpdir&quot; &amp;&amp; {
+                     ls_ld_tmpdir_1=`ls -ld &quot;$tmpdir&quot;`
+                     test &quot;$ls_ld_tmpdir&quot; = &quot;$ls_ld_tmpdir_1&quot;
+                   }
+                 }
+              then posix_mkdir=:
+              fi
+              rmdir &quot;$tmpdir/d&quot; &quot;$tmpdir&quot;
+            else
+              # Remove any dirs left behind by ancient mkdir implementations.
+              rmdir ./$mkdir_mode ./-p ./-- 2&gt;/dev/null
+            fi
+            trap '' 0;;
+        esac;;
+    esac
+
+    if
+      $posix_mkdir &amp;&amp; (
+        umask $mkdir_umask &amp;&amp;
+        $doit_exec $mkdirprog $mkdir_mode -p -- &quot;$dstdir&quot;
+      )
+    then :
+    else
+
+      # The umask is ridiculous, or mkdir does not conform to POSIX,
+      # or it failed possibly due to a race condition.  Create the
+      # directory the slow way, step by step, checking for races as we go.
+
+      case $dstdir in
+        /*) prefix=/ ;;
+        -*) prefix=./ ;;
+        *)  prefix= ;;
+      esac
+
+      case $posix_glob in
+        '')
+          if (set -f) 2&gt;/dev/null; then
+            posix_glob=true
+          else
+            posix_glob=false
+          fi ;;
+      esac
+
+      oIFS=$IFS
+      IFS=/
+      $posix_glob &amp;&amp; set -f
+      set fnord $dstdir
+      shift
+      $posix_glob &amp;&amp; set +f
+      IFS=$oIFS
+
+      prefixes=
+
+      for d
+      do
+        test -z &quot;$d&quot; &amp;&amp; continue
+
+        prefix=$prefix$d
+        if test -d &quot;$prefix&quot;; then
+          prefixes=
+        else
+          if $posix_mkdir; then
+            (umask=$mkdir_umask &amp;&amp;
+             $doit_exec $mkdirprog $mkdir_mode -p -- &quot;$dstdir&quot;) &amp;&amp; break
+            # Don't fail if two instances are running concurrently.
+            test -d &quot;$prefix&quot; || exit 1
+          else
+            case $prefix in
+              *\'*) qprefix=`echo &quot;$prefix&quot; | sed &quot;s/'/'\\\\\\\\''/g&quot;`;;
+              *) qprefix=$prefix;;
+            esac
+            prefixes=&quot;$prefixes '$qprefix'&quot;
+          fi
+        fi
+        prefix=$prefix/
+      done
+
+      if test -n &quot;$prefixes&quot;; then
+        # Don't fail if two instances are running concurrently.
+        (umask $mkdir_umask &amp;&amp;
+         eval &quot;\$doit_exec \$mkdirprog $prefixes&quot;) ||
+          test -d &quot;$dstdir&quot; || exit 1
+        obsolete_mkdir_used=true
+      fi
+    fi
+  fi
+
+  if test -n &quot;$dir_arg&quot;; then
+    { test -z &quot;$chowncmd&quot; || $doit $chowncmd &quot;$dst&quot;; } &amp;&amp;
+    { test -z &quot;$chgrpcmd&quot; || $doit $chgrpcmd &quot;$dst&quot;; } &amp;&amp;
+    { test &quot;$obsolete_mkdir_used$chowncmd$chgrpcmd&quot; = false ||
+      test -z &quot;$chmodcmd&quot; || $doit $chmodcmd $mode &quot;$dst&quot;; } || exit 1
+  else
+
+    # Make a couple of temp file names in the proper directory.
+    dsttmp=$dstdir/_inst.$$_
+    rmtmp=$dstdir/_rm.$$_
+
+    # Trap to clean up those temp files at exit.
+    trap 'ret=$?; rm -f &quot;$dsttmp&quot; &quot;$rmtmp&quot; &amp;&amp; exit $ret' 0
+
+    # Copy the file name to the temp name.
+    (umask $cp_umask &amp;&amp; $doit_exec $cpprog &quot;$src&quot; &quot;$dsttmp&quot;) &amp;&amp;
+
+    # and set any options; do chmod last to preserve setuid bits.
+    #
+    # If any of these fail, we abort the whole thing.  If we want to
+    # ignore errors from any of these, just make sure not to ignore
+    # errors from the above &quot;$doit $cpprog $src $dsttmp&quot; command.
+    #
+    { test -z &quot;$chowncmd&quot; || $doit $chowncmd &quot;$dsttmp&quot;; } \
+      &amp;&amp; { test -z &quot;$chgrpcmd&quot; || $doit $chgrpcmd &quot;$dsttmp&quot;; } \
+      &amp;&amp; { test -z &quot;$stripcmd&quot; || $doit $stripcmd &quot;$dsttmp&quot;; } \
+      &amp;&amp; { test -z &quot;$chmodcmd&quot; || $doit $chmodcmd $mode &quot;$dsttmp&quot;; } &amp;&amp;
+
+    # Now rename the file to the real destination.
+    { $doit $mvcmd -f &quot;$dsttmp&quot; &quot;$dst&quot; 2&gt;/dev/null \
+      || {
+           # The rename failed, perhaps because mv can't rename something else
+           # to itself, or perhaps because mv is so ancient that it does not
+           # support -f.
+
+           # Now remove or move aside any old file at destination location.
+           # We try this two ways since rm can't unlink itself on some
+           # systems and the destination file might be busy for other
+           # reasons.  In this case, the final cleanup might fail but the new
+           # file should still install successfully.
+           {
+             if test -f &quot;$dst&quot;; then
+               $doit $rmcmd -f &quot;$dst&quot; 2&gt;/dev/null \
+               || { $doit $mvcmd -f &quot;$dst&quot; &quot;$rmtmp&quot; 2&gt;/dev/null \
+                     &amp;&amp; { $doit $rmcmd -f &quot;$rmtmp&quot; 2&gt;/dev/null; :; }; }\
+               || {
+                 echo &quot;$0: cannot unlink or rename $dst&quot; &gt;&amp;2
+                 (exit 1); exit 1
+               }
+             else
+               :
+             fi
+           } &amp;&amp;
+
+           # Now rename the file to the real destination.
+           $doit $mvcmd &quot;$dsttmp&quot; &quot;$dst&quot;
+         }
+    } || exit 1
+
+    trap '' 0
+  fi
+done
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: &quot;scriptversion=&quot;
+# time-stamp-format: &quot;%:y-%02m-%02d.%02H&quot;
+# time-stamp-end: &quot;$&quot;
+# End:
</ins><span class="cx">Property changes on: trunk/dports/gnome/gnotify/files/install-sh
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:executable
</span><span class="cx">   + *
</span></span></pre></div>
<a id="trunkdportsgnomegnotifyfilesmissing"></a>
<div class="addfile"><h4>Added: trunk/dports/gnome/gnotify/files/missing (0 => 27400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gnome/gnotify/files/missing                                (rev 0)
+++ trunk/dports/gnome/gnotify/files/missing        2007-08-02 13:38:37 UTC (rev 27400)
</span><span class="lines">@@ -0,0 +1,367 @@
</span><ins>+#! /bin/sh
+# Common stub for a few missing GNU programs while installing.
+
+scriptversion=2006-05-10.23
+
+# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006
+#   Free Software Foundation, Inc.
+# Originally by Fran,cois Pinard &lt;pinard@iro.umontreal.ca&gt;, 1996.
+
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2, or (at your option)
+# any later version.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
+# 02110-1301, USA.
+
+# As a special exception to the GNU General Public License, if you
+# distribute this file as part of a program that contains a
+# configuration script generated by Autoconf, you may include it under
+# the same distribution terms that you use for the rest of that program.
+
+if test $# -eq 0; then
+  echo 1&gt;&amp;2 &quot;Try \`$0 --help' for more information&quot;
+  exit 1
+fi
+
+run=:
+sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
+sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
+
+# In the cases where this matters, `missing' is being run in the
+# srcdir already.
+if test -f configure.ac; then
+  configure_ac=configure.ac
+else
+  configure_ac=configure.in
+fi
+
+msg=&quot;missing on your system&quot;
+
+case $1 in
+--run)
+  # Try to run requested program, and just exit if it succeeds.
+  run=
+  shift
+  &quot;$@&quot; &amp;&amp; exit 0
+  # Exit code 63 means version mismatch.  This often happens
+  # when the user try to use an ancient version of a tool on
+  # a file that requires a minimum version.  In this case we
+  # we should proceed has if the program had been absent, or
+  # if --run hadn't been passed.
+  if test $? = 63; then
+    run=:
+    msg=&quot;probably too old&quot;
+  fi
+  ;;
+
+  -h|--h|--he|--hel|--help)
+    echo &quot;\
+$0 [OPTION]... PROGRAM [ARGUMENT]...
+
+Handle \`PROGRAM [ARGUMENT]...' for when PROGRAM is missing, or return an
+error status if there is no known handling for PROGRAM.
+
+Options:
+  -h, --help      display this help and exit
+  -v, --version   output version information and exit
+  --run           try to run the given command, and emulate it if it fails
+
+Supported PROGRAM values:
+  aclocal      touch file \`aclocal.m4'
+  autoconf     touch file \`configure'
+  autoheader   touch file \`config.h.in'
+  autom4te     touch the output file, or create a stub one
+  automake     touch all \`Makefile.in' files
+  bison        create \`y.tab.[ch]', if possible, from existing .[ch]
+  flex         create \`lex.yy.c', if possible, from existing .c
+  help2man     touch the output file
+  lex          create \`lex.yy.c', if possible, from existing .c
+  makeinfo     touch the output file
+  tar          try tar, gnutar, gtar, then tar without non-portable flags
+  yacc         create \`y.tab.[ch]', if possible, from existing .[ch]
+
+Send bug reports to &lt;bug-automake@gnu.org&gt;.&quot;
+    exit $?
+    ;;
+
+  -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
+    echo &quot;missing $scriptversion (GNU Automake)&quot;
+    exit $?
+    ;;
+
+  -*)
+    echo 1&gt;&amp;2 &quot;$0: Unknown \`$1' option&quot;
+    echo 1&gt;&amp;2 &quot;Try \`$0 --help' for more information&quot;
+    exit 1
+    ;;
+
+esac
+
+# Now exit if we have it, but it failed.  Also exit now if we
+# don't have it and --version was passed (most likely to detect
+# the program).
+case $1 in
+  lex|yacc)
+    # Not GNU programs, they don't have --version.
+    ;;
+
+  tar)
+    if test -n &quot;$run&quot;; then
+       echo 1&gt;&amp;2 &quot;ERROR: \`tar' requires --run&quot;
+       exit 1
+    elif test &quot;x$2&quot; = &quot;x--version&quot; || test &quot;x$2&quot; = &quot;x--help&quot;; then
+       exit 1
+    fi
+    ;;
+
+  *)
+    if test -z &quot;$run&quot; &amp;&amp; ($1 --version) &gt; /dev/null 2&gt;&amp;1; then
+       # We have it, but it failed.
+       exit 1
+    elif test &quot;x$2&quot; = &quot;x--version&quot; || test &quot;x$2&quot; = &quot;x--help&quot;; then
+       # Could not run --version or --help.  This is probably someone
+       # running `$TOOL --version' or `$TOOL --help' to check whether
+       # $TOOL exists and not knowing $TOOL uses missing.
+       exit 1
+    fi
+    ;;
+esac
+
+# If it does not exist, or fails to run (possibly an outdated version),
+# try to emulate it.
+case $1 in
+  aclocal*)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified \`acinclude.m4' or \`${configure_ac}'.  You might want
+         to install the \`Automake' and \`Perl' packages.  Grab them from
+         any GNU archive site.&quot;
+    touch aclocal.m4
+    ;;
+
+  autoconf)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified \`${configure_ac}'.  You might want to install the
+         \`Autoconf' and \`GNU m4' packages.  Grab them from any GNU
+         archive site.&quot;
+    touch configure
+    ;;
+
+  autoheader)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified \`acconfig.h' or \`${configure_ac}'.  You might want
+         to install the \`Autoconf' and \`GNU m4' packages.  Grab them
+         from any GNU archive site.&quot;
+    files=`sed -n 's/^[ ]*A[CM]_CONFIG_HEADER(\([^)]*\)).*/\1/p' ${configure_ac}`
+    test -z &quot;$files&quot; &amp;&amp; files=&quot;config.h&quot;
+    touch_files=
+    for f in $files; do
+      case $f in
+      *:*) touch_files=&quot;$touch_files &quot;`echo &quot;$f&quot; |
+                                       sed -e 's/^[^:]*://' -e 's/:.*//'`;;
+      *) touch_files=&quot;$touch_files $f.in&quot;;;
+      esac
+    done
+    touch $touch_files
+    ;;
+
+  automake*)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
+         You might want to install the \`Automake' and \`Perl' packages.
+         Grab them from any GNU archive site.&quot;
+    find . -type f -name Makefile.am -print |
+           sed 's/\.am$/.in/' |
+           while read f; do touch &quot;$f&quot;; done
+    ;;
+
+  autom4te)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is needed, but is $msg.
+         You might have modified some files without having the
+         proper tools for further handling them.
+         You can get \`$1' as part of \`Autoconf' from any GNU
+         archive site.&quot;
+
+    file=`echo &quot;$*&quot; | sed -n &quot;$sed_output&quot;`
+    test -z &quot;$file&quot; &amp;&amp; file=`echo &quot;$*&quot; | sed -n &quot;$sed_minuso&quot;`
+    if test -f &quot;$file&quot;; then
+        touch $file
+    else
+        test -z &quot;$file&quot; || exec &gt;$file
+        echo &quot;#! /bin/sh&quot;
+        echo &quot;# Created by GNU Automake missing as a replacement of&quot;
+        echo &quot;#  $ $@&quot;
+        echo &quot;exit 0&quot;
+        chmod +x $file
+        exit 1
+    fi
+    ;;
+
+  bison|yacc)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' $msg.  You should only need it if
+         you modified a \`.y' file.  You may need the \`Bison' package
+         in order for those modifications to take effect.  You can get
+         \`Bison' from any GNU archive site.&quot;
+    rm -f y.tab.c y.tab.h
+    if test $# -ne 1; then
+        eval LASTARG=&quot;\${$#}&quot;
+        case $LASTARG in
+        *.y)
+            SRCFILE=`echo &quot;$LASTARG&quot; | sed 's/y$/c/'`
+            if test -f &quot;$SRCFILE&quot;; then
+                 cp &quot;$SRCFILE&quot; y.tab.c
+            fi
+            SRCFILE=`echo &quot;$LASTARG&quot; | sed 's/y$/h/'`
+            if test -f &quot;$SRCFILE&quot;; then
+                 cp &quot;$SRCFILE&quot; y.tab.h
+            fi
+          ;;
+        esac
+    fi
+    if test ! -f y.tab.h; then
+        echo &gt;y.tab.h
+    fi
+    if test ! -f y.tab.c; then
+        echo 'main() { return 0; }' &gt;y.tab.c
+    fi
+    ;;
+
+  lex|flex)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified a \`.l' file.  You may need the \`Flex' package
+         in order for those modifications to take effect.  You can get
+         \`Flex' from any GNU archive site.&quot;
+    rm -f lex.yy.c
+    if test $# -ne 1; then
+        eval LASTARG=&quot;\${$#}&quot;
+        case $LASTARG in
+        *.l)
+            SRCFILE=`echo &quot;$LASTARG&quot; | sed 's/l$/c/'`
+            if test -f &quot;$SRCFILE&quot;; then
+                 cp &quot;$SRCFILE&quot; lex.yy.c
+            fi
+          ;;
+        esac
+    fi
+    if test ! -f lex.yy.c; then
+        echo 'main() { return 0; }' &gt;lex.yy.c
+    fi
+    ;;
+
+  help2man)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified a dependency of a manual page.  You may need the
+         \`Help2man' package in order for those modifications to take
+         effect.  You can get \`Help2man' from any GNU archive site.&quot;
+
+    file=`echo &quot;$*&quot; | sed -n &quot;$sed_output&quot;`
+    test -z &quot;$file&quot; &amp;&amp; file=`echo &quot;$*&quot; | sed -n &quot;$sed_minuso&quot;`
+    if test -f &quot;$file&quot;; then
+        touch $file
+    else
+        test -z &quot;$file&quot; || exec &gt;$file
+        echo &quot;.ab help2man is required to generate this page&quot;
+        exit 1
+    fi
+    ;;
+
+  makeinfo)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is $msg.  You should only need it if
+         you modified a \`.texi' or \`.texinfo' file, or any other file
+         indirectly affecting the aspect of the manual.  The spurious
+         call might also be the consequence of using a buggy \`make' (AIX,
+         DU, IRIX).  You might want to install the \`Texinfo' package or
+         the \`GNU make' package.  Grab either from any GNU archive site.&quot;
+    # The file to touch is that specified with -o ...
+    file=`echo &quot;$*&quot; | sed -n &quot;$sed_output&quot;`
+    test -z &quot;$file&quot; &amp;&amp; file=`echo &quot;$*&quot; | sed -n &quot;$sed_minuso&quot;`
+    if test -z &quot;$file&quot;; then
+      # ... or it is the one specified with @setfilename ...
+      infile=`echo &quot;$*&quot; | sed 's/.* \([^ ]*\) *$/\1/'`
+      file=`sed -n '
+        /^@setfilename/{
+          s/.* \([^ ]*\) *$/\1/
+          p
+          q
+        }' $infile`
+      # ... or it is derived from the source name (dir/f.texi becomes f.info)
+      test -z &quot;$file&quot; &amp;&amp; file=`echo &quot;$infile&quot; | sed 's,.*/,,;s,.[^.]*$,,'`.info
+    fi
+    # If the file does not exist, the user really needs makeinfo;
+    # let's fail without touching anything.
+    test -f $file || exit 1
+    touch $file
+    ;;
+
+  tar)
+    shift
+
+    # We have already tried tar in the generic part.
+    # Look for gnutar/gtar before invocation to avoid ugly error
+    # messages.
+    if (gnutar --version &gt; /dev/null 2&gt;&amp;1); then
+       gnutar &quot;$@&quot; &amp;&amp; exit 0
+    fi
+    if (gtar --version &gt; /dev/null 2&gt;&amp;1); then
+       gtar &quot;$@&quot; &amp;&amp; exit 0
+    fi
+    firstarg=&quot;$1&quot;
+    if shift; then
+        case $firstarg in
+        *o*)
+            firstarg=`echo &quot;$firstarg&quot; | sed s/o//`
+            tar &quot;$firstarg&quot; &quot;$@&quot; &amp;&amp; exit 0
+            ;;
+        esac
+        case $firstarg in
+        *h*)
+            firstarg=`echo &quot;$firstarg&quot; | sed s/h//`
+            tar &quot;$firstarg&quot; &quot;$@&quot; &amp;&amp; exit 0
+            ;;
+        esac
+    fi
+
+    echo 1&gt;&amp;2 &quot;\
+WARNING: I can't seem to be able to run \`tar' with the given arguments.
+         You may want to install GNU tar or Free paxutils, or check the
+         command line arguments.&quot;
+    exit 1
+    ;;
+
+  *)
+    echo 1&gt;&amp;2 &quot;\
+WARNING: \`$1' is needed, and is $msg.
+         You might have modified some files without having the
+         proper tools for further handling them.  Check the \`README' file,
+         it often tells you about the needed prerequisites for installing
+         this package.  You may also peek at any GNU archive site, in case
+         some other package would contain this missing \`$1' program.&quot;
+    exit 1
+    ;;
+esac
+
+exit 0
+
+# Local variables:
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: &quot;scriptversion=&quot;
+# time-stamp-format: &quot;%:y-%02m-%02d.%02H&quot;
+# time-stamp-end: &quot;$&quot;
+# End:
</ins><span class="cx">Property changes on: trunk/dports/gnome/gnotify/files/missing
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:executable
</span><span class="cx">   + *
</span></span></pre></div>
<a id="trunkdportsgnomegnotifyfilesmkinstalldirs"></a>
<div class="addfile"><h4>Added: trunk/dports/gnome/gnotify/files/mkinstalldirs (0 => 27400)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/dports/gnome/gnotify/files/mkinstalldirs                                (rev 0)
+++ trunk/dports/gnome/gnotify/files/mkinstalldirs        2007-08-02 13:38:37 UTC (rev 27400)
</span><span class="lines">@@ -0,0 +1,161 @@
</span><ins>+#! /bin/sh
+# mkinstalldirs --- make directory hierarchy
+
+scriptversion=2006-05-11.19
+
+# Original author: Noah Friedman &lt;friedman@prep.ai.mit.edu&gt;
+# Created: 1993-05-16
+# Public domain.
+#
+# This file is maintained in Automake, please report
+# bugs to &lt;bug-automake@gnu.org&gt; or send patches to
+# &lt;automake-patches@gnu.org&gt;.
+
+nl='
+'
+IFS=&quot; &quot;&quot;        $nl&quot;
+errstatus=0
+dirmode=
+
+usage=&quot;\
+Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
+
+Create each directory DIR (with mode MODE, if specified), including all
+leading file name components.
+
+Report bugs to &lt;bug-automake@gnu.org&gt;.&quot;
+
+# process command line arguments
+while test $# -gt 0 ; do
+  case $1 in
+    -h | --help | --h*)         # -h for help
+      echo &quot;$usage&quot;
+      exit $?
+      ;;
+    -m)                         # -m PERM arg
+      shift
+      test $# -eq 0 &amp;&amp; { echo &quot;$usage&quot; 1&gt;&amp;2; exit 1; }
+      dirmode=$1
+      shift
+      ;;
+    --version)
+      echo &quot;$0 $scriptversion&quot;
+      exit $?
+      ;;
+    --)                         # stop option processing
+      shift
+      break
+      ;;
+    -*)                         # unknown option
+      echo &quot;$usage&quot; 1&gt;&amp;2
+      exit 1
+      ;;
+    *)                          # first non-opt arg
+      break
+      ;;
+  esac
+done
+
+for file
+do
+  if test -d &quot;$file&quot;; then
+    shift
+  else
+    break
+  fi
+done
+
+case $# in
+  0) exit 0 ;;
+esac
+
+# Solaris 8's mkdir -p isn't thread-safe.  If you mkdir -p a/b and
+# mkdir -p a/c at the same time, both will detect that a is missing,
+# one will create a, then the other will try to create a and die with
+# a &quot;File exists&quot; error.  This is a problem when calling mkinstalldirs
+# from a parallel make.  We use --version in the probe to restrict
+# ourselves to GNU mkdir, which is thread-safe.
+case $dirmode in
+  '')
+    if mkdir -p --version . &gt;/dev/null 2&gt;&amp;1 &amp;&amp; test ! -d ./--version; then
+      echo &quot;mkdir -p -- $*&quot;
+      exec mkdir -p -- &quot;$@&quot;
+    else
+      # On NextStep and OpenStep, the `mkdir' command does not
+      # recognize any option.  It will interpret all options as
+      # directories to create, and then abort because `.' already
+      # exists.
+      test -d ./-p &amp;&amp; rmdir ./-p
+      test -d ./--version &amp;&amp; rmdir ./--version
+    fi
+    ;;
+  *)
+    if mkdir -m &quot;$dirmode&quot; -p --version . &gt;/dev/null 2&gt;&amp;1 &amp;&amp;
+       test ! -d ./--version; then
+      echo &quot;mkdir -m $dirmode -p -- $*&quot;
+      exec mkdir -m &quot;$dirmode&quot; -p -- &quot;$@&quot;
+    else
+      # Clean up after NextStep and OpenStep mkdir.
+      for d in ./-m ./-p ./--version &quot;./$dirmode&quot;;
+      do
+        test -d $d &amp;&amp; rmdir $d
+      done
+    fi
+    ;;
+esac
+
+for file
+do
+  case $file in
+    /*) pathcomp=/ ;;
+    *)  pathcomp= ;;
+  esac
+  oIFS=$IFS
+  IFS=/
+  set fnord $file
+  shift
+  IFS=$oIFS
+
+  for d
+  do
+    test &quot;x$d&quot; = x &amp;&amp; continue
+
+    pathcomp=$pathcomp$d
+    case $pathcomp in
+      -*) pathcomp=./$pathcomp ;;
+    esac
+
+    if test ! -d &quot;$pathcomp&quot;; then
+      echo &quot;mkdir $pathcomp&quot;
+
+      mkdir &quot;$pathcomp&quot; || lasterr=$?
+
+      if test ! -d &quot;$pathcomp&quot;; then
+        errstatus=$lasterr
+      else
+        if test ! -z &quot;$dirmode&quot;; then
+          echo &quot;chmod $dirmode $pathcomp&quot;
+          lasterr=
+          chmod &quot;$dirmode&quot; &quot;$pathcomp&quot; || lasterr=$?
+
+          if test ! -z &quot;$lasterr&quot;; then
+            errstatus=$lasterr
+          fi
+        fi
+      fi
+    fi
+
+    pathcomp=$pathcomp/
+  done
+done
+
+exit $errstatus
+
+# Local Variables:
+# mode: shell-script
+# sh-indentation: 2
+# eval: (add-hook 'write-file-hooks 'time-stamp)
+# time-stamp-start: &quot;scriptversion=&quot;
+# time-stamp-format: &quot;%:y-%02m-%02d.%02H&quot;
+# time-stamp-end: &quot;$&quot;
+# End:
</ins><span class="cx">Property changes on: trunk/dports/gnome/gnotify/files/mkinstalldirs
</span><span class="cx">___________________________________________________________________
</span><span class="cx">Name: svn:executable
</span><span class="cx">   + *
</span></span></pre>
</div>
</div>

</body>
</html>