-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |