Skip to content

Commit

Permalink
Added pg_firewall
Browse files Browse the repository at this point in the history
  • Loading branch information
uu committed Aug 29, 2015
1 parent 774f62f commit c94a485
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-db/pg_firewall/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
EBUILD pg_firewall-0.8.ebuild 913 SHA256 f2a5bd19f6f80fa79e51ad308baab5d1cb93c2a26ffc5c2630ff0bf407caa535 SHA512 a319a516c60de3249d901f22e2052adfce31f514928c043d601bc849679e33c584d651c53c11b4673d0b8d966610b955de2b9226ce8d520dc380c6db8556cc6b WHIRLPOOL 5d0c647f7bce3313a14dfb58ec08011722e00fce6c38ec791bc9b626e15404b0197918278c79d2d255d4331dd1aad059cea1772203d4ac77404cf8c2d694dc04
49 changes: 49 additions & 0 deletions dev-db/pg_firewall/pg_firewall-0.8.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit git-2

DESCRIPTION="SQL Firewall Extension for PostgreSQL"
HOMEPAGE="https://github.com/uptimejp/sql_firewall"
SRC_URI=""
EGIT_REPO_URI="git://github.com/uptimejp/sql_firewall.git"
EGIT_BRANCH="master"
EGIT_COMMIT="v0_8"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="dev-db/postgresql:9.4"
RDEPEND="${DEPEND}"

MY_P="sql_firewall"

src_compile() {
emake -j1 USE_PGXS=1
}

src_install() {
pg_libdir=$(pg_config --pkglibdir)
insinto ${pg_libdir}
doins ${MY_P}.so

pg_shared=$(pg_config --sharedir)
insinto ${pg_shared}/extension
doins ${MY_P}.control
doins ${MY_P}--${PV}.sql

dodoc README.${MY_P}
}

pkg_config() {
einfo
einfo "Enable firewall by creating an extension with:"
einfo
einfo "your_database=# CREATE EXTENSION sql_firewall;"
einfo
}

0 comments on commit c94a485

Please sign in to comment.