mirror of
https://github.com/9001/copyparty.git
synced 2025-12-27 10:15:16 -05:00
ENTERPRISE packaging (closes #941);
introduce copyparty-en.pyz, affectionately known as companyparty.pyz like copyparty-en.py, it is english-only but with a twist; also remove smb support because the impacket references can look sus
This commit is contained in:
@@ -41,8 +41,10 @@ rm -rf pyz
|
||||
mkdir -p pyz
|
||||
cd pyz
|
||||
|
||||
cp -pR ../sfx/{copyparty,partftpy} .
|
||||
cp -pR ../sfx/{ftp,j2}/* .
|
||||
cp -pR ../sfx/copyparty .
|
||||
cp -pR ../sfx/j2/* .
|
||||
[ -e ../sfx/partftpy ] && cp -pR ../sfx/partftpy .
|
||||
[ -e ../sfx/ftp ] && cp -pR ../sfx/ftp/* .
|
||||
|
||||
true && {
|
||||
rm -rf copyparty/web/mde.* copyparty/web/deps/easymde*
|
||||
|
||||
@@ -445,14 +445,27 @@ iawk '/^class _Base/{s=1}!s' ftp/pyftpdlib/authorizers.py
|
||||
iawk '/^ {0,4}[a-zA-Z]/{s=0}/^ {4}def (serve_forever|_loop)/{s=1}!s' ftp/pyftpdlib/servers.py
|
||||
rm -f ftp/pyftpdlib/{__main__,prefork}.py
|
||||
|
||||
[ $no_ftp ] &&
|
||||
unhelp() {
|
||||
iawk '!/add_argument\("--'$1'/{print;next}
|
||||
/ent\("--'$1'"/{print gensub(/(help=")[^"]+/,"\\1not available in this build","1");next}
|
||||
{sub(/help=.*/,"help=argparse.SUPPRESS)")}1' copyparty/__main__.py
|
||||
}
|
||||
|
||||
[ $no_ftp ] && {
|
||||
unhelp ftp
|
||||
rm -rf copyparty/ftpd.py ftp
|
||||
}
|
||||
|
||||
[ $no_tfp ] &&
|
||||
[ $no_tfp ] && {
|
||||
unhelp tftp
|
||||
rm -rf copyparty/tftpd.py partftpy
|
||||
}
|
||||
|
||||
[ $no_smb ] &&
|
||||
[ $no_smb ] && {
|
||||
unhelp smb
|
||||
rm -f copyparty/smbd.py
|
||||
ised 's/^( {8}elif )record\.name.*"impacket".*/\10:/' copyparty/util.py
|
||||
}
|
||||
|
||||
[ $no_zm ] &&
|
||||
rm -rf copyparty/mdns.py copyparty/stolen/dnslib
|
||||
|
||||
@@ -49,14 +49,23 @@ while [ "$1" ]; do
|
||||
done
|
||||
|
||||
./make-pyz.sh
|
||||
mv ../dist/copyparty{,-int}.pyz
|
||||
|
||||
./make-sfx.sh re lang eng "$@"
|
||||
mv ../dist/copyparty-{sfx,en}.py
|
||||
|
||||
rm -rf /tmp/pe-copyparty* ../sfx
|
||||
../dist/copyparty-en.py --version >/dev/null 2>&1
|
||||
|
||||
./make-sfx.sh re no-smb "$@"
|
||||
./make-pyz.sh
|
||||
mv ../dist/copyparty{,-en}.pyz
|
||||
mv ../dist/copyparty{-int,}.pyz
|
||||
mv ../dist/copyparty-{int,sfx}.py
|
||||
|
||||
./genhelp.sh
|
||||
|
||||
[ $rls ] || exit # ----------------------------------------------------
|
||||
[ $rls ] || exit 0 # ----------------------------------------------------
|
||||
|
||||
./prep.sh
|
||||
git add ../contrib/package/arch/PKGBUILD ../contrib/package/makedeb-mpr/PKGBUILD ../contrib/package/nix/copyparty/pin.json
|
||||
|
||||
Reference in New Issue
Block a user