pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/libmd devel/libmd: import package from wip.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/454d6aead25d
branches:  trunk
changeset: 390452:454d6aead25d
user:      vins <vins%pkgsrc.org@localhost>
date:      Mon Dec 19 15:08:04 2022 +0000

description:
devel/libmd: import package from wip.

diffstat:

 devel/libmd/DESCR         |  11 +++++
 devel/libmd/Makefile      |  18 +++++++++
 devel/libmd/PLIST         |  90 +++++++++++++++++++++++++++++++++++++++++++++++
 devel/libmd/buildlink3.mk |  12 ++++++
 devel/libmd/builtin.mk    |  47 ++++++++++++++++++++++++
 devel/libmd/distinfo      |   5 ++
 6 files changed, 183 insertions(+), 0 deletions(-)

diffs (207 lines):

diff -r 28e718dbd9c1 -r 454d6aead25d devel/libmd/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmd/DESCR Mon Dec 19 15:08:04 2022 +0000
@@ -0,0 +1,11 @@
+This library provides message digest functions found on BSD systems
+either on their libc (NetBSD, OpenBSD) or libmd (FreeBSD, DragonflyBSD,
+macOS, Solaris) libraries and lacking on others like GNU systems.
+
+The intention here is to have a library with extremely permissive
+licenses, that can be used by any project; that has a very small scope
+and as such can be part of the base system on most distributions; and
+that has a compatible API with the implementations on other systems and
+those that other projects are embedding, so that they can switch to use
+the system library instead of duplicating the same code all over the
+place.
diff -r 28e718dbd9c1 -r 454d6aead25d devel/libmd/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmd/Makefile      Mon Dec 19 15:08:04 2022 +0000
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2022/12/19 15:08:04 vins Exp $
+
+DISTNAME=      libmd-1.0.4
+CATEGORIES=    devel
+MASTER_SITES=  https://archive.hadrons.org/software/libmd/
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    vins%NetBSD.org@localhost
+HOMEPAGE=      https://www.hadrons.org/software/libmd/
+COMMENT=       Message Digest functions from BSD systems
+LICENSE=       modified-bsd AND 2-clause-bsd AND isc AND beer-ware
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL=   yes
+
+PKGCONFIG_OVERRIDE+=   src/libmd.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff -r 28e718dbd9c1 -r 454d6aead25d devel/libmd/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmd/PLIST Mon Dec 19 15:08:04 2022 +0000
@@ -0,0 +1,90 @@
+@comment $NetBSD: PLIST,v 1.1 2022/12/19 15:08:04 vins Exp $
+include/md2.h
+include/md4.h
+include/md5.h
+include/ripemd.h
+include/rmd160.h
+include/sha.h
+include/sha1.h
+include/sha2.h
+include/sha256.h
+include/sha512.h
+lib/libmd.la
+lib/pkgconfig/libmd.pc
+man/man3/MD2Data.3
+man/man3/MD2End.3
+man/man3/MD2File.3
+man/man3/MD2FileChunk.3
+man/man3/MD2Final.3
+man/man3/MD2Init.3
+man/man3/MD2Transform.3
+man/man3/MD2Update.3
+man/man3/MD4Data.3
+man/man3/MD4End.3
+man/man3/MD4File.3
+man/man3/MD4FileChunk.3
+man/man3/MD4Final.3
+man/man3/MD4Init.3
+man/man3/MD4Pad.3
+man/man3/MD4Transform.3
+man/man3/MD4Update.3
+man/man3/MD5Data.3
+man/man3/MD5End.3
+man/man3/MD5File.3
+man/man3/MD5FileChunk.3
+man/man3/MD5Final.3
+man/man3/MD5Init.3
+man/man3/MD5Pad.3
+man/man3/MD5Transform.3
+man/man3/MD5Update.3
+man/man3/RMD160Data.3
+man/man3/RMD160End.3
+man/man3/RMD160File.3
+man/man3/RMD160FileChunk.3
+man/man3/RMD160Final.3
+man/man3/RMD160Init.3
+man/man3/RMD160Pad.3
+man/man3/RMD160Transform.3
+man/man3/RMD160Update.3
+man/man3/SHA1Data.3
+man/man3/SHA1End.3
+man/man3/SHA1File.3
+man/man3/SHA1FileChunk.3
+man/man3/SHA1Final.3
+man/man3/SHA1Init.3
+man/man3/SHA1Pad.3
+man/man3/SHA1Transform.3
+man/man3/SHA1Update.3
+man/man3/SHA256Data.3
+man/man3/SHA256End.3
+man/man3/SHA256File.3
+man/man3/SHA256FileChunk.3
+man/man3/SHA256Final.3
+man/man3/SHA256Init.3
+man/man3/SHA256Pad.3
+man/man3/SHA256Transform.3
+man/man3/SHA256Update.3
+man/man3/SHA384Data.3
+man/man3/SHA384End.3
+man/man3/SHA384File.3
+man/man3/SHA384FileChunk.3
+man/man3/SHA384Final.3
+man/man3/SHA384Init.3
+man/man3/SHA384Pad.3
+man/man3/SHA384Transform.3
+man/man3/SHA384Update.3
+man/man3/SHA512Data.3
+man/man3/SHA512End.3
+man/man3/SHA512File.3
+man/man3/SHA512FileChunk.3
+man/man3/SHA512Final.3
+man/man3/SHA512Init.3
+man/man3/SHA512Pad.3
+man/man3/SHA512Transform.3
+man/man3/SHA512Update.3
+man/man3/md2.3
+man/man3/md4.3
+man/man3/md5.3
+man/man3/rmd160.3
+man/man3/sha1.3
+man/man3/sha2.3
diff -r 28e718dbd9c1 -r 454d6aead25d devel/libmd/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmd/buildlink3.mk Mon Dec 19 15:08:04 2022 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/12/19 15:08:04 vins Exp $
+
+BUILDLINK_TREE+=       libmd
+
+.if !defined(LIBMD_BUILDLINK3_MK)
+LIBMD_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libmd+=  libmd>=1.0.4
+BUILDLINK_PKGSRCDIR.libmd?=    ../../devel/libmd
+.endif # LIBMD_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -libmd
diff -r 28e718dbd9c1 -r 454d6aead25d devel/libmd/builtin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmd/builtin.mk    Mon Dec 19 15:08:04 2022 +0000
@@ -0,0 +1,47 @@
+# $NetBSD: builtin.mk,v 1.1 2022/12/19 15:08:04 vins Exp $
+
+BUILTIN_PKG:=  libmd
+
+BUILTIN_FIND_HEADERS_VAR:=     H_LIBMD
+BUILTIN_FIND_HEADERS.H_LIBMD=  sha.h
+BUILTIN_FIND_GREP.H_LIBMD=     \#define[       ]*LIBMD_SHA_H
+
+.include "../../mk/buildlink3/bsd.builtin.mk"
+
+###
+### Determine if there is a built-in implementation of the package and
+### set IS_BUILTIN.<pkg> appropriately ("yes" or "no").
+###
+.if !defined(IS_BUILTIN.libmd)
+IS_BUILTIN.libmd=      no
+.  if empty(H_LIBMD:M__nonexistent__) && empty(H_LIBMD:M${LOCALBASE}/*)
+IS_BUILTIN.libmd=      yes
+.  endif
+.endif
+MAKEVARS+=             IS_BUILTIN.libmd
+
+###
+### Determine whether we should use the built-in implementation.
+###
+.if !defined(USE_BUILTIN.libmd)
+.  if ${PREFER.libmd} == "pkgsrc"
+USE_BUILTIN.libmd=     no
+.  else
+USE_BUILTIN.libmd=     ${IS_BUILTIN.libmd}
+.    if defined(BUILTIN_PKG.libmd) && \
+        ${IS_BUILTIN.libmd:M[yY][eE][sS]}
+USE_BUILTIN.libmd=     yes
+.      for _dep_ in ${BUILDLINK_API_DEPENDS.libmd}
+.        if ${USE_BUILTIN.libmd:M[yY][eE][sS]}
+USE_BUILTIN.libmd!=                                                    \
+       if ${PKG_ADMIN} pmatch ${_dep_:Q} ${BUILTIN_PKG.libmd:Q}; then  \
+               ${ECHO} yes;                                            \
+       else                                                            \
+               ${ECHO} no;                                             \
+       fi
+.        endif
+.      endfor
+.    endif
+.  endif  # PREFER.libmd
+.endif
+MAKEVARS+=             USE_BUILTIN.libmd
diff -r 28e718dbd9c1 -r 454d6aead25d devel/libmd/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libmd/distinfo      Mon Dec 19 15:08:04 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/12/19 15:08:04 vins Exp $
+
+BLAKE2s (libmd-1.0.4.tar.xz) = 70e05620ff925f2462ce52d9c721a8424ce8481f6146ba97585c16feedbaa7c1
+SHA512 (libmd-1.0.4.tar.xz) = 731553ecc5e0e1eb228cced8fccd531fe31fb5c7627ca30013d287e1aeb8222959cf7498fbb7414bbabb967b25d4e8b0edd54fc47f6ccf55fc91087db0725ce3
+Size (libmd-1.0.4.tar.xz) = 264472 bytes



Home | Main Index | Thread Index | Old Index