initial checkin
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 22 Oct 2003 22:10:46 +0000 (22:10 +0000)
committerEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Wed, 22 Oct 2003 22:10:46 +0000 (22:10 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@286 94cd875c-1c1d-0410-91d2-eb244daf1a30

util-vserver/distrib/fdr0.95/apt/rpmpriorities [new file with mode: 0644]
util-vserver/distrib/fdr0.95/apt/sources.list [new file with mode: 0644]
util-vserver/distrib/fdr0.95/pkgs/01 [new file with mode: 0644]
util-vserver/distrib/fdr0.95/pkgs/02 [new file with mode: 0644]
util-vserver/distrib/misc/mtab [new file with mode: 0644]
util-vserver/m4/ensc_dietlibc.m4 [new file with mode: 0644]
util-vserver/m4/ensc_initrddir.m4 [new file with mode: 0644]
util-vserver/m4/ensc_kerneldir.m4 [new file with mode: 0644]
util-vserver/m4/ensc_release.m4 [new file with mode: 0644]

diff --git a/util-vserver/distrib/fdr0.95/apt/rpmpriorities b/util-vserver/distrib/fdr0.95/apt/rpmpriorities
new file mode 100644 (file)
index 0000000..08cc7af
--- /dev/null
@@ -0,0 +1,6 @@
+Essential:
+  basesystem
+  coreutils
+  filesystem
+  glibc
+  setup
diff --git a/util-vserver/distrib/fdr0.95/apt/sources.list b/util-vserver/distrib/fdr0.95/apt/sources.list
new file mode 100644 (file)
index 0000000..8bca6e3
--- /dev/null
@@ -0,0 +1,7 @@
+# rpm     http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/RedHat/.apt   redhat/beta     os errata
+# rpm-src http://ftp.ultra.csn.tu-chemnitz.de/pub/mirror/RedHat/.apt   redhat/beta     os errata
+
+# rpm  ftp://ftp.tu-chemnitz.de/pub/linux/fedora/redhat                        0.95/i386       os updates
+# rpm  ftp://ftp.ussg.iu.edu/pub/linux/fedora/fedora/redhat                    0.95/i386       os updates
+# rpm  http://mirrors.usc.edu/pub/linux/fedora/redhat                          0.95/i386       os updates
+# rpm  http://sunsite.informatik.rwth-aachen.de/ftp/pub/Linux/fedora/redhat    0.95/i386       os updates
diff --git a/util-vserver/distrib/fdr0.95/pkgs/01 b/util-vserver/distrib/fdr0.95/pkgs/01
new file mode 100644 (file)
index 0000000..1a5ef72
--- /dev/null
@@ -0,0 +1 @@
+glibc
diff --git a/util-vserver/distrib/fdr0.95/pkgs/02 b/util-vserver/distrib/fdr0.95/pkgs/02
new file mode 100644 (file)
index 0000000..9ec5d2b
--- /dev/null
@@ -0,0 +1,3 @@
+--reinstall
+
+filesystem
diff --git a/util-vserver/distrib/misc/mtab b/util-vserver/distrib/misc/mtab
new file mode 100644 (file)
index 0000000..54a5b0c
--- /dev/null
@@ -0,0 +1 @@
+/dev/hdv1 / ext2 defaults 0 0
diff --git a/util-vserver/m4/ensc_dietlibc.m4 b/util-vserver/m4/ensc_dietlibc.m4
new file mode 100644 (file)
index 0000000..071a741
--- /dev/null
@@ -0,0 +1,57 @@
+dnl $Id$
+
+dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+dnl  
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; version 2 of the License.
+dnl  
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU General Public License for more details.
+dnl  
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software
+dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+dnl Usage: ENSC_ENABLE_DIETLIBC(<conditional>)
+dnl        <conditional> ... automake-conditional which will be set when
+dnl                          dietlibc shall be enabled
+
+AC_DEFUN(ENSC_ENABLE_DIETLIBC,
+[
+       AC_MSG_CHECKING([whether to enable dietlibc])
+       AC_ARG_ENABLE([dietlibc],
+                     [AC_HELP_STRING([--disable-dietlibc],
+                                     [do not use dietlibc (default: use dietlibc)])],
+                     [case "$withval" in
+                         yes)  use_dietlibc=forced;;
+                         no)   use_dietlibc=forced_no;;
+                         *)    AC_MSG_ERROR(['$withval' is not a valid value for --enable-dietlibc]);;
+                      esac],
+                     [: ${DIET:=diet}
+                      which "$DIET" >/dev/null 2>/dev/null && use_dietlibc=detected || use_dietlibc=detected_no])
+
+       case x"$use_dietlibc" in
+           xdetected)
+               AM_CONDITIONAL($1, true)
+               AC_MSG_RESULT([yes (autodetected)])
+               ;;
+           xforced)
+               AM_CONDITIONAL($1, true)
+               AC_MSG_RESULT([yes (forced)])
+               ;;
+           xdetected_no)
+               AM_CONDITIONAL($1, false)
+               AC_MSG_RESULT([no (detected)])
+               ;;
+           xforced_no)
+               AM_CONDITIONAL($1, false)
+               AC_MSG_RESULT([no (forced)])
+               ;;
+           *)
+               AC_MSG_ERROR([internal error, use_dietlibc was "$use_dietlibc"])
+               ;;
+       esac
+])
diff --git a/util-vserver/m4/ensc_initrddir.m4 b/util-vserver/m4/ensc_initrddir.m4
new file mode 100644 (file)
index 0000000..9697c64
--- /dev/null
@@ -0,0 +1,39 @@
+dnl $Id$
+
+dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+dnl  
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; version 2 of the License.
+dnl  
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU General Public License for more details.
+dnl  
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software
+dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+dnl Usage: ENSC_INITRDDIR(<variable>)
+
+AC_DEFUN([ENSC_INITRDDIR],
+[
+       AC_MSG_CHECKING([for initrddir])
+       AC_ARG_WITH([initrddir],
+                   [AC_HELP_STRING([--with-initrddir <DIR>],
+                                   [use <DIR> as directory for SysV init-files (default: $sysconfdir/rc.d)])],
+                   [case "$withval" in
+                       yes|no) AC_MSG_ERROR(['$withval' is not a valid value for '--with-initrddir']);;
+                       *)      ensc_initrddir=$withval;;
+                    esac],
+                   [ensc_initrddir='$(sysconfdir)/init.d'])
+
+       if test "$1"; then
+               $1=$ensc_initrddir
+               AC_SUBST($1)
+       fi
+
+       AC_MSG_RESULT($ensc_initrddir)
+])
+               
diff --git a/util-vserver/m4/ensc_kerneldir.m4 b/util-vserver/m4/ensc_kerneldir.m4
new file mode 100644 (file)
index 0000000..417a401
--- /dev/null
@@ -0,0 +1,55 @@
+dnl $Id$
+
+dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+dnl  
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; version 2 of the License.
+dnl  
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU General Public License for more details.
+dnl  
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software
+dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+dnl Usage: ENSC_KERNEL_HEADERS(<var>)
+dnl        <var> ... basedir of kernel-headers (without the '/linux');
+dnl                  this value will be AC_SUBST'ed
+
+AC_DEFUN(_ENSC_KERNEL_DIR,
+[
+       AC_CACHE_CHECK([for linux kernel dir], [ensc_cv_path_kerneldir],
+        [
+AC_ARG_WITH([kerneldir],
+           [AC_HELP_STRING([--with-kerneldir=DIR],
+                           [assume kernelsources in DIR (default: /lib/modules/<current>/build)])],
+            [case "$withval" in
+               yes|no) AC_MSG_ERROR(['$withval' is not a valid value for kerneldir]);;
+               *)      ensc_cv_path_kerneldir=$withval;;
+            esac],
+           [ensc_cv_path_kerneldir=
+            for i in /lib/modules/$(uname -r)/build /usr/src/linux /usr; do
+               test -e $i/include/linux/version.h && { ensc_cv_path_kerneldir=$i; break; }
+            done])
+       ])
+
+       test "$ensc_cv_path_kerneldir" -a -e "$ensc_cv_path_kerneldir"/include/linux/version.h || {
+               AC_MSG_ERROR([Can not find kernelsources])
+       }
+])
+
+AC_DEFUN(ENSC_KERNEL_HEADERS,
+[
+       AC_REQUIRE([_ENSC_KERNEL_DIR])
+
+       AC_CACHE_CHECK([for linux kernel headers], [ensc_cv_path_kernelheaders],
+       [
+               ensc_cv_path_kernelheaders=$ensc_cv_path_kerneldir/include
+       ])
+
+       $1=$ensc_cv_path_kernelheaders
+       AC_SUBST($1)
+])
diff --git a/util-vserver/m4/ensc_release.m4 b/util-vserver/m4/ensc_release.m4
new file mode 100644 (file)
index 0000000..bcc9532
--- /dev/null
@@ -0,0 +1,43 @@
+dnl $Id$
+
+dnl Copyright (C) 2002 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
+dnl  
+dnl This program is free software; you can redistribute it and/or modify
+dnl it under the terms of the GNU General Public License as published by
+dnl the Free Software Foundation; version 2 of the License.
+dnl  
+dnl This program is distributed in the hope that it will be useful,
+dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
+dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+dnl GNU General Public License for more details.
+dnl  
+dnl You should have received a copy of the GNU General Public License
+dnl along with this program; if not, write to the Free Software
+dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+dnl Usage: ENSC_RELEASE(<cppflag-variable>)
+dnl        <cppflag-variable> ... name of variable which will get the preprocessor
+dnl                               flags and which will be AC_SUBST'ed
+
+AC_DEFUN(ENSC_RELEASE,
+[
+       AC_MSG_CHECKING([whether to enable release-mode])
+       AC_ARG_ENABLE([release],
+                     [AC_HELP_STRING([--enable-release],
+                                     [enable release mode (default: no)])],
+                     [case "$enableval" in
+                         yes)  ensc_release_mode=yes;;
+                         no)   ensc_release_mode=no;;
+                         *)    AC_MSG_ERROR(['$enableval' is not a valid value for '--enable-release']);;
+                      esac],
+                     [ ensc_release_mode=no ])
+
+       if test x"$ensc_release_mode" = xno; then
+               $1=
+       else
+               $1='-DNDEBUG'
+       fi
+
+       AC_SUBST($1)
+       AC_MSG_RESULT($ensc_release_mode)
+])