Radix cross Linux

The main Radix cross Linux repository contains the build scripts of packages, which have the most complete and common functionality for desktop machines

452 Commits   2 Branches   1 Tag
Index: create.patch.sh
===================================================================
--- create.patch.sh	(nonexistent)
+++ create.patch.sh	(revision 5)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+VERSION=1.3.9
+
+mkdir -p serf-$VERSION-orig
+
+cp -rf ./serf-$VERSION-new ./serf-$VERSION
+
+diff --unified -Nr  serf-$VERSION-orig  serf-$VERSION > serf-$VERSION-makefile.patch
+
+mv serf-$VERSION-makefile.patch ../patches
+
+rm -rf ./serf-$VERSION
+rm -rf ./serf-$VERSION-orig

Property changes on: create.patch.sh
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: file.list
===================================================================
--- file.list	(nonexistent)
+++ file.list	(revision 5)
@@ -0,0 +1 @@
+empty
Index: serf-1.3.9-new/Makefile.in
===================================================================
--- serf-1.3.9-new/Makefile.in	(nonexistent)
+++ serf-1.3.9-new/Makefile.in	(revision 5)
@@ -0,0 +1,138 @@
+
+PACKAGE_NAME    = @PACKAGE_NAME@
+PACKAGE_VERSION = @PACKAGE_VERSION@
+
+prefix          = @prefix@
+exec_prefix     = @prefix@
+
+sysconfdir      = @sysconfdir@
+
+bindir          = @bindir@
+sbindir         = @sbindir@
+libdir          = @libdir@
+libexecdir      = @libexecdir@
+localstatedir   = @localstatedir@
+runstatedir     = @runstatedir@
+sharedstatedir  = @sharedstatedir@
+
+localedir       = @localedir@
+
+includedir      = @includedir@
+oldincludedir   = @oldincludedir@
+
+datadir         = @datadir@
+datarootdir     = @datarootdir@
+docdir          = @datarootdir@/doc/@PACKAGE_NAME@-@PACKAGE_VERSION@
+
+dvidir          = @dvidir@
+htmldir         = @dvidir@/html
+mandir          = @mandir@
+pdfdir          = @pdfdir@
+psdir           = @psdir@
+infodir         = @infodir@
+
+INSTALL         = @INSTALL@
+INSTALL_DATA    = ${INSTALL} -m 644
+LN_S            = @LN_S@
+
+
+CC          = @CC@
+AR          = @AR@
+RANLIB      = @RANLIB@
+STRIP       = @STRIP@
+
+CFLAGS      = @CFLAGS@
+LDFLAGS     = @LDFLAGS@
+LIBS        = @LIBS@
+
+APR_CFLAGS  = @APR_CFLAGS@
+APR_LDFLAGS = @APR_LDFLAGS@
+APR_LIBS    = @APR_LIBS@
+
+DEFS      = -pthread -DNDEBUG -DLINUX -D_REENTRANT -D_GNU_SOURCE
+
+SO_VERSION = $(shell echo $(PACKAGE_VERSION) | cut -f1,2 -d'.')
+
+SOURCES = context.c \
+          incoming.c \
+          outgoing.c \
+          ssltunnel.c \
+          buckets/aggregate_buckets.c \
+          buckets/allocator.c \
+          buckets/barrier_buckets.c \
+          buckets/buckets.c \
+          buckets/bwtp_buckets.c \
+          buckets/chunk_buckets.c \
+          buckets/dechunk_buckets.c \
+          buckets/deflate_buckets.c \
+          buckets/file_buckets.c \
+          buckets/headers_buckets.c \
+          buckets/iovec_buckets.c \
+          buckets/limit_buckets.c \
+          buckets/mmap_buckets.c \
+          buckets/request_buckets.c \
+          buckets/response_body_buckets.c \
+          buckets/response_buckets.c \
+          buckets/simple_buckets.c \
+          buckets/socket_buckets.c \
+          buckets/ssl_buckets.c \
+          auth/auth.c \
+          auth/auth_basic.c \
+          auth/auth_digest.c \
+          auth/auth_spnego.c \
+          auth/auth_spnego_gss.c \
+          auth/auth_spnego_sspi.c
+
+SO_OBJECTS = $(SOURCES:.c=.os)
+
+AR_OBJECTS = $(SOURCES:.c=.o)
+
+
+.SUFFIXES:
+.SUFFIXES: .o .os .c
+%.o : %.c
+	$(CC) $(CFLAGS) $(APR_CFLAGS) $(DEFS) -c $< -o $@
+
+%.os : %.c
+	$(CC) $(CFLAGS) $(APR_CFLAGS) -fPIC $(DEFS) -c $< -o $@
+
+
+all: libserf-1.a libserf-1.so.$(SO_VERSION).0
+
+libserf-1.a: $(AR_OBJECTS)
+	$(AR) rc $@ $^
+	$(RANLIB) $@
+
+libserf-1.so.$(SO_VERSION).0: $(SO_OBJECTS)
+	$(CC) $(LDFLAGS) $(APR_LDFLAGS) -o $@ -pthread -shared -Wl,-soname=libserf-1.so.1 $^ $(APR_LIBS) $(LIBS)
+	@ln -sf libserf-1.so.$(SO_VERSION).0 libserf-1.so.1
+	@ln -sf libserf-1.so.$(SO_VERSION).0 libserf-1.so
+
+install: libserf-1.a libserf-1.so.$(SO_VERSION).0 serf.h serf_bucket_types.h serf_bucket_util.h
+	@mkdir -p $(DESTDIR)$(includedir)/serf-1
+	$(INSTALL_DATA) serf.h $(DESTDIR)$(includedir)/serf-1
+	$(INSTALL_DATA) serf_bucket_types.h $(DESTDIR)$(includedir)/serf-1
+	$(INSTALL_DATA) serf_bucket_util.h $(DESTDIR)$(includedir)/serf-1
+	@mkdir -p $(DESTDIR)$(libdir)
+	$(INSTALL) -m 644 libserf-1.a $(DESTDIR)$(libdir)
+	$(INSTALL) -m 755 libserf-1.so.$(SO_VERSION).0 $(DESTDIR)$(libdir)
+	@$(LN_S) -fr $(DESTDIR)$(libdir)/libserf-1.so.$(SO_VERSION).0 $(DESTDIR)$(libdir)/libserf-1.so.1
+	@$(LN_S) -fr $(DESTDIR)$(libdir)/libserf-1.so.$(SO_VERSION).0 $(DESTDIR)$(libdir)/libserf-1.so
+	@mkdir -p $(DESTDIR)$(libdir)/pkgconfig
+	$(INSTALL_DATA) serf-1.pc $(DESTDIR)$(libdir)/pkgconfig
+	@mkdir -p $(DESTDIR)$(docdir)
+	$(INSTALL_DATA) LICENSE NOTICE README STATUS design-guide.txt $(DESTDIR)$(docdir)
+
+clean:
+	rm -f *.{o,os} auth/*.{o,os} buckets/*.{o,os} libserf-1.a libserf-1.so*
+
+distclean:
+	@rm -f *~
+	@rm -rf autom4te.cache
+	@rm -f aclocal.m4
+	@rm -f config.h.in config.h
+	@rm -f config.log config.status config.cache
+	@rm -f config.guess config.sub
+	@rm -f configure
+	@rm -f Makefile
+	@rm -f serf-1.pc
Index: serf-1.3.9-new/acsite.m4
===================================================================
--- serf-1.3.9-new/acsite.m4	(nonexistent)
+++ serf-1.3.9-new/acsite.m4	(revision 5)
@@ -0,0 +1,54 @@
+dnl -------------------------------------------------------- -*- autoconf -*-
+dnl Licensed to the Apache Software Foundation (ASF) under one or more
+dnl contributor license agreements.  See the NOTICE file distributed with
+dnl this work for additional information regarding copyright ownership.
+dnl The ASF licenses this file to You under the Apache License, Version 2.0
+dnl (the "License"); you may not use this file except in compliance with
+dnl the License.  You may obtain a copy of the License at
+dnl
+dnl     http://www.apache.org/licenses/LICENSE-2.0
+dnl
+dnl Unless required by applicable law or agreed to in writing, software
+dnl distributed under the License is distributed on an "AS IS" BASIS,
+dnl WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+dnl See the License for the specific language governing permissions and
+dnl limitations under the License.
+
+dnl
+dnl APU_CONFIG module
+dnl
+
+dnl
+dnl SERF_CHECK_APU_CONFIG: compile backends for apr-util.
+dnl
+AC_DEFUN([SERF_CHECK_APU_CONFIG], [
+  serf_have_apu_config=0
+
+  old_libs="$LIBS"
+  old_cppflags="$CPPFLAGS"
+  old_ldflags="$LDFLAGS"
+
+  AC_PATH_PROG([APU_CONFIG],[apu-1-config])
+  if test "x$APU_CONFIG" != 'x'; then
+    if test "`$APU_CONFIG --includedir`" != "/usr/include"; then
+      apu_CPPFLAGS="-I`$APU_CONFIG --includedir`"
+    fi
+    apu_LDFLAGS="`$APU_CONFIG --ldflags | sed -e 's/-l[[^ ]]\+//g' | tr -s ' '`"
+    apu_LIBS="`$APU_CONFIG --link-ld --libs | sed -e 's/-L[[^ ]]\+//g' | tr -s ' '`"
+  fi
+
+  AC_CHECK_HEADERS([apr-1/apr.h apr-1/apu.h], [serf_have_apu=1], [serf_have_apu=0; break])
+  if test "$serf_have_apu" = "1" && test "x$APU_CONFIG" != 'x'; then
+    AC_SUBST(APR_CFLAGS, [$apu_CPPFLAGS])
+    AC_SUBST(APR_LDFLAGS, [$apu_LDFLAGS])
+    AC_SUBST(APR_LIBS, [$apu_LIBS])
+  fi
+
+  AC_SUBST(serf_have_apu)
+  AC_DEFINE_UNQUOTED([SERF_HAVE_APR_UTIL], [$serf_have_apu], [Define if the apr and apr-util are installed])
+
+  LIBS="$old_libs"
+  CPPFLAGS="$old_cppflags"
+  LDFLAGS="$old_ldflags"
+])
+dnl
Index: serf-1.3.9-new/bootstrap
===================================================================
--- serf-1.3.9-new/bootstrap	(nonexistent)
+++ serf-1.3.9-new/bootstrap	(revision 5)
@@ -0,0 +1,90 @@
+#!/bin/sh
+
+
+CWD=`pwd`
+
+program=`basename $0`
+
+usage() {
+  cat << EOF
+
+Usage: $program [options]
+
+Options:
+  -h,--help                  Display this message.
+  -d,--target-dest-dir=DIR   The target ROOTFS directory
+                             [default: DIR=/].
+
+EOF
+}
+
+TARGET_DEST_DIR=/
+ACDIR=usr/share/aclocal
+INCDIR=usr/include
+SYSTEM_ACDIR=
+SYSTEM_INCDIR=
+
+while [ 0 ] ; do
+  if [ "$1" = "-h" -o "$1" = "--help" ] ; then
+    usage
+    exit 0
+  elif [ "$1" = "-d" -o "$1" = "--target-dest-dir" ] ; then
+    if [ "$2" = "" ] ; then
+      echo -e "\n${program}: ERROR: --target-dest-dir is not specified.\n"
+      usage
+      exit 1
+    fi
+    TARGET_DEST_DIR="$2"
+    shift 2
+  elif [[ $1 == --target-dest-dir=* ]] ; then
+    TARGET_DEST_DIR="`echo $1 | cut -f2 -d'='`"
+    shift 1
+  else
+    if [ "$1" != "" ] ; then
+      echo -e "\n${program}: ERROR: Unknown argument: $1.\n"
+      usage
+      exit 1
+    fi
+    break
+  fi
+done
+
+if [ ! -d "${TARGET_DEST_DIR}" ] ; then
+  echo -e "\n${program}: ERROR: --target-dest-dir is not a directory.\n"
+  usage
+  exit 1
+fi
+
+#
+# Absolute path:
+#
+if [ "${TARGET_DEST_DIR:0:1}" != "/" ] ; then
+  TARGET_DEST_DIR=${CWD}/${TARGET_DEST_DIR}
+fi
+
+#
+# Remove last '/' char:
+#
+if [ "${TARGET_DEST_DIR: -1}" = "/" ] ; then
+  len=${#TARGET_DEST_DIR}
+  let "len = len - 1"
+  tmp="${TARGET_DEST_DIR:0:$len}"
+  TARGET_DEST_DIR=${tmp}
+fi
+
+SYSTEM_ACDIR="${TARGET_DEST_DIR}/${ACDIR}"
+SYSTEM_INCDIR="${TARGET_DEST_DIR}/${INCDIR}"
+
+if [ ! -f "config.guess" -o ! -f "config.sub" ] ; then
+  cp /usr/share/automake*/config.{guess,sub} .
+fi
+
+if [ ! -f "config.guess" -o ! -f "config.sub" ] ; then
+  echo -e "\n${program}: ERROR: Cannot copy config.guess config.sub scripts.\n"
+  exit 1
+fi
+
+aclocal --install -I m4 --force --system-acdir=${SYSTEM_ACDIR}
+autoheader --include=${SYSTEM_INCDIR}
+# automake --foreign --add-missing --copy --force-missing
+autoconf --force

