NEW: sysutils/bitrot

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

NEW: sysutils/bitrot

Ray Lai-3
Detects bit rotten files on the hard drive to save your precious photo and music collection from slow decay.

Don't let your bits rot, ffs.

bitrot-0.7.1.tgz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Michael McConville-3
Ray Lai wrote:
> Detects bit rotten files on the hard drive to save your precious photo
> and music collection from slow decay.
>
> Don't let your bits rot, ffs.

Attached is an iteration with a few fixes:

 * update to 0.8.0
 * specify that it's released under the MIT license
 * tweak $COMMENT and DESCR

Upstream seems to have stopped making releases on GitHub - I just
emailed them about that. For now, I'll stick to the commit approach.

Best,
Mike

bitrot.tar.gz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Michael McConville-3
Michael McConville wrote:

> Ray Lai wrote:
> > Detects bit rotten files on the hard drive to save your precious
> > photo and music collection from slow decay.
> >
> > Don't let your bits rot, ffs.
>
> Attached is an iteration with a few fixes:
>
>  * update to 0.8.0
>  * specify that it's released under the MIT license
>  * tweak $COMMENT and DESCR
>
> Upstream seems to have stopped making releases on GitHub - I just
> emailed them about that. For now, I'll stick to the commit approach.
Ray doesn't have time to work on this, so I adopted it.

Attached is a new version that fetches from PyPI, since upstream is
exclusively using that for new releases. I've never worked with the PyPI
make infrastructure before, so that's worth checking.

Thanks for your time,
Mike

bitrot.tar.gz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Juan Francisco Cantero Hurtado
On Thu, Aug 11, 2016 at 01:06:35PM -0400, Michael McConville wrote:

> Michael McConville wrote:
> > Ray Lai wrote:
> > > Detects bit rotten files on the hard drive to save your precious
> > > photo and music collection from slow decay.
> > >
> > > Don't let your bits rot, ffs.
> >
> > Attached is an iteration with a few fixes:
> >
> >  * update to 0.8.0
> >  * specify that it's released under the MIT license
> >  * tweak $COMMENT and DESCR
> >
> > Upstream seems to have stopped making releases on GitHub - I just
> > emailed them about that. For now, I'll stick to the commit approach.
>
> Ray doesn't have time to work on this, so I adopted it.
>
> Attached is a new version that fetches from PyPI, since upstream is
> exclusively using that for new releases. I've never worked with the PyPI
> make infrastructure before, so that's worth checking.

I need an additional OK to import the port. Anyone?. The port is quite
simple.


--
Juan Francisco Cantero Hurtado http://juanfra.info

bitrot.tgz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Jeremie Courreges-Anglas-2
Juan Francisco Cantero Hurtado <[hidden email]> writes:

> On Thu, Aug 11, 2016 at 01:06:35PM -0400, Michael McConville wrote:
>> Michael McConville wrote:
>> > Ray Lai wrote:
>> > > Detects bit rotten files on the hard drive to save your precious
>> > > photo and music collection from slow decay.
>> > >
>> > > Don't let your bits rot, ffs.
>> >
>> > Attached is an iteration with a few fixes:
>> >
>> >  * update to 0.8.0
>> >  * specify that it's released under the MIT license
>> >  * tweak $COMMENT and DESCR
>> >
>> > Upstream seems to have stopped making releases on GitHub - I just
>> > emailed them about that. For now, I'll stick to the commit approach.
>>
>> Ray doesn't have time to work on this, so I adopted it.
>>
>> Attached is a new version that fetches from PyPI, since upstream is
>> exclusively using that for new releases. I've never worked with the PyPI
>> make infrastructure before, so that's worth checking.
>
>
> I need an additional OK to import the port. Anyone?. The port is quite
> simple.

Please do not start COMMENT with uppercase.  I think it would make sense
to install the README.rst in local/share/doc/bitrot.

--
jca | PGP: 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Juan Francisco Cantero Hurtado
On Fri, Aug 12, 2016 at 11:53:40PM +0200, Jeremie Courreges-Anglas wrote:

