Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design: new package "SynoCli file" #3250

Closed
ymartin59 opened this issue Mar 25, 2018 · 23 comments
Closed

Design: new package "SynoCli file" #3250

ymartin59 opened this issue Mar 25, 2018 · 23 comments
Assignees

Comments

@ymartin59
Copy link
Contributor

ymartin59 commented Mar 25, 2018

Create a package for small command line utilities dedicated to file manipulation.
Revival of #2261
Tools candidates:

Potential extension (TBD):

Not to be included:

  • coreutils cross package as almost all commands available already or installable via synogear install
  • rename (proposed by adithyabenny) <-- Part of linux-util package. Maybe later as part of a separate package.

Package icon: Kindly provided by @publicarray. Many thanks!

@MrSpoocy
Copy link
Contributor

mc ;)

@hgy59
Copy link
Contributor

hgy59 commented Mar 30, 2018

@MrSpoocy mc is not a command line tool IMHO
I would like to keep the SynoCli packages small.

@ghost
Copy link

ghost commented Apr 16, 2018

I cannot wait for these SynoCli packages. I missed them since the Bootstrap days. Thank you so much!

@ymartin59
Copy link
Contributor Author

I also would like to provide "entware" first... to avoid to introduce (new) duplicated tools in spksrc

@m4tt075
Copy link
Contributor

m4tt075 commented Apr 16, 2018

Chaps, I just remembered the "synogear" package, which is actually provided by Synology. See
http://www.synology-wiki.de/index.php/Synogear:_weitere_Tools
for documentation and the list of commands included (only on German, but I did not find another source). We could provide an English translation on our Wiki page and refer to it. Not sure it covers everything, but I feel a lot of the tools requested. Just for consideration...

@ymartin59
Copy link
Contributor Author

@m4tt075 Thanks for the hint. Here it is: https://github.com/SynoCommunity/spksrc/wiki/FAQ-synogear
Interesting because some tools are painful to build... but some will complain most tools versions are quite old.

@jbruchon
Copy link
Contributor

I'm the maintainer of jdupes and the one who opened #3030. I'd like to voice my support for integrating jdupes by whatever means is necessary. A Synology user requested my effort to make an SPK for it 4 months ago and I've had other users since express interest in it for their NASes. As far as the age concern, I maintain the code regularly and try to be responsive to issue reports. If I need to do anything to assist in inclusion, please let me know how I can help.

@cytec
Copy link
Member

cytec commented Oct 29, 2018

rmlint #3482

@acherunilam
Copy link

rename? I use it often to batch rename files with a regex.

@m4tt075
Copy link
Contributor

m4tt075 commented Jan 26, 2019

@AdithyaBenny I'm looking into your request, but am struggling to find source code for the rename command you mention. Is there some official source? Where can I find it?

@cytec rmlint seems to use scons, some non-standard build system I'm not familiar with, which depends on python3 which I'm not familiar with. I'll keep this as possible extension for the future for now. Anyways, if you are interested and you have some time, please do look at it.

@m4tt075 m4tt075 mentioned this issue Jan 26, 2019
3 tasks
@acherunilam
Copy link

@m4tt075 The official source I believe is at CPAN over here, but that doesn't have a direct URL to the version control repo, so the Debian mirror over here should do.

@m4tt075
Copy link
Contributor

m4tt075 commented Jan 27, 2019

@AdithyaBenny Yikes! Tried to make rename work today, got the package, got it built in our framework, got it to install into the $(STAGING_INSTALL_PREFIX) directory, everything looks nice. But I'm not able to integrate the required module files into the perl version that is running on the NAS. perl just cannot find them in @INC. Found some advice how to deal with this on the internet. Everything failed. perl is driving me crazy! Isn't there something like that, which has been written in C?

@m4tt075
Copy link
Contributor

m4tt075 commented Jan 30, 2019

rhash has been broken and (hopefully) fixed (could only test x64 platform), rename (perl) has been added.
New test builds here: https://github.com/m4tt075/spksrc/releases/tag/synoclifile-3
Please test and report back.

@m4tt075
Copy link
Contributor

m4tt075 commented Jan 30, 2019

@publicarray I've temporarily included your "SynoCLI" icon without any text. Could you please create one for this "SynoCLI-File" package, like the one you have created for "SynoCLI-Net"?

@publicarray
Copy link
Member

Hi @m4tt075,
Should be easy enough. I have a svg file which is easy to edit in Inkskape, Adobe Illustrator, Affinity Designer, etc.

Here is the requested png: synocli-file

@acherunilam
Copy link

@m4tt075 There is indeed a C variant of rename that ships with util-linux. Here's the source repo, and here's more info on the package.

@m4tt075
Copy link
Contributor

m4tt075 commented Feb 4, 2019

@publicarray I really suck with graphics stuff. I don't even know what svg files are. So many thanks for doing it! ;-)
@AdithyaBenny Cool. We have a cross package for util-linux already and can reuse it. Happy to integrate it. Just seen that it contains all kind of CLI tools, which brings me to the next question:
@ymartin59 Anything other than rename from util-linux you'd want to integrate into our SynoCLI-file (or other SynoCLI-*) packages?

@ymartin59
Copy link
Contributor Author

@m4tt075 Interesting question... some commands are already provided by DSM. But according to https://en.wikipedia.org/wiki/Util-linux it is difficult to only select "files related tools". I think util-linux is included in "test disk" for fsck and partitioning tools.
Here are some I often use as a "old-style-Unixer": cal, column, fallocate, hexdump, script, scriptreplay
I just wonder if it would not make sense to deliver most of them in a dedicated "util-linux" package.

@m4tt075
Copy link
Contributor

m4tt075 commented Feb 4, 2019

@ymartin59 I agree. A lot of those tools probably also are not necessarily required by typical Synology users. Let's keep those separate.
@AdithyaBenny, that would mean that we'll keep rename out of the official package for now. Hope that's fine for you. If you want, let me know your DS platform and firmware version, and I'll build a package with the perl rename version for you. I've spent a lot of time implementing it. So it can at least benefit you... ;-)

@ymartin59
Copy link
Contributor Author

@m4tt075 Just find it in package listing, please include ncdu in synocli-file.

@ymartin59 ymartin59 changed the title Design: new package "SynoCli files" Design: new package "SynoCli file" Feb 5, 2019
@acherunilam
Copy link

let me know your DS platform and firmware version, and I'll build a package with the perl rename version for you

@m4tt075 That would be great, thank you so much! My arch is apollolake.

@ymartin59
Copy link
Contributor Author

Working on applications update, testing and packaging...

@ymartin59
Copy link
Contributor Author

Many thanks to all contributors for this package !
Published.
Available from Package Center or https://synocommunity.com/package/synocli-file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants