Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
3 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
EXTENSION = http
DATA = http--1.0--1.1.sql \
    http--1.1--1.2.sql \
    http--1.2--1.3.sql \
    http--1.3--1.4.sql \
    http--1.4--1.5.sql \
    http--1.5--1.6.sql \
    http--1.6--1.6.1.sql \
    http--1.6.1--1.6.sql \
    http--1.6.sql
PGFILEDESC = "HTTP client for PostgreSQL, retrieve a web page from inside the database."
#local only with "docker run -d -p 9080:80 kennethreitz/httpbin"
#REGRESS = http http-ver
 
MODULE_big = http
OBJS = http.o
 
UNAME := $(shell uname)
ifeq ($(UNAME), Linux)
CURL_CONFIG = curl-config
CURL_INC := $(shell $(CURL_CONFIG) --cflags)
ifeq ($(CURL_INC),)
CURL_INC := -I/usr/local/include
endif
PG_CPPFLAGS = $(CURL_INC)
SHLIB_LINK = $(shell $(CURL_CONFIG) --libs)
else
PG_CPPFLAGS = -Iwincurl
SHLIB_LINK = -lcurl
endif
 
ifdef USE_PGXS
PGXS := $(shell pg_config --pgxs)
include $(PGXS)
else
subdir = contrib/http
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
include $(top_srcdir)/contrib/contrib-global.mk
endif