diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2008-09-26 23:30:17 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2008-09-26 23:30:17 +0000 |
commit | a4928258a2fd2d4d1e414b23500013881b85bd94 (patch) | |
tree | 84c227a3fc067059998a09b358c0e77d374d6657 /sysutils | |
parent | f1272ce57798b44db90f578e740ec1224cb2b834 (diff) | |
download | ports-a4928258a2fd2d4d1e414b23500013881b85bd94.tar.gz ports-a4928258a2fd2d4d1e414b23500013881b85bd94.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-rw-r--r-- | sysutils/safe-rm/Makefile | 32 | ||||
-rw-r--r-- | sysutils/safe-rm/distinfo | 3 | ||||
-rw-r--r-- | sysutils/safe-rm/pkg-descr | 6 |
4 files changed, 42 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index cd68a6652b26..fa24fa025a7b 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -632,6 +632,7 @@ SUBDIR += rubygem-god SUBDIR += runit SUBDIR += runwhen + SUBDIR += safe-rm SUBDIR += safecat SUBDIR += samefile SUBDIR += sarah diff --git a/sysutils/safe-rm/Makefile b/sysutils/safe-rm/Makefile new file mode 100644 index 000000000000..99815f5bfad5 --- /dev/null +++ b/sysutils/safe-rm/Makefile @@ -0,0 +1,32 @@ +# New ports collection makefile for: safe-rm +# Date created: 2008-09-13 +# Whom: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw> +# +# $FreeBSD$ +# + +PORTNAME= safe-rm +PORTVERSION= 0.3 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} + +MAINTAINER= yzlin@cs.nctu.edu.tw +COMMENT= Wrapper around the rm command to prevent accidental deletions + +USE_PERL5_RUN= yes + +NO_BUILD= yes + +PORTDOCS= COPYING Changes README +PLIST_FILES= bin/safe-rm + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/safe-rm ${PREFIX}/bin + +post-install: +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/sysutils/safe-rm/distinfo b/sysutils/safe-rm/distinfo new file mode 100644 index 000000000000..b6e0e6d4a505 --- /dev/null +++ b/sysutils/safe-rm/distinfo @@ -0,0 +1,3 @@ +MD5 (safe-rm-0.3.tar.gz) = 3df0f9b0caf75f2f22797b83a58ca24e +SHA256 (safe-rm-0.3.tar.gz) = f9d1cc2d0aad9fb7067fb817bb003c010b132c88d2d5962e44e9d82dcb4e1e36 +SIZE (safe-rm-0.3.tar.gz) = 14674 diff --git a/sysutils/safe-rm/pkg-descr b/sysutils/safe-rm/pkg-descr new file mode 100644 index 000000000000..0138f7f6eb98 --- /dev/null +++ b/sysutils/safe-rm/pkg-descr @@ -0,0 +1,6 @@ +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/ |