Skip to content

Commit

Permalink
TS-3739 Enable build, and change default lib path such that we do not…
Browse files Browse the repository at this point in the history
… look in lib/ts by default
  • Loading branch information
zwoop committed Jul 9, 2015
1 parent f426e63 commit c8c5ba8
Show file tree
Hide file tree
Showing 52 changed files with 67 additions and 79 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Expand Up @@ -56,11 +56,14 @@ cmd/traffic_layout/traffic_layout
cmd/traffic_via/traffic_via
cmd/traffic_wccp/traffic_wccp

lib/stamp-h1
lib/ink_autoconf.h
lib/ink_autoconf.h.in
lib/ts/stamp-h1
lib/ts/ink_autoconf.h
lib/ts/ink_autoconf.h.in
lib/ts/ink_config.h
lib/ts/apidefs.h
lib/ts/stamp-h1
lib/ts/CompileParseRules
lib/ts/ParseRulesCType
lib/ts/ParseRulesCTypeToLower
Expand Down
3 changes: 1 addition & 2 deletions build/plugins.mk
Expand Up @@ -25,8 +25,7 @@ TS_PLUGIN_LDFLAGS = \
TS_PLUGIN_CPPFLAGS = \
-I$(top_builddir)/proxy/api \
-I$(top_srcdir)/proxy/api \
-I$(top_builddir)/lib/ts \
-I$(top_srcdir)/lib/ts \
-I$(top_builddir)/lib \
-I$(top_srcdir)/lib

# Provide a default AM_CPPFLAGS. Automake handles this correctly, but libtool
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Expand Up @@ -41,7 +41,7 @@ AC_CONFIG_AUX_DIR([build/aux])
AC_CONFIG_SRCDIR([proxy/Main.cc])
AC_CONFIG_MACRO_DIR([build])
AM_INIT_AUTOMAKE([-Wall -Werror tar-ustar foreign no-installinfo no-installman subdir-objects 1.9.2])
AC_CONFIG_HEADERS([lib/ts/ink_autoconf.h])
AC_CONFIG_HEADERS([lib/ink_autoconf.h])

# Configure with --disable-silent-rules to get verbose output. For more info, see
# http://www.gnu.org/software/automake/manual/html_node/Automake-silent_002drules-Option.html
Expand Down
2 changes: 1 addition & 1 deletion example/add-header/add-header.c
Expand Up @@ -37,7 +37,7 @@
#include <string.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

static TSMBuffer hdr_bufp;
static TSMLoc hdr_loc;
Expand Down
2 changes: 1 addition & 1 deletion example/append-transform/append-transform.c
Expand Up @@ -41,7 +41,7 @@
#include <string.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#define ASSERT_SUCCESS(_x) TSAssert((_x) == TS_SUCCESS)

Expand Down
2 changes: 1 addition & 1 deletion example/basic-auth/basic-auth.c
Expand Up @@ -28,7 +28,7 @@
#include <unistd.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"


static char base64_codes[256];
Expand Down
2 changes: 1 addition & 1 deletion example/blacklist-1/blacklist-1.c
Expand Up @@ -25,7 +25,7 @@
#include <string.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#define MAX_NSITES 500
#define RETRY_TIME 10
Expand Down
2 changes: 1 addition & 1 deletion example/bnull-transform/bnull-transform.c
Expand Up @@ -37,7 +37,7 @@
#include <stdio.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#define TS_NULL_MUTEX NULL
#define STATE_BUFFER_DATA 0
Expand Down
2 changes: 1 addition & 1 deletion example/cache-scan/cache-scan.cc
Expand Up @@ -32,7 +32,7 @@

#include "ts/ts.h"
#include "ts/experimental.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

static TSCont global_contp;

Expand Down
2 changes: 1 addition & 1 deletion example/hello/hello.c
Expand Up @@ -24,7 +24,7 @@
#include <stdio.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

void
TSPluginInit(int argc ATS_UNUSED, const char *argv[] ATS_UNUSED)
Expand Down
2 changes: 1 addition & 1 deletion example/null-transform/null-transform.c
Expand Up @@ -36,7 +36,7 @@
#include <unistd.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

