mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
a4928258a2
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/ PR: ports/127332 Submitted by: Yi-Jheng Lin <yzlin at cs.nctu.edu.tw>
33 lines
644 B
Makefile
33 lines
644 B
Makefile
# 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>
|