diff options
author | tron <tron> | 1999-03-11 09:48:43 +0000 |
---|---|---|
committer | tron <tron> | 1999-03-11 09:48:43 +0000 |
commit | 67ffd1256def11eb5c4b0cf93917689d2495dca9 (patch) | |
tree | 87527e3905c6f17fd914d67ec00cea0dfc14987d /devel/cvs | |
parent | 4a62d26e7a2f9f66c6ddacf3fc6b185b808d5f2e (diff) | |
download | pkgsrc-67ffd1256def11eb5c4b0cf93917689d2495dca9.tar.gz |
Add support for read only CVS repositories derived from OpenBSD.
Diffstat (limited to 'devel/cvs')
-rw-r--r-- | devel/cvs/patches/patch-ag | 21 | ||||
-rw-r--r-- | devel/cvs/patches/patch-ah | 13 | ||||
-rw-r--r-- | devel/cvs/patches/patch-ai | 32 | ||||
-rw-r--r-- | devel/cvs/patches/patch-aj | 13 |
4 files changed, 79 insertions, 0 deletions
diff --git a/devel/cvs/patches/patch-ag b/devel/cvs/patches/patch-ag new file mode 100644 index 00000000000..174140d04cd --- /dev/null +++ b/devel/cvs/patches/patch-ag @@ -0,0 +1,21 @@ +$NetBSD: patch-ag,v 1.1 1999/03/11 09:48:43 tron Exp $ + +--- src/cvs.h.orig Mon Jul 27 04:54:11 1998 ++++ src/cvs.h Thu Mar 11 10:39:14 1999 +@@ -256,6 +256,8 @@ + #define CVSREAD_ENV "CVSREAD" /* make files read-only */ + #define CVSREAD_DFLT 0 /* writable files by default */ + ++#define CVSREADONLYFS_ENV "CVSREADONLYFS" /* repository is read-only */ ++ + #define TMPDIR_ENV "TMPDIR" /* Temporary directory */ + /* #define TMPDIR_DFLT Set by options.h */ + +@@ -383,6 +385,7 @@ + + extern int trace; /* Show all commands */ + extern int noexec; /* Don't modify disk anywhere */ ++extern int readonlyfs; /* fail on all write locks; succeed all read locks */ + extern int logoff; /* Don't write history entry */ + + extern int top_level_admin; diff --git a/devel/cvs/patches/patch-ah b/devel/cvs/patches/patch-ah new file mode 100644 index 00000000000..e3311b55049 --- /dev/null +++ b/devel/cvs/patches/patch-ah @@ -0,0 +1,13 @@ +$NetBSD: patch-ah,v 1.1 1999/03/11 09:48:43 tron Exp $ + +--- src/lock.c.orig Wed Mar 4 06:41:50 1998 ++++ src/lock.c Thu Mar 11 10:40:35 1999 +@@ -243,7 +243,7 @@ + FILE *fp; + char *tmp; + +- if (noexec) ++ if (noexec|| readonlyfs) + return (0); + + /* we only do one directory at a time for read locks! */ diff --git a/devel/cvs/patches/patch-ai b/devel/cvs/patches/patch-ai new file mode 100644 index 00000000000..f22ab5610a2 --- /dev/null +++ b/devel/cvs/patches/patch-ai @@ -0,0 +1,32 @@ +$NetBSD: patch-ai,v 1.1 1999/03/11 09:48:43 tron Exp $ + +--- src/main.c.orig Thu Aug 13 00:39:33 1998 ++++ src/main.c Thu Mar 11 10:38:24 1999 +@@ -40,6 +40,7 @@ + int quiet = 0; + int trace = 0; + int noexec = 0; ++int readonlyfs = 1; + int logoff = 0; + + /* Set if we should be writing CVSADM directories at top level. At +@@ -456,6 +457,10 @@ + } + if (getenv (CVSREAD_ENV) != NULL) + cvswrite = 0; ++ if (getenv (CVSREADONLYFS_ENV)) { ++ readonlyfs = 1; ++ logoff = 1; ++ } + + /* Set this to 0 to force getopt initialization. getopt() sets + this to 1 internally. */ +@@ -823,7 +828,7 @@ + } + (void) strcat (path, "/"); + (void) strcat (path, CVSROOTADM_HISTORY); +- if (isfile (path) && !isaccessible (path, R_OK | W_OK)) ++ if (!readonlyfs && isfile (path) && !isaccessible (path, R_OK | W_OK)) + { + save_errno = errno; + error (0, 0, "Sorry, you don't have read/write access to the history file"); diff --git a/devel/cvs/patches/patch-aj b/devel/cvs/patches/patch-aj new file mode 100644 index 00000000000..921f2b753b9 --- /dev/null +++ b/devel/cvs/patches/patch-aj @@ -0,0 +1,13 @@ +$NetBSD: patch-aj,v 1.1 1999/03/11 09:48:43 tron Exp $ + +--- src/server.c.orig Fri Aug 7 02:46:38 1998 ++++ src/server.c Thu Mar 11 10:41:30 1999 +@@ -612,7 +612,7 @@ + } + (void) strcat (path, "/"); + (void) strcat (path, CVSROOTADM_HISTORY); +- if (isfile (path) && !isaccessible (path, R_OK | W_OK)) ++ if (!readonlyfs && isfile (path) && !isaccessible (path, R_OK | W_OK)) + { + save_errno = errno; + pending_error_text = malloc (80 + strlen (path)); |