Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

import of openrcs-20080210172204

  • Loading branch information...
commit cc8204f229ec2a06737d893873017779597a0cf7 1 parent 6f0949e
Charles Longeau authored
8 ChangeLog
... ... @@ -1,3 +1,11 @@
  1 +2008-02-10 chl <chl@tuxfamily.org>
  2 +
  3 + - add LICENCE and README files
  4 + - make it build on MacOS X (thanks to Elias Pipping for the report and
  5 + patch).
  6 + - make it build on Alpine Linux, which is a Gentoo uclibc distro
  7 + (thanks to Natanael Copa for the report and patches)
  8 +
1 9 2008-02-08 chl <chl@tuxfamily.org>
2 10
3 11 - first announcement to OpenRCS developers
128 LICENCE
... ... @@ -0,0 +1,128 @@
  1 +This file is part of the OpenRCS software.
  2 +
  3 +The licences which components of this software fall under are as
  4 +follows. First, we will summarize and say that all components
  5 +are under a BSD licence, or a licence more free than that.
  6 +
  7 +OpenRCS contains no GPL code.
  8 +
  9 +1)
  10 + * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
  11 + * All rights reserved
  12 + *
  13 + * As far as I am concerned, the code I have written for this software
  14 + * can be used freely for any purpose. Any derived versions of this
  15 + * software must be clearly marked as such, and if the derived work is
  16 + * incompatible with the protocol description in the RFC file, it must be
  17 + * called by a name other than "ssh" or "Secure Shell".
  18 +
  19 +2)
  20 + Some components of the software are provided under a 4-clause BSD
  21 + license, held by Caldera International Inc.
  22 +
  23 + * Redistribution and use in source and binary forms, with or without
  24 + * modification, are permitted provided that the following conditions
  25 + * are met:
  26 + * 1. Redistributions of source code and documentation must retain the above
  27 + * copyright notice, this list of conditions and the following disclaimer.
  28 + * 2. Redistributions in binary form must reproduce the above copyright
  29 + * notice, this list of conditions and the following disclaimer in the
  30 + * documentation and/or other materials provided with the distribution.
  31 + * 3. All advertising materials mentioning features or use of this software
  32 + * must display the following acknowledgement:
  33 + * This product includes software developed or owned by Caldera
  34 + * International, Inc.
  35 + * 4. Neither the name of Caldera International, Inc. nor the names of other
  36 + * contributors may be used to endorse or promote products derived from
  37 + * this software without specific prior written permission.
  38 + *
  39 + * USE OF THE SOFTWARE PROVIDED FOR UNDER THIS LICENSE BY CALDERA
  40 + * INTERNATIONAL, INC. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR
  41 + * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
  42 + * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  43 + * IN NO EVENT SHALL CALDERA INTERNATIONAL, INC. BE LIABLE FOR ANY DIRECT,
  44 + * INDIRECT INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  45 + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
  46 + * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  47 + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  48 + * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  49 + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  50 + * POSSIBILITY OF SUCH DAMAGE.
  51 +
  52 +3)
  53 + Portable OpenRCS additionally includes code from the following copyright
  54 + holders, also under the 2-term BSD license:
  55 +
  56 + Marc Espie
  57 +
  58 + * Redistribution and use in source and binary forms, with or without
  59 + * modification, are permitted provided that the following conditions
  60 + * are met:
  61 + * 1. Redistributions of source code must retain the above copyright
  62 + * notice, this list of conditions and the following disclaimer.
  63 + * 2. Redistributions in binary form must reproduce the above copyright
  64 + * notice, this list of conditions and the following disclaimer in the
  65 + * documentation and/or other materials provided with the distribution.
  66 + *
  67 + * THIS SOFTWARE IS PROVIDED BY THE OPENBSD PROJECT AND CONTRIBUTORS
  68 + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  69 + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  70 + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OPENBSD
  71 + * PROJECT OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  72 + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  73 + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  74 + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  75 + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  76 + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  77 + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  78 +
  79 +4)
  80 + Portable OpenRCS additionally includes code from the following copyright
  81 + holders, under an ISC-style license:
  82 +
  83 + Todd C. Miller
  84 + Charles Longeau
  85 + Ted Unangst
  86 +
  87 + * Permission to use, copy, modify, and distribute this software for any
  88 + * purpose with or without fee is hereby granted, provided that the above
  89 + * copyright notice and this permission notice appear in all copies.
  90 + *
  91 + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  92 + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  93 + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  94 + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  95 + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  96 + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  97 + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  98 +
  99 +5)
  100 + Remaining components of the software are provided under something which
  101 + look like a 2-term BSD licence with the following names as copyright
  102 + holders:
  103 +
  104 + Jean-Francois Brousseau
  105 + Niall O'Higgins
  106 + Joris Vink
  107 + Xavier Santolaria
  108 + Ray Lai
  109 +
  110 + * Redistribution and use in source and binary forms, with or without
  111 + * modification, are permitted provided that the following conditions
  112 + * are met:
  113 + *
  114 + * 1. Redistributions of source code must retain the above copyright
  115 + * notice, this list of conditions and the following disclaimer.
  116 + * 2. The name of the author may not be used to endorse or promote products
  117 + * derived from this software without specific prior written permission.
  118 + *
  119 + * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
  120 + * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
  121 + * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
  122 + * THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
  123 + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
  124 + * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
  125 + * OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
  126 + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
  127 + * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
  128 + * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