> Juan Francisco Cantero Hurtado <[hidden email]> writes:
>
> > On Thu, Aug 11, 2016 at 01:06:35PM -0400, Michael McConville wrote:
> >> Michael McConville wrote:
> >> > Ray Lai wrote:
> >> > > Detects bit rotten files on the hard drive to save your precious
> >> > > photo and music collection from slow decay.
> >> > >
> >> > > Don't let your bits rot, ffs.
> >> >
> >> > Attached is an iteration with a few fixes:
> >> >
> >> >  * update to 0.8.0
> >> >  * specify that it's released under the MIT license
> >> >  * tweak $COMMENT and DESCR
> >> >
> >> > Upstream seems to have stopped making releases on GitHub - I just
> >> > emailed them about that. For now, I'll stick to the commit approach.
> >>
> >> Ray doesn't have time to work on this, so I adopted it.
> >>
> >> Attached is a new version that fetches from PyPI, since upstream is
> >> exclusively using that for new releases. I've never worked with the PyPI
> >> make infrastructure before, so that's worth checking.
> >
> >
> > I need an additional OK to import the port. Anyone?. The port is quite
> > simple.
>
> Please do not start COMMENT with uppercase.  I think it would make sense
> to install the README.rst in local/share/doc/bitrot.
Done. OK?

--
Juan Francisco Cantero Hurtado http://juanfra.info

