1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/devel/cvs-devel/files/patch-ext_expansion
Edwin Groothuis dc2ba353b6 [new port] devel/cvs-devel 1.12.13_8
Latest upstream/feature release, similar to Debian, see the
        ChangeLog excerpts available at
        http://cto.homelinux.net/usr/ports/devel/cvs-devel/ChangeLog page.

        This feature release/version, I think, would be quite useful
        for all those users who want to share and, or transfer their
        existing CVS repositories from Linux to FreeBSD machines.

PR:             ports/118033
Submitted by:   Balwinder S Dheeman <bdheeman@gmail.com>
2008-05-26 04:58:42 +00:00

30 lines
1.1 KiB
Plaintext

#
# Make the "ext" method more intelligent; allow specification of the
# "rsh" command using ext=<command>. Extended to recognise "extssh" the
# same way as "ext=ssh"
#
# Original patch by Inaky Perez-Gonzalez <inaky.perez-gonzalez@intel.com>,
# extension by Steve McIntyre <steve@einval.com>. Bugs #165432 and #276328
diff -Nur src/root.c.orig src/root.c
--- src/root.c.orig 2006-05-05 23:35:40.000000000 +0800
+++ src/root.c 2006-05-05 23:34:12.000000000 +0800
@@ -553,6 +547,18 @@
newroot->method = gserver_method;
else if (!strcasecmp (method, "server"))
newroot->method = server_method;
+ else if (strncmp (method, "ext=", 4) == 0)
+ {
+ const char *rsh = method + 4;
+ setenv ("CVS_RSH", rsh, 1); /* This is a hack, but simplifies */
+ newroot->method = ext_method;
+ }
+ else if (strncmp (method, "extssh", 6) == 0)
+ {
+ const char *rsh = method + 3;
+ setenv ("CVS_RSH", rsh, 1); /* This is a hack, but simplifies */
+ newroot->method = ext_method;
+ }
else if (!strcasecmp (method, "ext"))
newroot->method = ext_method;
else if (!strcasecmp (method, "fork"))