import of safecat 1.4

from DESCR:
safecat  is  a  program  which  implements D. J. Bernstein's
maildir algorithm to copy stdin safely to a file in a speci-
fied directory. With safecat, the user is offered two assur-
ances. First, if safecat returns a successful  exit  status,
then  all  data is guaranteed to be saved in the destination
directory. Second, if  a  file  exists  in  the  destination
directory, placed there by safecat, then the file is guaran-
teed to be complete.
This commit is contained in:
danh 2001-03-04 17:37:02 +00:00
parent 0b06a6a2ff
commit bc85248187
5 changed files with 57 additions and 0 deletions

26
sysutils/safecat/Makefile Normal file
View File

@ -0,0 +1,26 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/03/04 17:37:02 danh Exp $
DISTNAME= safecat-1.4
CATEGORIES= sysutils
NEED_VERSION= 1.358
MASTER_SITES= http://www.nb.net/~lbudney/linux/software/safecat/ \
http://sunsite.unc.edu/pub/Linux/utils/file/
HOMEPAGE= http://www.nb.net/~lbudney/linux/software/safecat.html
MAINTAINER= Dan Harnett <danh@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
ALL_TARGET=
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/safecat ${PREFIX}/bin/safecat
${INSTALL_SCRIPT} ${WRKSRC}/maildir ${PREFIX}/bin/maildir
${INSTALL_MAN} ${WRKSRC}/safecat.1 ${PREFIX}/man/man1
${INSTALL_MAN} ${WRKSRC}/maildir.1 ${PREFIX}/man/man1
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (safecat-1.4.tar.gz) = c94e03c6918c4619c73c22297dced58e
RMD160 (safecat-1.4.tar.gz) = 6811620f4506e863fd74b7dedeeb1fad7f7a5fde
SHA1 (safecat-1.4.tar.gz) = af77846acd0e179f05d79931d7e7e572beb21f96

View File

@ -0,0 +1 @@
copy stdin to a qmail-style maildir

View File

@ -0,0 +1,22 @@
safecat is a program which implements D. J. Bernstein's
maildir algorithm to copy stdin safely to a file in a speci-
fied directory. With safecat, the user is offered two assur-
ances. First, if safecat returns a successful exit status,
then all data is guaranteed to be saved in the destination
directory. Second, if a file exists in the destination
directory, placed there by safecat, then the file is guaran-
teed to be complete.
When saving data with safecat, the user specifies a destina-
tion directory, but not a file name. The file name is
selected by safecat to ensure that no filename collisions
occur, even if many safecat processes and other programs
implementing the maildir algorithm are writing to the direc-
tory simultaneously. If particular filenames are desired,
then the user should rename the file after safecat com-
pletes. In general, when spooling data with safecat, a sin-
gle, separate process should handle naming, collecting, and
deleting these files. Examples of such a process are dae-
mons, cron jobs, and mail readers.
WWW: ${HOMEPAGE}

View File

@ -0,0 +1,5 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/03/04 17:37:03 danh Exp $
bin/maildir
bin/safecat
man/man1/maildir.1
man/man1/safecat.1