ports/127332: [NEW PORT] sysutils/safe-rm: Wrapper around the rm command to prevent accidental deletions
Yi-Jheng Lin
yzlin at cs.nctu.edu.tw
Fri Sep 12 19:30:01 UTC 2008
>Number: 127332
>Category: ports
>Synopsis: [NEW PORT] sysutils/safe-rm: Wrapper around the rm command to prevent accidental deletions
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 12 19:30:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator: Yi-Jheng Lin
>Release: FreeBSD 7.0-RELEASE-p4 amd64
>Organization:
NCTU CS
>Environment:
System: FreeBSD stucgi 7.0-RELEASE-p4 FreeBSD 7.0-RELEASE-p4 #0: Fri Sep 5 14:56:26 CST
>Description:
Tool intended to prevent the accidental deletion of important files
by replacing /bin/rm with a wrapper, which checks the given arguments
against a configurable blacklist of files and directories that should
never be removed.
WWW: http://code.google.com/p/safe-rm/
Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:
--- safe-rm-0.3.shar begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# safe-rm
# safe-rm/pkg-descr
# safe-rm/Makefile
# safe-rm/distinfo
#
echo c - safe-rm
mkdir -p safe-rm > /dev/null 2>&1
echo x - safe-rm/pkg-descr
sed 's/^X//' >safe-rm/pkg-descr << 'END-of-safe-rm/pkg-descr'
XTool intended to prevent the accidental deletion of important files
Xby replacing /bin/rm with a wrapper, which checks the given arguments
Xagainst a configurable blacklist of files and directories that should
Xnever be removed.
X
XWWW: http://code.google.com/p/safe-rm/
END-of-safe-rm/pkg-descr
echo x - safe-rm/Makefile
sed 's/^X//' >safe-rm/Makefile << 'END-of-safe-rm/Makefile'
X# New ports collection makefile for: safe-rm
X# Date created: 2008-09-13
X# Whom: Yi-Jheng Lin <yzlin at cs.nctu.edu.tw>
X#
X# $FreeBSD$
X#
X
XPORTNAME= safe-rm
XPORTVERSION= 0.3
XCATEGORIES= sysutils
XMASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
X
XMAINTAINER= yzlin at cs.nctu.edu.tw
XCOMMENT= Wrapper around the rm command to prevent accidental deletions
X
XUSE_PERL5_RUN= yes
X
XNO_BUILD= yes
X
XPORTDOCS= COPYING Changes README
XPLIST_FILES= bin/safe-rm
X
Xdo-install:
X ${INSTALL_SCRIPT} ${WRKSRC}/safe-rm ${PREFIX}/bin
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X @${MKDIR} ${DOCSDIR}
X ${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
X.endif
X
X.include <bsd.port.mk>
END-of-safe-rm/Makefile
echo x - safe-rm/distinfo
sed 's/^X//' >safe-rm/distinfo << 'END-of-safe-rm/distinfo'
XMD5 (safe-rm-0.3.tar.gz) = 3df0f9b0caf75f2f22797b83a58ca24e
XSHA256 (safe-rm-0.3.tar.gz) = f9d1cc2d0aad9fb7067fb817bb003c010b132c88d2d5962e44e9d82dcb4e1e36
XSIZE (safe-rm-0.3.tar.gz) = 14674
END-of-safe-rm/distinfo
exit
--- safe-rm-0.3.shar ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list