BSD Ports

dns/libpsl 0.21.5_1 MidnightBSD

C library to handle the Public Suffix List

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
mit
Categories
dns

Description

A "public suffix" is a domain name under which Internet users can directly register own names.

Browsers and other web clients can use it to

  • avoid privacy-leaking "supercookies"
  • avoid privacy-leaking "super domain" certificates [1]
  • domain highlighting parts of the domain in a user interface
  • sorting domain lists by site

Libpsl...

  • has built-in PSL data for fast access
  • allows to load PSL data from files
  • checks if a given domain is a "public suffix"
  • provides immediate cookie domain verification
  • finds the longest public part of a given domain
  • finds the shortest private part of a given domain
  • works with international domains (UTF-8 and IDNA2008 Punycode)
  • is thread-safe
  • handles IDNA2008 UTS#46 (libicu is used by psl2c if installed)

[1] http://lists.gnu.org/archive/html/bug-wget/2014-03/msg00093.html

In the other systems

SystemPortVersion
MidnightBSDdns/libpsl0.21.5_1
FreeBSDdns/libpsl0.23.3
OpenBSDnet/libpsl0.21.1p1
NetBSDwww/libpsl0.23.3
DragonFlydns/libpsl0.21.5_2
HardenedBSDdns/libpsl0.23.3
GhostBSDdns/libpsl0.23.3
OPNsensedns/libpsl0.21.5_2

Install

Binary package:

mport install libpsl

From mports:

cd /usr/mports/dns/libpsl && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	libpsl>0:dns/libpsl
LIB_DEPENDS=	libpsl.so:dns/libpsl

Dependencies

As this port's Makefile names them.

Build 1

Build dependencies 1

Configuration

Options name: dns_libpsl

OptionDefaultDescription
ICUoffUse devel/icu (IDNA2008 UTS#46 library)
IDNoffUse dns/libidn (IDNA2003 library)
IDN2onUse dns/libidn2 (IDNA2008 library)
USES
localbase:ldflags meson pkgconfig python:build shebangfix tar:lz
Service scripts
none

Files

Manual pages 1
  • psl(1)
pkg-plist 8
  • bin/psl
  • include/libpsl.h
  • lib/libpsl.a
  • lib/libpsl.so
  • lib/libpsl.so.5
  • lib/libpsl.so.5.3.5
  • libdata/pkgconfig/libpsl.pc
  • share/man/man1/psl.1.gz
distinfo 1
FileSizeSHA256
libpsl-0.21.5.tar.lz2.016549e+069a9f6a8c6edba650cf9ea55475cd172dd28487316804e9c73202d97572cd3a2d
Master sites 1
  • https://github.com/rockdaboot/libpsl/releases/download/0.21.5/