| Summary: | [new port] www/hs-postgrest: PostgREST create a REST API to an existing Postgres database | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | Ports & Packages | Reporter: | Dmitry Wagin <dmitry.wagin> | ||||||||
| Component: | Individual Port(s) | Assignee: | Palle Girgensohn <girgen> | ||||||||
| Status: | Closed FIXED | ||||||||||
| Severity: | Affects Only Me | CC: | arrowd, girgen | ||||||||
| Priority: | --- | Keywords: | patch | ||||||||
| Version: | Latest | ||||||||||
| Hardware: | Any | ||||||||||
| OS: | Any | ||||||||||
| URL: | http://postgrest.org | ||||||||||
| Attachments: |
|
||||||||||
Created attachment 214816 [details]
hs-postgrest.diff
update to 7.0.1
Committed. Thanks! A commit references this bug: Author: girgen Date: Tue May 26 06:55:38 UTC 2020 New revision: 536575 URL: https://svnweb.freebsd.org/changeset/ports/536575 Log: Introducing PostgREST Using PostgREST is an alternative to manual CRUD programming. Custom API servers suffer problems. Writing business logic often duplicates, ignores or hobbles database structure. Object-relational mapping is a leaky abstraction leading to slow imperative code. The PostgREST philosophy establishes a single declarative source of truth: the data itself. WWW: http://postgrest.org/en/v7.0.0/ PR: 246383 Submitted by: Dmitry Wagin Changes: head/GIDs head/UIDs head/www/Makefile head/www/hs-postgrest/ head/www/hs-postgrest/Makefile head/www/hs-postgrest/distinfo head/www/hs-postgrest/files/ head/www/hs-postgrest/files/default.conf.in head/www/hs-postgrest/files/postgrest.in head/www/hs-postgrest/pkg-descr head/www/hs-postgrest/pkg-plist I'd appreciate getting haskell@ on hook when adding new Haskell ports. In the Makefile - "SKIP_CABAL_PLIST= yes" should be removed, along with "sbin/postgrest" from pkg-plist. - do-install target shouldn't contain INSTALL_PROGRAM part. Doesn't USES=cabal install this executable automatically? (In reply to Gleb Popov from comment #4) postgrest is a web server, custom installation is made for remove unnecessary shell wrapper. (In reply to Dmitry Wagin from comment #5) You mean wrapper generated by USES=cabal? What's wrong with it? (In reply to Gleb Popov from comment #6) wrapper is not needed. (In reply to Dmitry Wagin from comment #7) Most of Haskell ports don't need them, but that's not a reason to introduce additional complexity to ports. Please, provide a patch with changes I requested. (In reply to Gleb Popov from comment #8) Generating files that will not be used is wrong. Okay, since you're the maintainer I'll leave that to you. Created attachment 214883 [details]
without-custom-install.diff
IMHO complexity same + generated file
|
Created attachment 214387 [details] hs-postgrest.diff PostgREST is a standalone web server that turns your PostgreSQL database directly into a RESTful API. The structural constraints and permissions in the database determine the API endpoints and operations.