bitrot.tgz (1K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Jeremie Courreges-Anglas-2
Juan Francisco Cantero Hurtado <[hidden email]> writes:

> On Fri, Aug 12, 2016 at 11:53:40PM +0200, Jeremie Courreges-Anglas wrote:
>> Juan Francisco Cantero Hurtado <[hidden email]> writes:
>>
>> > On Thu, Aug 11, 2016 at 01:06:35PM -0400, Michael McConville wrote:
>> >> Michael McConville wrote:
>> >> > Ray Lai wrote:
>> >> > > Detects bit rotten files on the hard drive to save your precious
>> >> > > photo and music collection from slow decay.
>> >> > >
>> >> > > Don't let your bits rot, ffs.
>> >> >
>> >> > Attached is an iteration with a few fixes:
>> >> >
>> >> >  * update to 0.8.0
>> >> >  * specify that it's released under the MIT license
>> >> >  * tweak $COMMENT and DESCR
>> >> >
>> >> > Upstream seems to have stopped making releases on GitHub - I just
>> >> > emailed them about that. For now, I'll stick to the commit approach.
>> >>
>> >> Ray doesn't have time to work on this, so I adopted it.
>> >>
>> >> Attached is a new version that fetches from PyPI, since upstream is
>> >> exclusively using that for new releases. I've never worked with the PyPI
>> >> make infrastructure before, so that's worth checking.
>> >
>> >
>> > I need an additional OK to import the port. Anyone?. The port is quite
>> > simple.
>>
>> Please do not start COMMENT with uppercase.  I think it would make sense
>> to install the README.rst in local/share/doc/bitrot.
>
> Done. OK?

Almost, the PLIST needs manual intervention after running ''make plist''.
With that fixed, ok jca@

diff -pu /usr/ports/mystuff/sysutils/bitrot/pkg/PLIST\~ /usr/ports/mystuff/sysutils/bitrot/pkg/PLIST
--- /usr/ports/mystuff/sysutils/bitrot/pkg/PLIST~ Sat Aug 13 00:09:30 2016
+++ /usr/ports/mystuff/sysutils/bitrot/pkg/PLIST Sat Aug 13 00:28:05 2016
@@ -1,11 +1,11 @@
 @comment $OpenBSD$
 bin/bitrot
-lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/
-lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/PKG-INFO
-lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/SOURCES.txt
-lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/dependency_links.txt
-lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/not-zip-safe
-lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/top_level.txt
+lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
+lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
+lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
+lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
+lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
+lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
 lib/python${MODPY_VERSION}/site-packages/bitrot.py
 lib/python${MODPY_VERSION}/site-packages/bitrot.pyc
 share/doc/bitrot/

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Stuart Henderson
On 2016/08/13 00:31, Jeremie Courreges-Anglas wrote:
> Almost, the PLIST needs manual intervention after running ''make plist''.

Tip for python things: after 'make fake', do 'make REVISION=99 plist" to avoid
the FULLPKGNAME bits in PLIST.

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Juan Francisco Cantero Hurtado
In reply to this post by Jeremie Courreges-Anglas-2
On Sat, Aug 13, 2016 at 12:31:37AM +0200, Jeremie Courreges-Anglas wrote:

> Juan Francisco Cantero Hurtado <[hidden email]> writes:
>
> > On Fri, Aug 12, 2016 at 11:53:40PM +0200, Jeremie Courreges-Anglas wrote:
> >> Juan Francisco Cantero Hurtado <[hidden email]> writes:
> >>
> >> > On Thu, Aug 11, 2016 at 01:06:35PM -0400, Michael McConville wrote:
> >> >> Michael McConville wrote:
> >> >> > Ray Lai wrote:
> >> >> > > Detects bit rotten files on the hard drive to save your precious
> >> >> > > photo and music collection from slow decay.
> >> >> > >
> >> >> > > Don't let your bits rot, ffs.
> >> >> >
> >> >> > Attached is an iteration with a few fixes:
> >> >> >
> >> >> >  * update to 0.8.0
> >> >> >  * specify that it's released under the MIT license
> >> >> >  * tweak $COMMENT and DESCR
> >> >> >
> >> >> > Upstream seems to have stopped making releases on GitHub - I just
> >> >> > emailed them about that. For now, I'll stick to the commit approach.
> >> >>
> >> >> Ray doesn't have time to work on this, so I adopted it.
> >> >>
> >> >> Attached is a new version that fetches from PyPI, since upstream is
> >> >> exclusively using that for new releases. I've never worked with the PyPI
> >> >> make infrastructure before, so that's worth checking.
> >> >
> >> >
> >> > I need an additional OK to import the port. Anyone?. The port is quite
> >> > simple.
> >>
> >> Please do not start COMMENT with uppercase.  I think it would make sense
> >> to install the README.rst in local/share/doc/bitrot.
> >
> > Done. OK?
>
> Almost, the PLIST needs manual intervention after running ''make plist''.
> With that fixed, ok jca@

I'm idiot. Thanks!. Committed.

>
> diff -pu /usr/ports/mystuff/sysutils/bitrot/pkg/PLIST\~ /usr/ports/mystuff/sysutils/bitrot/pkg/PLIST
> --- /usr/ports/mystuff/sysutils/bitrot/pkg/PLIST~ Sat Aug 13 00:09:30 2016
> +++ /usr/ports/mystuff/sysutils/bitrot/pkg/PLIST Sat Aug 13 00:28:05 2016
> @@ -1,11 +1,11 @@
>  @comment $OpenBSD$
>  bin/bitrot
> -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/
> -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/PKG-INFO
> -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/SOURCES.txt
> -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/dependency_links.txt
> -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/not-zip-safe
> -lib/python${MODPY_VERSION}/site-packages/${FULLPKGNAME\-}-py${MODPY_VERSION}.egg-info/top_level.txt
> +lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/
> +lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/PKG-INFO
> +lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/SOURCES.txt
> +lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/dependency_links.txt
> +lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/not-zip-safe
> +lib/python${MODPY_VERSION}/site-packages/bitrot-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info/top_level.txt
>  lib/python${MODPY_VERSION}/site-packages/bitrot.py
>  lib/python${MODPY_VERSION}/site-packages/bitrot.pyc
>  share/doc/bitrot/
>
> --
> jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE
>

--
Juan Francisco Cantero Hurtado http://juanfra.info

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Jeremie Courreges-Anglas-2
In reply to this post by Stuart Henderson
Stuart Henderson <[hidden email]> writes:

> On 2016/08/13 00:31, Jeremie Courreges-Anglas wrote:
>> Almost, the PLIST needs manual intervention after running ''make plist''.
>
> Tip for python things: after 'make fake', do 'make REVISION=99 plist" to avoid
> the FULLPKGNAME bits in PLIST.

duh... much better than

$ typeset -f mvo
mvo() {
    mv "$1"{.orig,}
}

Nice, thanks!
--
jca | PGP: 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/bitrot

Stuart Henderson
On 2016/08/13 11:02, Jeremie Courreges-Anglas wrote:

> Stuart Henderson <[hidden email]> writes:
>
> > On 2016/08/13 00:31, Jeremie Courreges-Anglas wrote:
> >> Almost, the PLIST needs manual intervention after running ''make plist''.
> >
> > Tip for python things: after 'make fake', do 'make REVISION=99 plist" to avoid
> > the FULLPKGNAME bits in PLIST.
>
> duh... much better than
>
> $ typeset -f mvo
> mvo() {
>     mv "$1"{.orig,}
> }
>
> Nice, thanks!

I came up with this the other day, after getting annoyed by having to
manually re-add @rcscript lines.

alias updplist='for j in `ls pkg|grep PLIST.*\.orig 2>/dev/null`; do i=${j%.orig}; sdiff -o pkg/$i.new -w130 pkg/$i.orig pkg/$i; [ -r pkg/$i.new ] && (mv pkg/$i pkg/$i.int; mv pkg/$i.new pkg/$i); done'