pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/hs-atomic-write
Module Name: pkgsrc
Committed By: pho
Date: Wed Feb 23 16:52:15 UTC 2022
Added Files:
pkgsrc/devel/hs-atomic-write: DESCR Makefile PLIST buildlink3.mk
distinfo
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 pkgsrc/devel/hs-atomic-write/DESCR \
pkgsrc/devel/hs-atomic-write/Makefile pkgsrc/devel/hs-atomic-write/PLIST \
pkgsrc/devel/hs-atomic-write/buildlink3.mk \
pkgsrc/devel/hs-atomic-write/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Added files:
Index: pkgsrc/devel/hs-atomic-write/DESCR
diff -u /dev/null pkgsrc/devel/hs-atomic-write/DESCR:1.1
--- /dev/null Wed Feb 23 16:52:15 2022
+++ pkgsrc/devel/hs-atomic-write/DESCR Wed Feb 23 16:52:15 2022
@@ -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.
Index: pkgsrc/devel/hs-atomic-write/Makefile
diff -u /dev/null pkgsrc/devel/hs-atomic-write/Makefile:1.1
--- /dev/null Wed Feb 23 16:52:15 2022
+++ pkgsrc/devel/hs-atomic-write/Makefile Wed Feb 23 16:52:15 2022
@@ -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"
Index: pkgsrc/devel/hs-atomic-write/PLIST
diff -u /dev/null pkgsrc/devel/hs-atomic-write/PLIST:1.1
--- /dev/null Wed Feb 23 16:52:15 2022
+++ pkgsrc/devel/hs-atomic-write/PLIST Wed Feb 23 16:52:15 2022
@@ -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
Index: pkgsrc/devel/hs-atomic-write/buildlink3.mk
diff -u /dev/null pkgsrc/devel/hs-atomic-write/buildlink3.mk:1.1
--- /dev/null Wed Feb 23 16:52:15 2022
+++ pkgsrc/devel/hs-atomic-write/buildlink3.mk Wed Feb 23 16:52:15 2022
@@ -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
Index: pkgsrc/devel/hs-atomic-write/distinfo
diff -u /dev/null pkgsrc/devel/hs-atomic-write/distinfo:1.1
--- /dev/null Wed Feb 23 16:52:15 2022
+++ pkgsrc/devel/hs-atomic-write/distinfo Wed Feb 23 16:52:15 2022
@@ -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