typedef struct {
TSVIO output_vio;
Expand Down
2 changes: 1 addition & 1 deletion example/output-header/output-header.c
Expand Up @@ -36,7 +36,7 @@
#include <unistd.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#define DEBUG_TAG "output-header"

Expand Down
2 changes: 1 addition & 1 deletion example/protocol/Protocol.c
Expand Up @@ -23,7 +23,7 @@

#include "Protocol.h"
#include "TxnSM.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"
#include <math.h>

/* global variable */
Expand Down
2 changes: 1 addition & 1 deletion example/protocol/TxnSM.c
Expand Up @@ -23,7 +23,7 @@

#include <sys/types.h>
#include <netinet/in.h>
#include "ink_defs.h"
#include "ts/ink_defs.h"

#include "TxnSM.h"

Expand Down
2 changes: 1 addition & 1 deletion example/query-remap/query-remap.c
Expand Up @@ -27,7 +27,7 @@

#include "ts/ts.h"
#include "ts/remap.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#define PLUGIN_NAME "query_remap"

Expand Down
2 changes: 1 addition & 1 deletion example/remap/remap.cc
Expand Up @@ -44,7 +44,7 @@
#include <sys/time.h>
#include <sys/resource.h>

#include "ink_defs.h"
#include "ts/ink_defs.h"
#include "ts/ts.h"
#include "ts/remap.h"

Expand Down
2 changes: 1 addition & 1 deletion example/replace-header/replace-header.c
Expand Up @@ -37,7 +37,7 @@
#include <ctype.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

static void
replace_header(TSHttpTxn txnp)
Expand Down
2 changes: 1 addition & 1 deletion example/response-header-1/response-header-1.c
Expand Up @@ -53,7 +53,7 @@
#include <ctype.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

static int init_buffer_status;

Expand Down
2 changes: 1 addition & 1 deletion example/server-transform/server-transform.c
Expand Up @@ -57,7 +57,7 @@
#include <netinet/in.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#define STATE_BUFFER 1
#define STATE_CONNECT 2
Expand Down
2 changes: 1 addition & 1 deletion example/ssl-sni-whitelist/ssl-sni-whitelist.cc
Expand Up @@ -27,7 +27,7 @@
#include <memory.h>
#include <inttypes.h>
#include <ts/ts.h>
#include <ink_config.h>
#include "ts/ink_config.h"
#include <tsconfig/TsValue.h>
#include <openssl/ssl.h>
#include <getopt.h>
Expand Down
2 changes: 1 addition & 1 deletion example/ssl-sni/ssl-sni.cc
Expand Up @@ -30,7 +30,7 @@
#include <memory.h>
#include <inttypes.h>
#include <ts/ts.h>
#include <ink_config.h>
#include "ts/ink_config.h"
#include <tsconfig/TsValue.h>
#include <openssl/ssl.h>
#include <getopt.h>
Expand Down
2 changes: 1 addition & 1 deletion example/thread-1/thread-1.c
Expand Up @@ -35,7 +35,7 @@
#include <string.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

static void *
reenable_txn(void *data)
Expand Down
2 changes: 1 addition & 1 deletion example/thread-pool/psi.c
Expand Up @@ -52,7 +52,7 @@

#include "ts/ts.h"
#include "thread.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#define DBG_TAG "xpsi"

Expand Down
2 changes: 1 addition & 1 deletion example/thread-pool/thread.c
Expand Up @@ -27,7 +27,7 @@
#include "ts/ts.h"

#include "thread.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#define DBGTAG "xthread"

Expand Down
2 changes: 1 addition & 1 deletion example/version/version.c
Expand Up @@ -24,7 +24,7 @@
#include <stdio.h>

#include "ts/ts.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

void
TSPluginInit(int argc ATS_UNUSED, const char *argv[] ATS_UNUSED)
Expand Down
5 changes: 3 additions & 2 deletions plugins/cacheurl/cacheurl.cc
Expand Up @@ -27,8 +27,9 @@

#include "ts/ts.h"
#include "ts/remap.h"
#include "ink_defs.h"
#include "ink_memory.h"

#include "ts/ink_defs.h"
#include "ts/ink_memory.h"

#include <string>
#include <vector>
Expand Down
18 changes: 1 addition & 17 deletions plugins/conf_remap/conf_remap.cc
Expand Up @@ -18,7 +18,7 @@

#include "ts/ts.h"
#include "ts/remap.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#include <stdio.h>
#include <string.h>
Expand Down Expand Up @@ -334,19 +334,3 @@ TSRemapDoRemap(void *ih, TSHttpTxn rh, TSRemapRequestInfo * /* rri ATS_UNUSED */

return TSREMAP_NO_REMAP; // This plugin never rewrites anything.
}


/*
local variables:
mode: C++
indent-tabs-mode: nil
c-basic-offset: 2
c-comment-only-line-offset: 0
c-file-offsets: ((statement-block-intro . +)
(label . 0)
(statement-cont . +)
(innamespace . 0))
end:
Indent with: /usr/bin/indent -ncs -nut -npcs -l 120 logstats.cc
*/
6 changes: 2 additions & 4 deletions plugins/experimental/Makefile.am
Expand Up @@ -40,10 +40,8 @@ SUBDIRS = \
stale_while_revalidate \
url_sig \
xdebug \
mp4

# Commented out for now, since it breaks on OSX
# stream_editor
mp4 \
stream_editor

if HAS_MYSQL
SUBDIRS += mysql_remap
Expand Down
3 changes: 2 additions & 1 deletion plugins/experimental/authproxy/authproxy.cc
Expand Up @@ -37,7 +37,8 @@
#include <arpa/inet.h>
#include <sys/param.h>
#include <ts/remap.h>
#include <ink_config.h>

#include "ts/ink_config.h"

using std::strlen;

Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/background_fetch/configs.h
Expand Up @@ -28,7 +28,7 @@
#include <stdlib.h>

#include "rules.h"
#include "ink_atomic.h"
#include "ts/ink_atomic.h"

// Constants
const char PLUGIN_NAME[] = "background_fetch";
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/balancer/balancer.cc
Expand Up @@ -30,7 +30,7 @@
#include <iterator>

// Using ink_inet API is cheating, but I was too lazy to write new IPv6 address parsing routines ;)
#include "ink_inet.h"
#include "ts/ink_inet.h"

// The policy type is the first comma-separated token.
static BalancerInstance *
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/cache_promote/cache_promote.cc
Expand Up @@ -30,7 +30,7 @@

#include "ts/ts.h"
#include "ts/remap.h"
#include "ink_config.h"
#include "ts/ink_config.h"


static const char *PLUGIN_NAME = "cache_promote";
Expand Down
3 changes: 2 additions & 1 deletion plugins/experimental/epic/epic.cc
Expand Up @@ -29,7 +29,8 @@
#include <inttypes.h>
#include <set>
#include <string>
#include "ink_defs.h"

#include "ts/ink_defs.h"

#define debug_tag(tag, fmt, ...) \
do { \
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/esi/combo_handler.cc
Expand Up @@ -33,7 +33,7 @@
#include "ts/ts.h"
#include "ts/experimental.h"
#include "ts/remap.h"
#include "ink_defs.h"
#include "ts/ink_defs.h"

#include "HttpDataFetcherImpl.h"
#include "gzip.h"
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/esi/esi.cc
Expand Up @@ -21,7 +21,7 @@
limitations under the License.
*/

#include "ink_defs.h"
#include "ts/ink_defs.h"

#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/esi/serverIntercept.cc
Expand Up @@ -21,7 +21,7 @@
limitations under the License.
*/

#include "ink_defs.h"
#include "ts/ink_defs.h"
#include "serverIntercept.h"

#include <string>
Expand Down
4 changes: 2 additions & 2 deletions plugins/experimental/regex_revalidate/regex_revalidate.c
Expand Up @@ -19,8 +19,8 @@
limitations under the License.
*/

#include "ink_defs.h"
#include "ink_platform.h"
#include "ts/ink_defs.h"
#include "ts/ink_platform.h"

#include <stdlib.h>
#include <stdio.h>
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/sslheaders/expand.cc
Expand Up @@ -17,7 +17,7 @@
*/

#include "sslheaders.h"
#include <ink_defs.h>
#include "ts/ink_defs.h"

#include <openssl/x509.h>
#include <openssl/pem.h>
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/sslheaders/sslheaders.cc
Expand Up @@ -17,7 +17,7 @@
*/

#include "sslheaders.h"
#include "ink_memory.h"
#include "ts/ink_memory.h"

#include <getopt.h>
#include <openssl/ssl.h>
Expand Down
2 changes: 1 addition & 1 deletion plugins/experimental/sslheaders/util.cc
Expand Up @@ -18,7 +18,7 @@

#include "sslheaders.h"
#include <memory>
#include <ink_defs.h>
#include "ts/ink_defs.h"

// Count of fields (not including SSL_HEADERS_FIELD_NONE).
#define NUMFIELDS (SSL_HEADERS_FIELD_MAX - 1)
Expand Down

0 comments on commit c8c5ba8

Please sign in to comment.