Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www www: Add lua-psl



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2a0742f2f718
branches:  trunk
changeset: 435502:2a0742f2f718
user:      nia <nia%pkgsrc.org@localhost>
date:      Wed Jul 08 14:50:05 2020 +0000

description:
www: Add lua-psl

lua-psl is a set of lua bindings to libpsl, a C library that handles the
Public Suffix List (PSL).

The PSL is a list of domains where there may be sub-domains outside of the
administrator's control, e.g. the administrator of '.org' does not manage
'NetBSD.org'.

This list has found use in many internet technologies including:

  - preventing cross-domain cookie leakage
  - allowance of issuing wildcard TLS certificates

More information can be found at publicsuffix.org

diffstat:

 www/Makefile               |   3 ++-
 www/lua-psl/DESCR          |  13 +++++++++++++
 www/lua-psl/Makefile       |  27 +++++++++++++++++++++++++++
 www/lua-psl/PLIST          |   2 ++
 www/lua-psl/distinfo       |   6 ++++++
 www/lua-psl/files/Makefile |  12 ++++++++++++
 6 files changed, 62 insertions(+), 1 deletions(-)

diffs (97 lines):

diff -r 24014eb366f7 -r 2a0742f2f718 www/Makefile
--- a/www/Makefile      Wed Jul 08 14:49:14 2020 +0000
+++ b/www/Makefile      Wed Jul 08 14:50:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1465 2020/07/08 09:28:22 pin Exp $
+# $NetBSD: Makefile,v 1.1466 2020/07/08 14:50:05 nia Exp $
 #
 
 COMMENT=       Packages related to the World Wide Web
@@ -194,6 +194,7 @@
 SUBDIR+=       loggerhead
 SUBDIR+=       logswan
 SUBDIR+=       lua-curl
+SUBDIR+=       lua-psl
 SUBDIR+=       lynx
 SUBDIR+=       mMosaic
 SUBDIR+=       make_album
diff -r 24014eb366f7 -r 2a0742f2f718 www/lua-psl/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-psl/DESCR Wed Jul 08 14:50:05 2020 +0000
@@ -0,0 +1,13 @@
+lua-psl is a set of lua bindings to libpsl, a C library that handles the
+Public Suffix List (PSL).
+
+The PSL is a list of domains where there may be sub-domains outside of the
+administrator's control, e.g. the administrator of '.org' does not manage
+'NetBSD.org'.
+
+This list has found use in many internet technologies including:
+
+  - preventing cross-domain cookie leakage
+  - allowance of issuing wildcard TLS certificates
+
+More information can be found at publicsuffix.org
diff -r 24014eb366f7 -r 2a0742f2f718 www/lua-psl/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-psl/Makefile      Wed Jul 08 14:50:05 2020 +0000
@@ -0,0 +1,27 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 14:50:05 nia Exp $
+
+DISTNAME=      lua-psl-0.3
+PKGNAME=       ${LUA_PKGPREFIX}-${DISTNAME:S/^lua-//1}
+CATEGORIES=    www lua
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=daurnimator/}
+GITHUB_PROJECT=        lua-psl
+GITHUB_TAG=    v${PKGVERSION_NOREV}
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://daurnimator.github.io/lua-psl/
+COMMENT=       Lua bindings to libpsl, a library that handles the Public Suffix List
+LICENSE=       mit
+
+BUILD_DIRS+=   psl
+
+INSTALLATION_DIRS+=    ${LUA_CDIR}
+
+pre-build:
+       ${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/psl/Makefile
+
+do-install:
+       ${INSTALL_LIB} ${WRKSRC}/psl/psl.so ${DESTDIR}${PREFIX}/${LUA_CDIR}
+
+.include "../../lang/lua/module.mk"
+.include "../../www/libpsl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 24014eb366f7 -r 2a0742f2f718 www/lua-psl/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-psl/PLIST Wed Jul 08 14:50:05 2020 +0000
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1 2020/07/08 14:50:05 nia Exp $
+${LUA_CDIR}/psl.so
diff -r 24014eb366f7 -r 2a0742f2f718 www/lua-psl/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-psl/distinfo      Wed Jul 08 14:50:05 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/07/08 14:50:05 nia Exp $
+
+SHA1 (lua-psl-0.3.tar.gz) = 7487a6c9a23c6baacb786b251641ca96f08e6825
+RMD160 (lua-psl-0.3.tar.gz) = 978d648462ae6a20439ed0ae7056195340b87216
+SHA512 (lua-psl-0.3.tar.gz) = b77806f6deb4c668a7ce97583b41297494ef91a05a0f44041d17b52ef6542180f332169577195159bba554a0909fed697bd5f6e5e4de9174273b54739554f79f
+Size (lua-psl-0.3.tar.gz) = 9275 bytes
diff -r 24014eb366f7 -r 2a0742f2f718 www/lua-psl/files/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/lua-psl/files/Makefile        Wed Jul 08 14:50:05 2020 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2020/07/08 14:50:05 nia Exp $
+
+CFLAGS+=       -fPIC -Wall
+LDFLAGS+=      -shared -lpsl
+
+all: psl.so
+
+.c.o:
+       $(CC) $(CFLAGS) -c $<
+
+psl.so: psl.o
+       $(CC) $(LDFLAGS) -o $@ psl.o



Home | Main Index | Thread Index | Old Index