Browse Source

tengine: Added tengine 1.2.1 - A fork of Nginx by Taobao

user/amery/next/luajit
Nagy Karoly Gabriel 13 years ago
parent
commit
0509772d31
  1. 25
      network/tengine/config.hlp
  2. 31
      network/tengine/config.in
  3. 31
      network/tengine/tengine.cache
  4. 111
      network/tengine/tengine.conf
  5. 39
      network/tengine/tengine.desc

25
network/tengine/config.hlp

@ -0,0 +1,25 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../tengine/config.hlp
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
MENU_PKG_TENGINE
Additional config options for the Tengine package.
SDECFG_PKG_TENGINE_ADDON_MOD_RRDGRAPH
Enable RRD Graph Module
This module provides an HTTP interface to RRDtool's graphing facilities.
http://wiki.nginx.org/NgxRRDGraph
https://github.com/evanmiller/mod_rrd_graph

31
network/tengine/config.in

@ -0,0 +1,31 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../tengine/config.in
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
if pkgcheck tengine X; then
menu_begin MENU_PKG_TENGINE 'Tengine Package Options'
comment 'Addon modules (not officially supported)'
if pkgcheck rrdtool X; then
bool "RRD Graph Module" SDECFG_PKG_TENGINE_ADDON_MOD_RRDGRAPH 0
fi
# upload module
bool "Upload Module" SDECFG_PKG_TENGINE_ADDON_MOD_UPLOAD 0
# http echo module
bool "HTTP Echo Module" SDECFG_PKG_TENGINE_ADDON_MOD_HTTPECHO 0
menu_end
fi

31
network/tengine/tengine.cache

@ -0,0 +1,31 @@
[TIMESTAMP] 1323878458 Wed Dec 14 17:00:58 2011
[BUILDTIME] 25 (5)
[SIZE] 0.68 MB, 27 files
[DEP] bash
[DEP] binutils
[DEP] bzip2
[DEP] coreutils
[DEP] diffutils
[DEP] expat
[DEP] fhs
[DEP] findutils
[DEP] fontconfig
[DEP] freetype
[DEP] gawk
[DEP] gcc
[DEP] glibc
[DEP] grep
[DEP] libgd
[DEP] libjpeg
[DEP] libpng
[DEP] make
[DEP] openssl
[DEP] pcre
[DEP] runit
[DEP] sed
[DEP] sysfiles
[DEP] tar
[DEP] util-linux-ng
[DEP] zlib

111
network/tengine/tengine.conf

