Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

import of openrcs-20080210172204

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