diff options
author | Emanuel Haupt <ehaupt@FreeBSD.org> | 2013-10-26 07:52:07 +0000 |
---|---|---|
committer | Emanuel Haupt <ehaupt@FreeBSD.org> | 2013-10-26 07:52:07 +0000 |
commit | 96e924e3e0620616ba44248c18b855e651f6241e (patch) | |
tree | fe5a4168071e52b53ffe1ac53c3e9f3d60b6584c /sysutils | |
parent | e12db4011c1e8691d75b86b102698bc4b94eeed6 (diff) | |
download | ports-96e924e3e0620616ba44248c18b855e651f6241e.tar.gz ports-96e924e3e0620616ba44248c18b855e651f6241e.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/magicrescue/Makefile | 15 | ||||
-rw-r--r-- | sysutils/magicrescue/files/patch-Makefile.in | 32 | ||||
-rw-r--r-- | sysutils/magicrescue/files/patch-magicsort | 6 | ||||
-rw-r--r-- | sysutils/magicrescue/pkg-plist | 3 |
4 files changed, 44 insertions, 12 deletions
diff --git a/sysutils/magicrescue/Makefile b/sysutils/magicrescue/Makefile index 1b6fc5dfa9a2..0f55a0828c77 100644 --- a/sysutils/magicrescue/Makefile +++ b/sysutils/magicrescue/Makefile @@ -12,27 +12,24 @@ COMMENT= File recovery tool which recovers deleted files from a block device LICENSE= GPLv2 -USES= perl5 +USES= perl5 shebangfix HAS_CONFIGURE= yes CONFIGURE_ARGS= --prefix=${PREFIX} USE_PERL5= run -MAN1= dupemap.1 magicrescue.1 magicsort.1 +SHEBANG_FILES= magicsort OPTIONS_DEFINE= DOCS -NO_STAGE= yes -.include <bsd.port.options.mk> +MAKE_ENV+= STAGEDIR=${STAGEDIR} -post-patch: - @${REINPLACE_CMD} -e 's|^#!/usr/bin/env.*|#!${PERL}|' \ - ${WRKSRC}/magicsort +.include <bsd.port.options.mk> .if ${PORT_OPTIONS:MDOCS} post-install: - ${MKDIR} ${DOCSDIR} + ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in NEWS README - ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR} .endfor .endif diff --git a/sysutils/magicrescue/files/patch-Makefile.in b/sysutils/magicrescue/files/patch-Makefile.in new file mode 100644 index 000000000000..ccb7c9e787b6 --- /dev/null +++ b/sysutils/magicrescue/files/patch-Makefile.in @@ -0,0 +1,32 @@ +--- ./Makefile.in.orig 2008-06-26 22:24:06.000000000 +0200 ++++ ./Makefile.in 2013-10-26 09:06:55.772677532 +0200 +@@ -57,20 +57,20 @@ + maintainer-clean: distclean docs-clean + + install: all +- [ -d $(PREFIX) ] ++ [ -d $(STAGEDIR)$(PREFIX) ] + +- mkdir -p $(PREFIX)/share/magicrescue/tools \ +- $(PREFIX)/share/magicrescue/recipes \ +- $(PREFIX)/man/man1 \ +- $(PREFIX)/bin ++ mkdir -p $(STAGEDIR)$(PREFIX)/share/magicrescue/tools \ ++ $(STAGEDIR)$(PREFIX)/share/magicrescue/recipes \ ++ $(STAGEDIR)$(PREFIX)/man/man1 \ ++ $(STAGEDIR)$(PREFIX)/bin + +- cp magicrescue$(EXE) dupemap$(EXE) magicsort $(PREFIX)/bin/ +- cp recipes/* $(PREFIX)/share/magicrescue/recipes/ +- cp $(DOCS) $(PREFIX)/man/man1 ++ cp magicrescue$(EXE) dupemap$(EXE) magicsort $(STAGEDIR)$(PREFIX)/bin/ ++ cp recipes/* $(STAGEDIR)$(PREFIX)/share/magicrescue/recipes/ ++ cp $(DOCS) $(STAGEDIR)$(MANPREFIX)/man/man1 + + for f in tools/*; do \ + if [ -x "$$f" ]; then \ +- cp -f "$$f" $(PREFIX)/share/magicrescue/tools/; \ ++ cp -f "$$f" $(STAGEDIR)$(PREFIX)/share/magicrescue/tools/; \ + fi; \ + done + diff --git a/sysutils/magicrescue/files/patch-magicsort b/sysutils/magicrescue/files/patch-magicsort index dff60005d0c6..007defbab417 100644 --- a/sysutils/magicrescue/files/patch-magicsort +++ b/sysutils/magicrescue/files/patch-magicsort @@ -1,5 +1,5 @@ ---- magicsort.orig Mon Jul 18 11:55:35 2005 -+++ magicsort Mon Jul 18 12:03:01 2005 +--- ./magicsort.orig 2013-10-26 09:06:33.969663571 +0200 ++++ ./magicsort 2013-10-26 09:06:33.972663781 +0200 @@ -13,7 +13,7 @@ while (defined(my $file = readdir DH)) { next unless -f $file; @@ -10,7 +10,7 @@ close FILE; @@ -25,7 +25,7 @@ - next; + next; } my $dir = substr($idstring, length($file) + 2); - mkdir $dir; diff --git a/sysutils/magicrescue/pkg-plist b/sysutils/magicrescue/pkg-plist index af19af792f34..55b2c822d1cf 100644 --- a/sysutils/magicrescue/pkg-plist +++ b/sysutils/magicrescue/pkg-plist @@ -1,6 +1,9 @@ bin/dupemap bin/magicrescue bin/magicsort +man/man1/dupemap.1.gz +man/man1/magicrescue.1.gz +man/man1/magicsort.1.gz %%DATADIR%%/recipes/avi %%DATADIR%%/recipes/elf %%DATADIR%%/recipes/gimp-xcf |