summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sysutils/safe-rm/Makefile9
-rw-r--r--sysutils/safe-rm/pkg-plist4
2 files changed, 7 insertions, 6 deletions
diff --git a/sysutils/safe-rm/Makefile b/sysutils/safe-rm/Makefile
index 256528c..50b3965 100644
--- a/sysutils/safe-rm/Makefile
+++ b/sysutils/safe-rm/Makefile
@@ -10,19 +10,24 @@ MAINTAINER= ports@FreeBSD.org
COMMENT= Wrapper around the rm command to prevent accidental deletions
LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/COPYING
USES= perl5 shebangfix
USE_PERL5= run
SHEBANG_FILES= safe-rm
NO_BUILD= yes
+NO_ARCH= yes
-DOCS= COPYING Changes README
+PLIST_FILES= bin/safe-rm
+PORTDOCS= Changes README
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/safe-rm ${STAGEDIR}${PREFIX}/bin
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_MAN} ${DOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_MAN} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/sysutils/safe-rm/pkg-plist b/sysutils/safe-rm/pkg-plist
deleted file mode 100644
index 50ea23b..0000000
--- a/sysutils/safe-rm/pkg-plist
+++ /dev/null
@@ -1,4 +0,0 @@
-bin/safe-rm
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
-%%PORTDOCS%%%%DOCSDIR%%/Changes
-%%PORTDOCS%%%%DOCSDIR%%/README
OpenPOWER on IntegriCloud