summaryrefslogtreecommitdiff
path: root/www/libpsl
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2018-07-28 12:25:20 +0000
committerbsiegert <bsiegert@pkgsrc.org>2018-07-28 12:25:20 +0000
commitdf9a85f36e65c76f5c76e8427721bf0fbd270ba8 (patch)
treefbfa1707df71af304b5039edc7fa575547a2aef9 /www/libpsl
parentda2e26a8f51f7763d1abc977eaafd130c30ecaac (diff)
downloadpkgsrc-df9a85f36e65c76f5c76e8427721bf0fbd270ba8.tar.gz
Add a package for libpsl-0.20.2. PR pkg/53459.
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 (see post from Jeffry Walton) 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
Diffstat (limited to 'www/libpsl')
-rw-r--r--www/libpsl/DESCR21
-rw-r--r--www/libpsl/Makefile29
-rw-r--r--www/libpsl/PLIST7
-rw-r--r--www/libpsl/buildlink3.mk14
-rw-r--r--www/libpsl/distinfo6
5 files changed, 77 insertions, 0 deletions
diff --git a/www/libpsl/DESCR b/www/libpsl/DESCR
new file mode 100644
index 00000000000..9f73c9925b3
--- /dev/null
+++ b/www/libpsl/DESCR
@@ -0,0 +1,21 @@
+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 (see post from Jeffry Walton) 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
diff --git a/www/libpsl/Makefile b/www/libpsl/Makefile
new file mode 100644
index 00000000000..050abccda50
--- /dev/null
+++ b/www/libpsl/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1 2018/07/28 12:25:20 bsiegert Exp $
+
+DISTNAME= libpsl-0.20.2
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_GITHUB:=rockdaboot/}
+GITHUB_RELEASE= ${DISTNAME}
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= https://github.com/rockdaboot/libpsl/
+COMMENT= Library to handle the Public Suffix List
+LICENSE= mit
+
+USE_TOOLS+= gmake pkg-config
+USE_LIBTOOL= yes
+USE_LANGUAGES= c c++
+GNU_CONFIGURE= yes
+
+PYTHON_FOR_BUILD_ONLY= yes
+REPLACE_PYTHON= src/psl-make-dafsa
+
+CONFIGURE_ARGS+= --disable-gtk-doc
+CONFIGURE_ARGS+= --enable-runtime=libicu
+
+PKGCONFIG_OVERRIDE+= libpsl.pc.in
+
+.include "../../lang/python/application.mk"
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../textproc/icu/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/libpsl/PLIST b/www/libpsl/PLIST
new file mode 100644
index 00000000000..74478280808
--- /dev/null
+++ b/www/libpsl/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1 2018/07/28 12:25:20 bsiegert Exp $
+bin/psl
+include/libpsl.h
+lib/libpsl.la
+lib/pkgconfig/libpsl.pc
+man/man1/psl-make-dafsa.1
+man/man1/psl.1
diff --git a/www/libpsl/buildlink3.mk b/www/libpsl/buildlink3.mk
new file mode 100644
index 00000000000..55789c58284
--- /dev/null
+++ b/www/libpsl/buildlink3.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/07/28 12:25:20 bsiegert Exp $
+
+BUILDLINK_TREE+= libpsl
+
+.if !defined(LIBPSL_BUILDLINK3_MK)
+LIBPSL_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libpsl+= libpsl>=0.20.2
+BUILDLINK_PKGSRCDIR.libpsl?= ../../www/libpsl
+
+#.include "../../textproc/icu/buildlink3.mk"
+.endif # LIBPSL_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -libpsl
diff --git a/www/libpsl/distinfo b/www/libpsl/distinfo
new file mode 100644
index 00000000000..be0fc5b2b13
--- /dev/null
+++ b/www/libpsl/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2018/07/28 12:25:20 bsiegert Exp $
+
+SHA1 (libpsl-0.20.2.tar.gz) = 890376d6038652911cfa853ccfb5b993ae0743ee
+RMD160 (libpsl-0.20.2.tar.gz) = 418230d331d2976c111263f3c1280d47929f48cb
+SHA512 (libpsl-0.20.2.tar.gz) = fa9f6f7f0447d9fe00f5dfca5262c56ff26217eea44d0f7fc1e5d982224c41874e753f0aa06dd9e5d7d03d4f04e3dacd4f36034cc8dd0fc6e2c28b49a23e62fe
+Size (libpsl-0.20.2.tar.gz) = 9228099 bytes