20 README
... ... @@ -0,0 +1,20 @@
  1 +This is the port of OpenBSD's excellent OpenRCS[0] to Linux and other
  2 +Unices.
  3 +
  4 +This port consists of the re-introduction of autoconf support, and
  5 +replacements for OpenBSD library functions that are (regrettably)
  6 +absent from other unices.
  7 +
  8 +This version actively tracks changes in the OpenBSD CVS repository.
  9 +
  10 +Please send bug reports and patches to chl@tuxfamily.org, so I could
  11 +check if it comes from the port or from the original OpenRCS. Code
  12 +contribution are welcomed, but please follow the OpenBSD style
  13 +guidelines[1].
  14 +
  15 +Charles Longeau <chl@tuxfamily.org>
  16 +
  17 +References -
  18 +
  19 +[0] http://opencvs.org
  20 +[1] http://www.openbsd.org/cgi-bin/man.cgi?query=style&sektion=9
41 configure.ac
... ... @@ -1,4 +1,4 @@
1   -AC_INIT([OpenRCS],[4.2.0],[Charles Longeau <chl@openbsd.org>],[OpenRCS])
  1 +AC_INIT([OpenRCS],[4.2.0],[Charles Longeau <chl@openbsd.org>])
2 2 AM_INIT_AUTOMAKE
3 3
4 4 # Checks for programs.
@@ -19,9 +19,46 @@ AC_CHECK_FUNCS(utimes, [AC_CHECK_FUNCS(futimes futimesat, [break])], [AC_CHECK_F
19 19 AC_SEARCH_LIBS(basename, gen, AC_DEFINE(HAVE_BASENAME, 1,
20 20 [Define if you have the basename function.]))
21 21
  22 +# this part comes from http://webcvs.freedesktop.org/stsf/stsf/configure.ac?revision=1.13
  23 +if test "$GCC" = "yes" ; then
  24 + # set GCC compiler options that should work with all versions
  25 + CFLAGS="${CFLAGS} -Wall -pedantic -fpic -Wno-long-long"
  26 + SHAREDLIB_LDFLAGS="-shared ${SHAREDLIB_LDFLAGS}"
  27 + DEPEND_CCFLAGS="-MM"
  28 +
  29 + # -std=c99 is only supported in later releases of GCC and causes
  30 + # Linux headers to go into strict ANSI mode, dropping non-ANSI functions
  31 + # so we have to fall back to -std=gnu99 if c99 doesn't work
  32 + save_CFLAGS="${CFLAGS}"
  33 + CFLAGS="${CFLAGS} -std=c99 -Werror-implicit-function-declaration"
  34 + AC_MSG_CHECKING([whether GNU cc -std=c99 option works])
  35 + AC_TRY_COMPILE(AC_INCLUDES_DEFAULT, [char *a; a = strdup("foo");],
  36 + AC_MSG_RESULT([yes]) ; CFLAGS="$save_CFLAGS -std=c99",
  37 + AC_MSG_RESULT([no]) ;
  38 + CFLAGS="$save_CFLAGS -std=gnu99 -Werror-implicit-function-declaration"
  39 + AC_MSG_CHECKING([whether GNU cc -std=gnu99 option works])
  40 + AC_TRY_COMPILE(AC_INCLUDES_DEFAULT, [char *a; a = strdup("foo");],
  41 + AC_MSG_RESULT([yes]) ; CFLAGS="$save_CFLAGS -std=gnu99",
  42 + AC_MSG_RESULT([no]) ; CFLAGS="$save_CFLAGS"))
  43 +fi
  44 +
22 45 AC_DEFINE([_GNU_SOURCE], [], [Enable GNU Extensions])
23 46
24   -CFLAGS="$CFLAGS -Wall"
  47 +AC_ARG_WITH(Werror,
  48 + [ --with-Werror Build main code with -Werror],
  49 + [
  50 + if test -n "$withval" && test "x$withval" != "xno"; then
  51 + werror_flags="-Werror"
  52 + if test "x${withval}" != "xyes"; then
  53 + werror_flags="$withval"
  54 + fi
  55 + fi
  56 + ]
  57 +)
  58 +
  59 +dnl Adding -Werror to CFLAGS early prevents configure tests from running.
  60 +dnl Add now.
  61 +CFLAGS="$CFLAGS $werror_flags"
25 62
26 63 AC_CONFIG_HEADER(config.h)
27 64 AC_CONFIG_FILES([Makefile
1  src/date.y
@@ -14,6 +14,7 @@
14 14 /* SUPPRESS 287 on yaccpar_sccsid *//* Unused static variable */
15 15 /* SUPPRESS 288 on yyerrlab *//* Label unused */
16 16
  17 +#include <sys/types.h>
17 18 #include <sys/timeb.h>
18 19
19 20 #include <ctype.h>
1  src/xmalloc.c
@@ -19,6 +19,7 @@
19 19 #include <stdio.h>
20 20 #include <stdlib.h>
21 21 #include <string.h>
  22 +#include <sys/types.h>
22 23
23 24 #include "xmalloc.h"
24 25

0 comments on commit cc8204f

Please sign in to comment.
Something went wrong with that request. Please try again.