@ -0,0 +1,111 @@
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../tengine/tengine.conf
# Copyright (C) 2011 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
if [ $prefix_auto = 1 ]; then
# use a dedicated sysconfdir
sysconfdir="$sysconfdir/$pkg"
fi
cleanconfopt=0
confopt="--prefix=/$prefix"
[[ "$sysconfdir" = */$pkg ]] || sysconfdir=$sysconfdir/$pkg
var_append confopt ' ' "--conf-path=$sysconfdir/tengine.conf"
# set path to nginx.pid file
var_append confopt ' ' "--pid-path=$localstatedir/run/tengine.pid"
# set path to nginx.lock file
var_append confopt ' ' "--lock-path=$localstatedir/lock/tengine.lock"
# set temporary paths and files
for x in proxy fastcgi uwsgi client-body; do
var_append confopt ' ' "--http-$x-temp-path=$localstatedir/temp/${x//-/_}_temp"
done
# log directories
logdir="$localstatedir/log/$pkg"
var_append confopt ' ' "--http-log-path=$logdir/access.log"
var_append confopt ' ' "--error-log-path=$logdir/error.log"
# --with- with dependency
for x in openssl:ssl zlib:gzip_static; do
if pkginstalled "${x%:*}"; then
var_append confopt ' ' "--with-http_${x#*:}_module"
fi
done
# --without- because of dependency
for x in pcre:http_rewrite_module openssl:http-cache uwsgi:http_uwsgi_module; do
if ! pkginstalled "${x%:*}"; then
var_append confopt ' ' "--without-${x#*:}"
fi
done
# --with- without dependency
for x in stub_status flv realip; do
var_append confopt ' ' "--with-http_${x}_module"
done
# image_filter
has_all=yes
for x in libgd libjpeg libpng; do
if ! pkginstalled "$x"; then
has_all=no
break
fi
done
if [ "$has_all" = "yes" ]; then
var_append confopt ' ' "--with-http_image_filter_module"
fi
unset has_all
if atstage cross; then
var_append configprefix ' ' 'cross_compiling=yes'
for x in int long long_long char_p:void_p int:sig_atomic_t int:size_t int:off_t int:time_t; do
y=$(eval echo "\$arch_sizeof_${x%:*}")
var_append configprefix ' ' "ngx_cache_sizeof_${x#*:}=$y"
done
fi
var_append CC_WRAPPER_REMOVE " " "-Werror"
var_append INSTALL_WRAPPER_FILTER "|" "sed 's,sbin/nginx,sbin/tengine,'"
#
# 3rd party addon modules
#
# generic function to add a 3rd party addon module
# function parameters:
# $1: pattern of the modules source file name
#
pkg_tengine_add_module() {
mkdir -p $builddir/addon-module/$1
tar -v $taropt $( match_source_file -p $1 nginx ) --strip-components=1 -C $builddir/addon-module/$1
var_append confopt ' ' "--add-module=../addon-module/$1"
}
# rrd graph module
if [ "$SDECFG_PKG_TENGINE_ADDON_MOD_RRDGRAPH" == 1 ] ; then
pkgprefix -t rrdtool
hook_add preconf 5 "pkg_tengine_add_module mod_rrd_graph"
fi
if [ "$SDECFG_PKG_TENGINE_ADDON_MOD_UPLOAD" == 1 ] ; then
hook_add preconf 5 "pkg_tengine_add_module nginx_upload_module"
fi
if [ "$SDECFG_PKG_TENGINE_ADDON_MOD_HTTPECHO" == 1 ] ; then
hook_add preconf 5 "pkg_tengine_add_module echo-nginx-module"
fi

39
network/tengine/tengine.desc

@ -0,0 +1,39 @@
[COPY] --- SDE-COPYRIGHT-NOTE-BEGIN ---
[COPY] This copyright note is auto-generated by ./scripts/Create-CopyPatch.
[COPY]
[COPY] Filename: package/.../tengine/tengine.desc
[COPY] Copyright (C) 2011 The OpenSDE Project
[COPY]
[COPY] More information can be found in the files COPYING and README.
[COPY]
[COPY] This program is free software; you can redistribute it and/or modify
[COPY] it under the terms of the GNU General Public License as published by
[COPY] the Free Software Foundation; version 2 of the License. A copy of the
[COPY] GNU General Public License can be found in the file COPYING.
[COPY] --- SDE-COPYRIGHT-NOTE-END ---
[I] A fork of Nginx by Taobao
[T] Tengine is a web server developed by the Servers Platform Team at Taobao.
[T] It is based on the popular Nginx HTTP server with many convenient
[T] features. Tengine has been proven stable and efficient on very busy
[T] websites, e.g. taobao.com and tmall.com.
[U] http://tengine.taobao.org
[A] Igor Sysoev <igor@sysoev.ru>
[A] Alibaba Group Holding Limited
[M] Nagy Karoly Gabriel <nagy.karoly@opensde.org>
[C] extra/network
[L] BSD
[S] Stable
[V] 1.2.1
[P] X -----5---9 700.000
[D] 1220460728 tengine-1.2.1.tar.gz http://tengine.taobao.org/download/
[D] 2799334071 nginx-mod_rrd_graph-0.2.0.tar.gz !http://wiki.nginx.org/images/9/9d/Mod_rrd_graph-0.2.0.tar.gz
[D] 417317636 nginx_upload_module-2.2.0.tar.gz http://www.grid.net.ru/nginx/download/
[D] 2748022907 echo-nginx-module-v0.36.tar.gz !https://github.com/agentzh/echo-nginx-module/tarball/v0.36
Loading…
Cancel
Save