diff options
author | Even Rouault <even.rouault@mines-paris.org> | 2017-07-12 01:25:08 +0200 |
---|---|---|
committer | Kostya Serebryany <konstantin.s.serebryany@gmail.com> | 2017-07-11 16:25:08 -0700 |
commit | 1b382522dff0cad970364baa87d936bc9c4b421a (patch) | |
tree | 03f79bd706fd7ea733c3388e901a165aaee45a54 /projects/postgis | |
parent | bdf2abcbd5325f6bfcf07031d94af94b69b241d7 (diff) | |
download | oss-fuzz-1b382522dff0cad970364baa87d936bc9c4b421a.tar.gz |
Add PostGIS (#709)
* Add postgis to projects
* Update project.yaml
* Update Dockerfile
* have it pull default branch
Diffstat (limited to 'projects/postgis')
-rw-r--r-- | projects/postgis/Dockerfile | 22 | ||||
-rwxr-xr-x | projects/postgis/build.sh | 26 | ||||
-rw-r--r-- | projects/postgis/project.yaml | 6 |
3 files changed, 54 insertions, 0 deletions
diff --git a/projects/postgis/Dockerfile b/projects/postgis/Dockerfile new file mode 100644 index 000000000..d6d4a2cdd --- /dev/null +++ b/projects/postgis/Dockerfile @@ -0,0 +1,22 @@ +# Copyright 2016 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +FROM gcr.io/oss-fuzz-base/base-builder +MAINTAINER lr@pcorp.us +RUN apt-get update && apt-get install -y make autoconf automake libtool g++ postgresql-server-dev-9.5 libgeos-dev libproj-dev libxml2-dev pkg-config libjson-c-dev +RUN git clone --depth 1 https://git.osgeo.org/gogs/postgis/postgis.git postgis +WORKDIR postgis +COPY build.sh $SRC/ diff --git a/projects/postgis/build.sh b/projects/postgis/build.sh new file mode 100755 index 000000000..b2101374e --- /dev/null +++ b/projects/postgis/build.sh @@ -0,0 +1,26 @@ +#!/bin/bash -eu +# Copyright 2016 Google Inc. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +################################################################################ + +./autogen.sh +./configure --enable-static --without-raster --without-protobuf +cd liblwgeom +make clean -s +make -j$(nproc) -s +cd .. + +./fuzzers/build_google_oss_fuzzers.sh +./fuzzers/build_seed_corpus.sh diff --git a/projects/postgis/project.yaml b/projects/postgis/project.yaml new file mode 100644 index 000000000..4b0734bf8 --- /dev/null +++ b/projects/postgis/project.yaml @@ -0,0 +1,6 @@ +homepage: "http://postgis.net/" +primary_contact: "lr@pcorp.us" +auto_ccs: + - "even.rouault@gmail.com" + - "pramsey@cleverelephant.ca" + - "strk@kbt.io" |