[csw-devel] SF.net SVN: gar:[6439] csw/mgar/pkg/git/trunk

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Sep 24 04:21:11 CEST 2009


Revision: 6439
          http://gar.svn.sourceforge.net/gar/?rev=6439&view=rev
Author:   bdwalton
Date:     2009-09-24 02:21:11 +0000 (Thu, 24 Sep 2009)

Log Message:
-----------
git: postinstallation register of git-daemon service in /etc/services

Modified Paths:
--------------
    csw/mgar/pkg/git/trunk/checksums
    csw/mgar/pkg/git/trunk/files/CSWgit.postinstall

Modified: csw/mgar/pkg/git/trunk/checksums
===================================================================
--- csw/mgar/pkg/git/trunk/checksums	2009-09-24 01:42:43 UTC (rev 6438)
+++ csw/mgar/pkg/git/trunk/checksums	2009-09-24 02:21:11 UTC (rev 6439)
@@ -1 +1 @@
-76a83b807edbcc41a01d3792d4a0322d  download/CSWgit.postinstall
+6c2d8cf8dcdfc844ea32bc381f6a3bfd  download/CSWgit.postinstall

Modified: csw/mgar/pkg/git/trunk/files/CSWgit.postinstall
===================================================================
--- csw/mgar/pkg/git/trunk/files/CSWgit.postinstall	2009-09-24 01:42:43 UTC (rev 6438)
+++ csw/mgar/pkg/git/trunk/files/CSWgit.postinstall	2009-09-24 02:21:11 UTC (rev 6439)
@@ -3,9 +3,16 @@
 GC_OLD="$PKG_INSTALL_ROOT/opt/csw/etc/gitconfig"
 GC_NEW="$PKG_INSTALL_ROOT/etc/opt/csw/gitconfig"
 
-# this will hopefully ease the /opt/csw/etc -> /etc/opt/csw
-# transition.
+# ease the /opt/csw/etc -> /etc/opt/csw transition.
 if [ -f "$GC_OLD" -a ! -f "$GC_NEW" ]; then
    echo "Copying /opt/csw/etc/gitconfig to /etc/opt/csw/gitconfig"
    cp -p "$GC_OLD" "$GC_NEW"
 fi
+
+/usr/xpg4/bin/grep -q CSWgit /etc/services
+if [ $? -ne 0 ]; then
+    echo <<EOF >>/etc/services
+git             9418/tcp                        # CSWgit: git transfer service
+git             9418/udp                        # CSWgit: git transfer service
+EOF
+fi


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list