Mailing List Archive

r24 - in trunk/varnish-cache: . bin bin/varnishd include lib lib/libvarnish lib/libvarnishapi
Author: des
Date: 2006-02-24 15:35:55 +0100 (Fri, 24 Feb 2006)
New Revision: 24

Added:
trunk/varnish-cache/Makefile.am
trunk/varnish-cache/autogen.sh
trunk/varnish-cache/bin/
trunk/varnish-cache/bin/Makefile.am
trunk/varnish-cache/bin/varnishd/
trunk/varnish-cache/bin/varnishd/Makefile.am
trunk/varnish-cache/bin/varnishd/varnishd.c
trunk/varnish-cache/configure.ac
trunk/varnish-cache/include/
trunk/varnish-cache/include/Makefile.am
trunk/varnish-cache/include/varnishapi.h
trunk/varnish-cache/lib/
trunk/varnish-cache/lib/Makefile.am
trunk/varnish-cache/lib/libvarnish/
trunk/varnish-cache/lib/libvarnish/Makefile.am
trunk/varnish-cache/lib/libvarnishapi/
trunk/varnish-cache/lib/libvarnishapi/Makefile.am
Log:
Source tree structure as agreed.

Added: trunk/varnish-cache/Makefile.am
===================================================================
--- trunk/varnish-cache/Makefile.am 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/Makefile.am 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,3 @@
+# $Id$
+
+SUBDIRS = include lib bin


Property changes on: trunk/varnish-cache/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/autogen.sh
===================================================================
--- trunk/varnish-cache/autogen.sh 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/autogen.sh 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,10 @@
+#!/bin/sh
+#
+# $Id$
+#
+
+libtoolize --copy --force
+aclocal
+autoheader
+automake --add-missing --copy --force --foreign
+autoconf


Property changes on: trunk/varnish-cache/autogen.sh
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/bin/Makefile.am
===================================================================
--- trunk/varnish-cache/bin/Makefile.am 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/bin/Makefile.am 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,3 @@
+# $Id$
+
+SUBDIRS = varnishd


Property changes on: trunk/varnish-cache/bin/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/bin/varnishd/Makefile.am
===================================================================
--- trunk/varnish-cache/bin/varnishd/Makefile.am 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/bin/varnishd/Makefile.am 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,10 @@
+# $Id$
+
+INCLUDES = -I$(top_srcdir)/include
+
+bin_PROGRAMS = varnishd
+
+varnishd_SOURCES = \
+ varnishd.c
+
+#varnishd_LDADD = $(top_builddir)/lib/libvarnish/libvarnish.la


Property changes on: trunk/varnish-cache/bin/varnishd/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/bin/varnishd/varnishd.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/varnishd.c 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/bin/varnishd/varnishd.c 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,35 @@
+/*
+ * $Id$
+ */
+
+#include <errno.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+
+static void
+usage(void)
+{
+ fprintf(stderr, "usage: varnishd\n");
+ exit(1);
+}
+
+int
+main(int argc, char *argv[])
+{
+ int o;
+
+ while ((o = getopt(argc, argv, "")) != -1)
+ switch (o) {
+ default:
+ usage();
+ }
+
+ argc -= optind;
+ argv += optind;
+
+ if (argc != 0)
+ usage();
+
+ exit(0);
+}


