[update patch] yabitrot 0.3 -> 0.4

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[update patch] yabitrot 0.3 -> 0.4

Martin Ziemer
This patch updates yabitrot from 0.3 to 0.4.

With the new version we also get a manpage.

Since i saw there is no maintainer, i also added myself as maintainer.

I tested the version on three amd64 systems checking about 200 gigs of
data.
Also ran it in a bhyve vm to see the case of rotten bits.


Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/yabitrot/Makefile,v
retrieving revision 1.4
diff -u -p -r1.4 Makefile
--- Makefile 12 Jul 2019 20:49:55 -0000 1.4
+++ Makefile 7 Feb 2020 08:29:32 -0000
@@ -2,30 +2,36 @@
 
 COMMENT = fast bitrot detection utility
 
-DISTNAME = yabitrot-0.3
-REVISION = 1
+V = 0.4
+DISTNAME = yabitrot-${V}
 
 CATEGORIES = sysutils
 
 HOMEPAGE = https://sourceforge.net/projects/yabitrot/
 
+MAINTAINER = Martin Ziemer <[hidden email]>
+
 # BSD
 PERMIT_PACKAGE = Yes
 
 MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=yabitrot/}
-EXTRACT_SUFX = .tgz
+EXTRACT_SUFX = .tar.gz
 
 MODULES = lang/python
 MODPY_VERSION =         ${MODPY_DEFAULT_VERSION_3}
 NO_BUILD = yes
 PKG_ARCH = *
 
+WRKDIST = ${WRKDIR}/yabitrot-${V}
+
 CONFIGURE_STYLE = none
 
 pre-install:
  ${SUBST_CMD} ${WRKSRC}/yabitrot
 
-post-install:
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/yabitrot ${PREFIX}/bin/yabitrot
+ ${INSTALL_MAN} ${WRKSRC}/yabitrot.1 ${PREFIX}/man/man1/
  ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/yabitrot/
  ${INSTALL_DATA} ${WRKSRC}/README.md ${PREFIX}/share/doc/yabitrot/README
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/sysutils/yabitrot/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 distinfo
--- distinfo 13 Feb 2019 07:33:49 -0000 1.1.1.1
+++ distinfo 7 Feb 2020 08:29:32 -0000
@@ -1,2 +1,2 @@
-SHA256 (yabitrot-0.3.tgz) = /pwJOZye3CTa9kQ6YEROwOqjnLeWlY7agHbo8XEJL3Q=
-SIZE (yabitrot-0.3.tgz) = 6731
+SHA256 (yabitrot-0.4.tar.gz) = UCj0+qzCMpU4B1wV+EA1Z1OPB6h+eLoXKDMbN0wynDc=
+SIZE (yabitrot-0.4.tar.gz) = 9176
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/sysutils/yabitrot/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 13 Feb 2019 07:33:49 -0000 1.1.1.1
+++ pkg/PLIST 7 Feb 2020 08:29:32 -0000
@@ -1,4 +1,5 @@
 @comment $OpenBSD: PLIST,v 1.1.1.1 2019/02/13 07:33:49 solene Exp $
 bin/yabitrot
+man/man1/yabitrot.1
 share/doc/yabitrot/
 share/doc/yabitrot/README