Property changes on: serf-1.3.9-new/bootstrap
___________________________________________________________________
Added: svn:executable
## -0,0 +1 ##
+*
\ No newline at end of property
Index: serf-1.3.9-new/configure.ac
===================================================================
--- serf-1.3.9-new/configure.ac	(nonexistent)
+++ serf-1.3.9-new/configure.ac	(revision 5)
@@ -0,0 +1,61 @@
+
+AC_INIT([serf], [1.3.9],
+  [dev@serf.apache.org], [serf], [https://serf.apache.org])
+
+AC_CANONICAL_TARGET
+
+AC_CHECK_TOOL([AR], [ar], [:])
+AC_CHECK_TOOL([CC], [gcc], [:])
+AC_CHECK_TOOL([STRIP], [strip], [:])
+AC_PROG_CPP
+AC_PROG_RANLIB
+
+AC_PROG_LN_S
+AC_CHECK_TOOL([INSTALL], [install], [:])
+
+AC_CHECK_TOOL([APU_CONFIG], [apu-1-config], [:])
+
+AC_CONFIG_HEADERS([config.h])
+AC_PREFIX_DEFAULT(/usr/local)
+
+SERF_CHECK_APU_CONFIG
+
+dnl
+dnl Find a particular SSL library
+dnl
+AC_CHECK_LIB([crypto], [EVP_EncryptInit], serf_has_lib_crypto="1",
+             [AC_MSG_FAILURE([can't find openssl crypto lib])], [])
+AC_CHECK_LIB([ssl], [SSL_CTX_new], serf_has_lib_ssl="1",
+             [AC_MSG_FAILURE([can't find openssl ssl lib])], [])
+if test "$serf_has_lib_ssl" = "1" ; then
+  LIBS="$LIBS -lssl"
+fi
+if test "$serf_has_lib_crypto" = "1" ; then
+  LIBS="$LIBS -lcrypto"
+fi
+
+AC_SUBST(CFLAGS)
+AC_SUBST(CPPFLAGS)
+AC_SUBST(LDFLAGS)
+AC_SUBST(LIBS)
+
+AC_SUBST(APR_CFLAGS)
+AC_SUBST(APR_LDFLAGS)
+AC_SUBST(APR_LIBS)
+
+AC_ARG_VAR([CC],[C compiler command])
+AC_ARG_VAR([CFLAGS],[C compiler flags])
+AC_ARG_VAR([LDFLAGS],[linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir>])
+AC_ARG_VAR([LIBS],[libraries to pass to the linker, e.g. -l<library>])
+AC_ARG_VAR([CPPFLAGS],[(Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir>])
+AC_ARG_VAR([CPP],[C preprocessor])
+AC_ARG_VAR([STRIP],[strip command])
+
+AC_ARG_VAR([APU_CONFIG],[Path to apu-config script])
+
+AC_CONFIG_FILES([
+Makefile
+serf-1.pc
+])
+AC_OUTPUT
+
Index: serf-1.3.9-new/serf-1.pc.in
===================================================================
--- serf-1.3.9-new/serf-1.pc.in	(nonexistent)
+++ serf-1.3.9-new/serf-1.pc.in	(revision 5)
@@ -0,0 +1,13 @@
+SERF_MAJOR_VERSION=1
+prefix=@prefix@
+exec_prefix=${prefix}
+libdir=@libdir@
+includedir=${prefix}/include/serf-${SERF_MAJOR_VERSION}
+
+Name: serf
+Description: HTTP client library
+Version: @PACKAGE_VERSION@
+Requires.private: libssl libcrypto
+Libs: -L${libdir} -lserf-${SERF_MAJOR_VERSION}
+Libs.private: @LDFLAGS@ @APR_LDFLAGS@ @APR_LIBS@ @LIBS@
+Cflags: -I${includedir}
Index: serf-1.3.9-new
===================================================================
--- serf-1.3.9-new	(nonexistent)
+++ serf-1.3.9-new	(revision 5)

Property changes on: serf-1.3.9-new
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~
Index: .
===================================================================
--- .	(nonexistent)
+++ .	(revision 5)

Property changes on: .
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,73 ##
+
+# install dir
+dist
+
+# Target build dirs
+.a1x-newlib
+.a2x-newlib
+.at91sam7s-newlib
+
+.build-machine
+
+.a1x-glibc
+.a2x-glibc
+.h3-glibc
+.h5-glibc
+.i586-glibc
+.i686-glibc
+.imx6-glibc
+.jz47xx-glibc
+.makefile
+.am335x-glibc
+.omap543x-glibc
+.p5600-glibc
+.power8-glibc
+.power8le-glibc
+.power9-glibc
+.power9le-glibc
+.m1000-glibc
+.riscv64-glibc
+.rk328x-glibc
+.rk33xx-glibc
+.rk339x-glibc
+.s8xx-glibc
+.s9xx-glibc
+.x86_64-glibc
+
+# Hidden files (each file)
+.makefile
+.dist
+.rootfs
+
+# src & hw requires
+.src_requires
+.src_requires_depend
+.requires
+.requires_depend
+
+# Tarballs
+*.gz
+*.bz2
+*.lz
+*.xz
+*.tgz
+*.txz
+
+# Signatures
+*.asc
+*.sig
+*.sign
+*.sha1sum
+
+# Patches
+*.patch
+
+# Descriptions
+*.dsc
+*.txt
+
+# Default linux config files
+*.defconfig
+
+# backup copies
+*~