Property changes on: trunk/varnish-cache/bin/varnishd/varnishd.c
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/configure.ac
===================================================================
--- trunk/varnish-cache/configure.ac 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/configure.ac 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,73 @@
+# $Id$
+
+AC_PREREQ(2.59)
+AC_COPYRIGHT([Copyright (c) 2006 Linpro AS / Verdens Gang AS])
+AC_REVISION([$Id$])
+AC_INIT([Varnish], [0.1], [varnish-dev at projects.linpro.no])
+AC_CONFIG_SRCDIR([include/varnishapi.h])
+AC_CONFIG_HEADER([config.h])
+
+AC_CANONICAL_SYSTEM
+AC_LANG(C)
+
+AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
+
+# Compiler flags (assume GCC).
+# This section *must* come before AC_PROG_CC / AC_PROG_CPP.
+CFLAGS="${CFLAGS:--O2}"
+AC_ARG_ENABLE(wall,
+ AS_HELP_STRING([--enable-wall],[use -Wall (default is NO)]),
+ CFLAGS="${CFLAGS} -Wall")
+AC_ARG_ENABLE(pedantic,
+ AS_HELP_STRING([--enable-pedantic],[enable pedantic warnings (default is NO)]),
+ CFLAGS="${CFLAGS} -pedantic")
+AC_ARG_ENABLE(werror,
+ AS_HELP_STRING([--enable-werror],[use -Werror (default is NO)]),
+ CFLAGS="${CFLAGS} -Werror")
+
+# Checks for programs.
+AC_PROG_CC
+AC_PROG_CPP
+AC_PROG_INSTALL
+AC_PROG_LIBTOOL
+AC_PROG_MAKE_SET
+
+# Checks for libraries.
+
+# Checks for header files.
+AC_HEADER_STDC
+AC_HEADER_SYS_WAIT
+AC_HEADER_TIME
+AC_CHECK_HEADERS([sys/socket.h])
+AC_CHECK_HEADERS([netinet/in.h])
+AC_CHECK_HEADERS([stddef.h])
+AC_CHECK_HEADERS([stdlib.h])
+AC_CHECK_HEADERS([unistd.h])
+
+# Checks for typedefs, structures, and compiler characteristics.
+AC_C_CONST
+AC_CHECK_MEMBERS([struct sockaddr.sa_len],,,[
+#include <sys/types.h>
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+])
+
+# Checks for library functions.
+AC_TYPE_SIGNAL
+AC_TYPE_SIZE_T
+AC_FUNC_VPRINTF
+AC_CHECK_FUNCS([strerror])
+AC_FUNC_STRERROR_R
+AC_CHECK_FUNCS([socket])
+
+AC_CONFIG_FILES([.
+ Makefile
+ include/Makefile
+ lib/Makefile
+ lib/libvarnish/Makefile
+ lib/libvarnishapi/Makefile
+ bin/Makefile
+ bin/varnishd/Makefile
+])
+AC_OUTPUT


Property changes on: trunk/varnish-cache/configure.ac
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/include/Makefile.am
===================================================================
--- trunk/varnish-cache/include/Makefile.am 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/include/Makefile.am 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,4 @@
+# $Id$
+
+include_HEADERS = varnishapi.h
+


Property changes on: trunk/varnish-cache/include/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/include/varnishapi.h
===================================================================
--- trunk/varnish-cache/include/varnishapi.h 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/include/varnishapi.h 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,10 @@
+/*
+ * $Id$
+ */
+
+#ifndef VARNISHAPI_H_INCLUDED
+#define VARNISHAPI_H_INCLUDED
+
+/* ... */
+
+#endif


Property changes on: trunk/varnish-cache/include/varnishapi.h
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/lib/Makefile.am
===================================================================
--- trunk/varnish-cache/lib/Makefile.am 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/lib/Makefile.am 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,5 @@
+# $Id$
+
+SUBDIRS = \
+ libvarnish \
+ libvarnishapi


Property changes on: trunk/varnish-cache/lib/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/lib/libvarnish/Makefile.am
===================================================================
--- trunk/varnish-cache/lib/libvarnish/Makefile.am 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/lib/libvarnish/Makefile.am 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,7 @@
+# $Id$
+
+INCLUDES = -I$(top_srcdir)/include
+
+lib_LIBRARIES = libvarnish.la
+
+libvarnish_la_SOURCES =


Property changes on: trunk/varnish-cache/lib/libvarnish/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id

Added: trunk/varnish-cache/lib/libvarnishapi/Makefile.am
===================================================================
--- trunk/varnish-cache/lib/libvarnishapi/Makefile.am 2006-02-23 15:57:43 UTC (rev 23)
+++ trunk/varnish-cache/lib/libvarnishapi/Makefile.am 2006-02-24 14:35:55 UTC (rev 24)
@@ -0,0 +1,7 @@
+# $Id$
+
+INCLUDES = -I$(top_srcdir)/include
+
+lib_LIBRARIES = libvarnishapi.la
+
+libvarnishapi_la_SOURCES =


Property changes on: trunk/varnish-cache/lib/libvarnishapi/Makefile.am
___________________________________________________________________
Name: svn:keywords
+ Id