pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/hs-atomic-write devel/hs-atomic-write: import hs...
details: https://anonhg.NetBSD.org/pkgsrc/rev/128459d701f1
branches: trunk
changeset: 374554:128459d701f1
user: pho <pho%pkgsrc.org@localhost>
date: Wed Feb 23 16:52:15 2022 +0000
description:
devel/hs-atomic-write: import hs-atomic-write-0.2.0.7
Atomically write to a file on POSIX-compliant systems while preserving
permissions.
On most Unix systems, mv is an atomic operation. This makes it simple to
write to a file atomically just by using the mv operation. However, this
will destroy the permissions on the original file. This library does the
following to preserve permissions while atomically writing to a file:
* If an original file exists, take those permissions and apply them to the
temp file before mving the file into place.
* If the original file does not exist, create a following with default
permissions (based on the currently-active umask).
This way, when the file is mv'ed into place, the permissions will be the
ones held by the original file.
diffstat:
devel/hs-atomic-write/DESCR | 16 +++++++++
devel/hs-atomic-write/Makefile | 13 +++++++
devel/hs-atomic-write/PLIST | 62 +++++++++++++++++++++++++++++++++++++
devel/hs-atomic-write/buildlink3.mk | 16 +++++++++
devel/hs-atomic-write/distinfo | 5 ++
5 files changed, 112 insertions(+), 0 deletions(-)
diffs (132 lines):
diff -r 3d0f7cf81fb1 -r 128459d701f1 devel/hs-atomic-write/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-atomic-write/DESCR Wed Feb 23 16:52:15 2022 +0000
@@ -0,0 +1,16 @@
+Atomically write to a file on POSIX-compliant systems while preserving
+permissions.
+
+On most Unix systems, mv is an atomic operation. This makes it simple to
+write to a file atomically just by using the mv operation. However, this
+will destroy the permissions on the original file. This library does the
+following to preserve permissions while atomically writing to a file:
+
+* If an original file exists, take those permissions and apply them to the
+ temp file before mving the file into place.
+
+* If the original file does not exist, create a following with default
+ permissions (based on the currently-active umask).
+
+This way, when the file is mv'ed into place, the permissions will be the
+ones held by the original file.
diff -r 3d0f7cf81fb1 -r 128459d701f1 devel/hs-atomic-write/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-atomic-write/Makefile Wed Feb 23 16:52:15 2022 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: Makefile,v 1.1 2022/02/23 16:52:15 pho Exp $
+
+DISTNAME= atomic-write-0.2.0.7
+CATEGORIES= devel
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+COMMENT= Atomically write to a file
+LICENSE= mit
+
+.include "../../sysutils/hs-temporary/buildlink3.mk"
+.include "../../devel/hs-unix-compat/buildlink3.mk"
+.include "../../mk/haskell.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r 3d0f7cf81fb1 -r 128459d701f1 devel/hs-atomic-write/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-atomic-write/PLIST Wed Feb 23 16:52:15 2022 +0000
@@ -0,0 +1,62 @@
+@comment $NetBSD: PLIST,v 1.1 2022/02/23 16:52:15 pho Exp $
+lib/atomic-write-${PKGVERSION}/${HS_VERSION}/package-description
+lib/atomic-write-${PKGVERSION}/${HS_VERSION}/package-id
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Internal.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Internal.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Internal.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteString.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteString.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteString.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteString/Binary.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteString/Binary.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteString/Binary.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteStringBuilder.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteStringBuilder.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/ByteStringBuilder.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyByteString.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyByteString.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyByteString.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyByteString/Binary.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyByteString/Binary.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyByteString/Binary.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyText.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyText.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyText.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyText/Binary.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyText/Binary.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/LazyText/Binary.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/String.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/String.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/String.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/String/Binary.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/String/Binary.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/String/Binary.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/Text.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/Text.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/Text.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/Text/Binary.dyn_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/Text/Binary.hi
+lib/${HS_PLATFORM}/${HS_PKGID}/System/AtomicWrite/Writer/Text/Binary.p_hi
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}.a
+lib/${HS_PLATFORM}/${HS_PKGID}/libHS${HS_PKGID}_p.a
+lib/${HS_PLATFORM}/libHS${HS_PKGID}-${HS_VER}.so
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/LICENSE
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-ByteString-Binary.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-ByteString.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-ByteStringBuilder.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-LazyByteString-Binary.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-LazyByteString.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-LazyText-Binary.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-LazyText.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-String-Binary.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-String.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-Text-Binary.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/System-AtomicWrite-Writer-Text.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/atomic-write.haddock
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/doc-index.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/haddock-bundle.min.js
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/index.html
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/linuwial.css
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/meta.json
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/quick-jump.css
+share/doc/${HS_PLATFORM}/atomic-write-${PKGVERSION}/html/synopsis.png
diff -r 3d0f7cf81fb1 -r 128459d701f1 devel/hs-atomic-write/buildlink3.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-atomic-write/buildlink3.mk Wed Feb 23 16:52:15 2022 +0000
@@ -0,0 +1,16 @@
+# $NetBSD: buildlink3.mk,v 1.1 2022/02/23 16:52:15 pho Exp $
+
+BUILDLINK_TREE+= hs-atomic-write
+
+.if !defined(HS_ATOMIC_WRITE_BUILDLINK3_MK)
+HS_ATOMIC_WRITE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.hs-atomic-write+= hs-atomic-write>=0.2.0
+BUILDLINK_ABI_DEPENDS.hs-atomic-write+= hs-atomic-write>=0.2.0.7
+BUILDLINK_PKGSRCDIR.hs-atomic-write?= ../../devel/hs-atomic-write
+
+.include "../../sysutils/hs-temporary/buildlink3.mk"
+.include "../../devel/hs-unix-compat/buildlink3.mk"
+.endif # HS_ATOMIC_WRITE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -hs-atomic-write
diff -r 3d0f7cf81fb1 -r 128459d701f1 devel/hs-atomic-write/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/hs-atomic-write/distinfo Wed Feb 23 16:52:15 2022 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2022/02/23 16:52:15 pho Exp $
+
+BLAKE2s (atomic-write-0.2.0.7.tar.gz) = 66d3c8b459d6fbe075c03e69cbd27e67c6f6067a412aaccecf9268342e7823dc
+SHA512 (atomic-write-0.2.0.7.tar.gz) = 3405437b801fbdd542c5c8a403f603ccb65ceaa63beca15062c429eaea412d7006342eb237982c9fe6751ffd160f810197b30fec3e49528e51bae1fc7f47af2e
+Size (atomic-write-0.2.0.7.tar.gz) = 7199 bytes
Home |
Main Index |
Thread Index |
Old Index