Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37038413
en ru br
Репозитории ALT

Группа :: Базы Данных
Пакет: postgresql11-iplike

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define pg_ver 11
%define prog_name iplike

Name: postgresql%pg_ver-%prog_name
Version: 2.3.0
Release: alt2
License: GPL
Group: Databases
Summary: PostgreSQL complex IP Address text field query
Source: %prog_name-%version.tar.gz
URL: http://www.opennms.org

# Automatically added by buildreq on Thu Jun 21 2007

#BuildRequires: gcc-c++ postgresql%pg_ver-server-devel
BuildRequires: postgresql%pg_ver-server-devel

Requires: postgresql%pg_ver-server
Conflicts: iplike
Conflicts: libiplike

%description
PostgreSQL function for doing complex IP address queries
on a text field.

%prep
%setup -n %prog_name-%version

%build
%autoreconf
%configure --with-pgsql=%_bindir/pg_server_config
%make

%install
%makeinstall_std

%post
echo "Execute the following psql command inside any database that you want to install or update:"
echo "CREATE OR REPLACE FUNCTION iplike(i_ipaddress text,i_rule text) RETURNS bool AS '$$libdir/iplike.so' LANGUAGE 'c' RETURNS NULL ON NULL INPUT;"
%files
%_libdir/pgsql/*.so

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin