summaryrefslogtreecommitdiff
path: root/sysutils/safe-rm/Makefile
blob: 496a105b46ad37cc6e2f9a06d9f4d2cf0026bc3f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Created by: Yi-Jheng Lin <yzlin@cs.nctu.edu.tw>
# $FreeBSD$

PORTNAME=	safe-rm
PORTVERSION=	0.10
CATEGORIES=	sysutils
MASTER_SITES=	http://launchpad.net/safe-rm/trunk/0.10/+download/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Wrapper around the rm command to prevent accidental deletions

LICENSE=	GPLv3

USES=		perl5
USE_PERL5=	run
NO_BUILD=	yes

FETCH_ARGS=	-pRr

PORTDOCS=	COPYING Changes README
PLIST_FILES=	bin/safe-rm

NO_STAGE=	yes
.include <bsd.port.options.mk>

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/safe-rm ${PREFIX}/bin

post-install:
.if ${PORT_OPTIONS:MDOCS}
	@${MKDIR} ${DOCSDIR}
	${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

.include <bsd.port.mk>