After reading about problems with FFP on an NSA325v2 fw 4.70, and questions about how to host/test your own packages, I thought there should be a better way.
And now I proudly present: MetaRepository
What it is
Basically it's an CGI script which runs locally on the NAS. Using the web_prefix file the package manager is pointed to it. The script downloads the ZYPKG_INFO.tgz or ZYPKGS file from several repositories, and combines that to a single file, on base of (alphabetically) sorting the packages. Further it keeps a database of origin of all those packages, and when requested it downloads and offers them.
How to install
Enter the url http://downloads.zyxel.nas-central.org/ ... ypkg-repo/ in web_prefix, or download it here. This file (web_prefix) should be put in \\NAS\admin\zy-pkgs\. Then in the package menu press on the 'Retreive List From Internet' button. Only the MetaRepository package should show up. Install it, and re-request the list. You should see the official Taiwanese repository, merged with mine (ffp, btsync, anyterm, MetaRepository, MidnightCommander, Dropbear). If you still see only MetaRepository, disable it, enable it again, and retry.
How to configure
In the package menu you can see the configuration page of MetaRepositoy. Here you can enter the source repositories. Further you can blacklist packages, and 'pushlist' them.
A word on 'pushlisting': As said, the packages are sorted alphabetically, and then the 'highest value' is chosen. Now the official repository contains a nzbget 9.x, while the beta repository contains a nzbget 11.x. Unfortunately 11 has a lower alphabetically value than 9. You can push nzbget 11, which actually means it's exchange by nzbget z11, restoring the wanted sequence.
How to create your own (local) repository
Just put the package(s) in a share, in combination with a describing ZYPKGS file (case sensitive). Add the full path to the 'Repositories' list. Done.
You can also supply a ZYPKG_INFO.tgz if you like. The script first tries to download/copy the ZYPKG_INFO.tgz file, and if that fails it tries ZYPKGS.
After you installed MetaRepository, you get access to this additional packages:
Dropbear is a lightweight SSH/SCP server.
Midnight commander is a powerful text-based visual file manager, running in a shell. So you can use it in a telnet, ssh or anyterm session.
Anyterm is a shell in a browser. Using this package you can simply open a shell by clicking a link in the packages menu.
- Telnet; Enable telnet daemon, specifiy port, possibly loginless.
- Cron; add own jobs, including @reboot and @shutdown
- Ftp; specify server address, enable force ftps.
- Misc; Change homedir of root and/or admin
Some torrent base directory sync program.