Support This Project

Project Zipscript - Next Generation (pzs-ng)

Description

pzs-ng is a popular zipscript which can be used with various FTP servers, including wzdftpd. The purpose of this script is to validate checksums on files, amongst a wide range of other features. Feedback to the user is done mostly via the creation of dummy folders/files to indicate folders with missing or corrupted files.

On a related note, see this page on the old wiki for some suggested changes for wzdftpd to make it replace glftpd. (Not directly pzs-ng-related)

How to configure with wzdftpd

IMPORTANT: Currently, this has only been tested using the latest wzdftpd SVN. auto crc is *not* added in latest stable (afaik) - but it could still work. If you try latest stable; good luck. ;-)

wzd.cfg:

[GLOBAL]
auto crc = true

[events]
pzsng = POSTUPLOAD /home/myuser/wzd/bin/zipscript-c "%lastfilename" "%lastfilecrc" "%username" "%usergroup" "%usertag" "%lastfilespeed" "%sectionname"
pzsng_postdel = DELE /home/myuser/wzd/bin/postdel "%username" "%usergroup" "%usertag" "%sectionname" "%filepath"

pzs-ng:
(NOTE: We're assuming you've installed wzd into /home/myuser/wzd. If not; replace it with the fitting path)

  • Go to http://www.pzs-ng.com/ - download the newest version (at the time of writing: project-zs-ng_r2397-v1.0.10-ftpd-agnostic-2.tar.gz (in the stable category)).
  • Unpack pzs-ng;
    tar xzf project-zs-ng_r2397-v1.0.10-ftpd-agnostic-2.tar.gz
    cd project-zs-ng_r2397-v1.0.10-ftpd-agnostic-2
    
  • Configure the makefiles to disable glftpd-specific, and different installpath (default is /glftpd)):
    ./configure --disable-glftpd-specific --with-install-path=/home/myuser/wzd
    
  • Update zipscript/conf/zsconfig.h to make it figure out how your setup works and other neat stuff. Make sure you update log & storage!
  • NOTE: You must also make sure that all paths in zsconfig.h are *ABSOLUTE* and real (wzdftpd doesn't have a chroot), so sfv_dirs should be "/home/myuser/wzd/site/incoming/games" etc.
  • Install pzs-ng:
    make install