function create_package() { $Architecture = Architecture(); if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } $WORKDIR = $GLOBALS["ROOT-DIR"]; $version = PROFTPD_VERSION(); @mkdir("{$WORKDIR}/sbin", 0755, true); @mkdir("{$WORKDIR}/usr/sbin", 0755, true); $fdir[] = "/usr/lib/proftpd"; $fdir[] = "/etc/proftpd"; while (list($num, $ligne) = each($fdir)) { @mkdir("{$WORKDIR}{$ligne}", 0755, true); echo "Installing {$ligne} in {$WORKDIR}{$ligne}/\n"; shell_exec("/bin/cp -rfd {$ligne}/* {$WORKDIR}{$ligne}/"); } $f[] = "/usr/bin/ftpasswd"; $f[] = "/usr/bin/ftpmail"; $f[] = "/usr/bin/ftpquota"; $f[] = "/usr/bin/ftpcount"; $f[] = "/usr/bin/ftpdctl"; $f[] = "/usr/sbin/ftpscrub"; $f[] = "/usr/sbin/ftpshut"; $f[] = "/usr/bin/ftptop"; $f[] = "/usr/bin/ftpwho"; $f[] = "/usr/bin/prxs"; while (list($num, $ligne) = each($f)) { if (!is_file($ligne)) { echo "{$ligne} no such file\n"; continue; } $dir = dirname($ligne); echo "Installing {$ligne} in {$WORKDIR}{$dir}/\n"; if (!is_dir("{$WORKDIR}{$dir}")) { @mkdir("{$WORKDIR}{$dir}", 0755, true); } shell_exec("/bin/cp -fd {$ligne} {$WORKDIR}{$dir}/"); } echo "Creating package done....\n"; echo "Building package Arch:{$Architecture} Version:{$version}\n"; echo "Going to {$WORKDIR}\n"; @chdir("{$WORKDIR}"); echo "Compressing proftpd-{$Architecture}-{$version}.tar.gz\n"; if (is_file("/root/proftpd-{$Architecture}-{$version}.tar.gz")) { @unlink("/root/proftpd-{$Architecture}-{$version}.tar.gz"); } shell_exec("tar -czf /root/proftpd-{$Architecture}-{$version}.tar.gz *"); echo "Compressing /root/proftpd-{$Architecture}-{$version}.tar.gz Done...\n"; }
function create_package() { $Architecture = Architecture(); if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } $WORKDIR = $GLOBALS["ROOT-DIR"]; @mkdir("{$WORKDIR}/opt/ufdbcat/bin", 0755, true); @mkdir("{$WORKDIR}/usr/sbin", 0755, true); @mkdir("{$WORKDIR}/etc/artica-postfix", 0755, true); @mkdir("{$WORKDIR}/etc/artica-postfix/settings/Daemons", 0755, true); @file_put_contents("{$WORKDIR}/etc/artica-postfix/UFDBCAT_INSTALLED", time()); @file_put_contents("{$WORKDIR}/etc/artica-postfix/settings/Daemons/UfdbcatOnlyTCP", 1); if (is_file("/opt/ufdbcat/bin/ufdbcatdd")) { @unlink("/opt/ufdbcat/bin/ufdbcatdd"); } @copy("/opt/ufdbcat/bin/ufdbguardd", "/opt/ufdbcat/bin/ufdbcatdd"); @chmod("/opt/ufdbcat/bin/ufdbcatdd", 0755); $f[] = "/opt/ufdbcat/bin/ufdbcatdd"; $f[] = "/opt/ufdbcat/bin/ufdbGenTable"; $version = UFDBCAT_VERSION(); while (list($num, $ligne) = each($f)) { if (!is_file($ligne)) { echo "{$ligne} no such file\n"; continue; } $dir = dirname($ligne); echo "Installing {$ligne} in {$WORKDIR}{$dir}/\n"; if (!is_dir("{$WORKDIR}{$dir}")) { @mkdir("{$WORKDIR}{$dir}", 0755, true); } shell_exec("/bin/cp -fd {$ligne} {$WORKDIR}{$dir}/"); } echo "Creating package done....\n"; echo "Building package Arch:{$Architecture} Version:{$version}\n"; echo "Going to {$WORKDIR}\n"; @chdir("{$WORKDIR}"); $tgzname = "ufdbcat-{$Architecture}-{$version}.tar.gz"; echo "Compressing {$tgzname}\n"; if (is_file("/root/{$tgzname}")) { @unlink("/root/{$tgzname}"); } shell_exec("tar -czf /root/{$tgzname} *"); echo "Compressing /root/{$tgzname} Done...\n"; }
function CONFIGURE_SQUID() { $Debian = DebianVersion(); $Architecture = Architecture(); /* NETTLE !! * http://www.linuxfromscratch.org/blfs/view/svn/postlfs/nettle.html */ $CFLAGS[] = "#!/bin/sh"; $CFLAGS[] = "PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"; $CFLAGS[] = "CFLAGS=\"-g -O2 -fPIE -fstack-protector -DNUMTHREADS=256 --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall\""; $CFLAGS[] = "CXXFLAGS=\"-g -O2 -fPIE -DNUMTHREADS=256 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security\""; $CFLAGS[] = "CPPFLAGS=\"-D_FORTIFY_SOURCE=2\" LDFLAGS=\"-fPIE -pie -Wl,-z,relro -Wl,-z,now\""; $CFLAGS[] = "echo \$CFLAGS"; $CFLAGS[] = "echo \$CXXFLAGS"; $CFLAGS[] = "echo \$CPPFLAGS"; $CFLAGS[] = ""; @file_put_contents("/tmp/flags.sh", @implode("\n", $CFLAGS)); $CFLAGS = array(); @chmod("/tmp/flags.sh", 0755); system("/tmp/flags.sh"); $cmds[] = "--prefix=/usr"; if ($Architecture == 64) { $cmds[] = "--build=x86_64-linux-gnu"; } $cmds[] = "--includedir=\${prefix}/include"; $cmds[] = "--mandir=\${prefix}/share/man"; $cmds[] = "--infodir=\${prefix}/share/info"; $cmds[] = "--localstatedir=/var"; $cmds[] = "--libexecdir=\${prefix}/lib/squid3"; $cmds[] = "--disable-maintainer-mode"; $cmds[] = "--disable-dependency-tracking"; $cmds[] = "--srcdir=."; $cmds[] = "--datadir=/usr/share/squid3"; $cmds[] = "--sysconfdir=/etc/squid3"; $cmds[] = "--enable-gnuregex"; $cmds[] = "--enable-removal-policy=heap"; $cmds[] = "--enable-follow-x-forwarded-for"; $cmds[] = "--enable-cache-digests"; $cmds[] = "--enable-http-violations"; $cmds[] = "--enable-removal-policies=lru,heap"; $cmds[] = "--enable-arp-acl"; $cmds[] = "--enable-truncate"; $cmds[] = "--with-large-files"; $cmds[] = "--with-pthreads"; $cmds[] = "--enable-esi"; $cmds[] = "--enable-storeio=aufs,diskd,ufs,rock"; $cmds[] = "--enable-x-accelerator-vary"; $cmds[] = "--with-dl"; $cmds[] = "--enable-linux-netfilter"; if ($Debian > 6) { $cmds[] = "--with-netfilter-conntrack"; } $cmds[] = "--enable-wccpv2"; $cmds[] = "--enable-eui"; $cmds[] = "--enable-auth"; $cmds[] = "--enable-auth-basic"; $cmds[] = "--enable-snmp"; $cmds[] = "--enable-icmp"; $cmds[] = "--enable-auth-digest"; $cmds[] = "--enable-log-daemon-helpers"; $cmds[] = "--enable-url-rewrite-helpers"; $cmds[] = "--enable-auth-ntlm"; $cmds[] = "--with-default-user=squid"; $cmds[] = "--enable-icap-client"; $cmds[] = "--enable-cache-digests"; $cmds[] = "--enable-poll"; $cmds[] = "--enable-epoll"; $cmds[] = "--enable-async-io=128"; $cmds[] = "--enable-zph-qos"; $cmds[] = "--enable-delay-pools"; $cmds[] = "--enable-http-violations"; $cmds[] = "--enable-url-maps"; $cmds[] = "--enable-ecap"; $cmds[] = "--enable-ssl"; $cmds[] = "--with-openssl"; $cmds[] = "--enable-ssl-crtd"; $cmds[] = "--enable-xmalloc-statistics"; $cmds[] = "--enable-ident-lookups"; $cmds[] = "--with-filedescriptors=65536"; $cmds[] = "--with-aufs-threads=128"; $cmds[] = "--disable-arch-native"; //$cmds[]="--disable-ipv6"; //CPPFLAGS="-I../libltdl" $configure = "./configure " . @implode(" ", $cmds); echo "apt-get install libssl-dev conntrack libnetfilter-conntrack-dev libcap-dev\n"; echo "***************************************************************\n\n\n{$configure}\n\n***************************************************************\n"; return $configure; }
function create_package() { $Architecture = Architecture(); $unix = new unix(); $wget = $unix->find_program("wget"); $tar = $unix->find_program("tar"); $rm = $unix->find_program("rm"); $cp = $unix->find_program("cp"); $DebianVersion = DebianVersion(); if ($DebianVersion == 6) { $DebianVersion = null; } else { $DebianVersion = "-debian{$DebianVersion}"; } @mkdir('/root/samba-builder/usr/sbin', 0755, true); @mkdir('/root/samba-builder/usr/bin', 0755, true); @mkdir('/root/samba-builder/usr/lib/samba', 0755, true); @mkdir('/root/samba-builder/usr/lib/samba/vfs', 0755, true); @mkdir('/root/samba-builder/usr/lib/samba/idmap', 0755, true); @mkdir('/root/samba-builder/usr/lib/samba/charset', 0755, true); @mkdir('/root/samba-builder/usr/lib/samba/auth', 0755, true); @mkdir('/root/samba-builder/lib/security', 0755, true); @mkdir('/root/samba-builder/usr/include', 0755, true); @mkdir('/root/samba-builder/usr/lib', 0755, true); @mkdir('/root/samba-builder/lib', 0755, true); @mkdir('/root/samba-builder/usr/include', 0755, true); @mkdir('/root/samba-builder/etc/ctdb/events.d', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/de/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/ar/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/cs/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/da/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/es/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/fi/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/fr/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/hu/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/it/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/ja/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/ko/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/nb/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/nl/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/pl/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/pt_BR/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/ru/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/sv/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/zh_CN/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/share/locale/zh_TW/LC_MESSAGES', 0755, true); @mkdir('/root/samba-builder/usr/bin', 0755, true); @mkdir('/root/samba-builder/usr/lib', 0755, true); @mkdir('/root/samba-builder/usr/lib/php5/20090626+lfs', 0755, true); @mkdir('/root/samba-builder/usr/lib/xapian-omega', 0755, true); @mkdir('/root/samba-builder/usr/share/omega', 0755, true); @mkdir('/root/samba-builder/usr/include/xapian', 0755, true); $f[] = "/usr/sbin/smbd"; $f[] = "/usr/sbin/nmbd"; $f[] = "/usr/sbin/swat"; $f[] = "/usr/sbin/winbindd"; $f[] = "/usr/sbin/msktutil"; $f[] = "/usr/bin/wbinfo"; $f[] = "/usr/bin/smbclient"; $f[] = "/usr/bin/net"; $f[] = "/usr/bin/smbspool"; $f[] = "/usr/bin/testparm"; $f[] = "/usr/bin/smbstatus"; $f[] = "/usr/bin/smbget"; $f[] = "/usr/bin/smbta-util"; $f[] = "/usr/bin/smbcontrol"; $f[] = "/usr/bin/smbtree"; $f[] = "/usr/bin/tdbbackup"; $f[] = "/usr/bin/nmblookup"; $f[] = "/usr/bin/pdbedit"; $f[] = "/usr/bin/tdbdump"; $f[] = "/usr/bin/tdbrestore"; $f[] = "/usr/bin/tdbtool"; $f[] = "/usr/bin/smbpasswd"; $f[] = "/usr/bin/rpcclient"; $f[] = "/usr/bin/smbcacls"; $f[] = "/usr/bin/profiles"; $f[] = "/usr/bin/ntlm_auth"; $f[] = "/usr/bin/sharesec"; $f[] = "/usr/bin/smbcquotas"; $f[] = "/usr/bin/eventlogadm"; $f[] = "/usr/lib/samba/lowcase.dat"; $f[] = "/usr/lib/samba/upcase.dat"; $f[] = "/usr/lib/samba/valid.dat"; $f[] = "/usr/lib/samba/vfs/recycle.so"; $f[] = "/usr/lib/samba/vfs/audit.so"; $f[] = "/usr/lib/samba/vfs/extd_audit.so"; $f[] = "/usr/lib/samba/vfs/full_audit.so"; $f[] = "/usr/lib/samba/vfs/netatalk.so"; $f[] = "/usr/lib/samba/vfs/fake_perms.so"; $f[] = "/usr/lib/samba/vfs/default_quota.so"; $f[] = "/usr/lib/samba/vfs/readonly.so"; $f[] = "/usr/lib/samba/vfs/cap.so"; $f[] = "/usr/lib/samba/vfs/expand_msdfs.so"; $f[] = "/usr/lib/samba/vfs/shadow_copy.so"; $f[] = "/usr/lib/samba/vfs/shadow_copy2.so"; $f[] = "/usr/lib/samba/vfs/xattr_tdb.so"; $f[] = "/usr/lib/samba/vfs/catia.so"; $f[] = "/usr/lib/samba/vfs/streams_xattr.so"; $f[] = "/usr/lib/samba/vfs/streams_depot.so"; $f[] = "/usr/lib/samba/vfs/readahead.so"; $f[] = "/usr/lib/samba/vfs/fileid.so"; $f[] = "/usr/lib/samba/vfs/preopen.so"; $f[] = "/usr/lib/samba/vfs/syncops.so"; $f[] = "/usr/lib/samba/vfs/acl_xattr.so"; $f[] = "/usr/lib/samba/vfs/acl_tdb.so"; $f[] = "/usr/lib/samba/vfs/smb_traffic_analyzer.so"; $f[] = "/usr/lib/samba/vfs/dirsort.so"; $f[] = "/usr/lib/samba/vfs/scannedonly.so"; $f[] = "/usr/lib/samba/vfs/crossrename.so"; $f[] = "/usr/lib/samba/vfs/linux_xfs_sgid.so"; $f[] = "/usr/lib/samba/vfs/time_audit.so"; $f[] = "/usr/lib/samba/idmap/rid.so"; $f[] = "/usr/lib/samba/idmap/autorid.so"; $f[] = "/usr/lib/samba/idmap/ad.so"; $f[] = "/usr/lib/samba/charset/CP850.so"; $f[] = "/usr/lib/samba/charset/CP437.so"; $f[] = "/usr/lib/samba/auth/script.so"; $f[] = "/usr/lib/samba/de.msg"; $f[] = "/usr/lib/samba/en.msg"; $f[] = "/usr/lib/samba/fi.msg"; $f[] = "/usr/lib/samba/fr.msg"; $f[] = "/usr/lib/samba/it.msg"; $f[] = "/usr/lib/samba/ja.msg"; $f[] = "/usr/lib/samba/nl.msg"; $f[] = "/usr/lib/samba/pl.msg"; $f[] = "/usr/lib/samba/ru.msg"; $f[] = "/usr/lib/samba/tr.msg"; $f[] = "/lib/security/pam_smbpass.so"; $f[] = "/lib/security/pam_winbind.so"; $f[] = "/usr/lib/libtalloc.so.2.0.5"; $f[] = "/usr/lib/libtalloc.a"; $f[] = "/usr/include/talloc.h"; $f[] = "/usr/lib/libtdb.so.1.2.9"; $f[] = "/usr/lib/libtdb.a"; $f[] = "/usr/include/tdb.h"; $f[] = "/usr/lib/libwbclient.so.0"; $f[] = "/usr/lib/libwbclient.a"; $f[] = "/usr/include/wbclient.h"; $f[] = "/usr/lib/libnetapi.so.0"; $f[] = "/usr/lib/libnetapi.a"; $f[] = "/usr/include/netapi.h"; $f[] = "/usr/lib/libsmbclient.so.0"; $f[] = "/usr/lib/libsmbclient.a"; $f[] = "/usr/include/libsmbclient.h"; $f[] = "/usr/lib/libsmbsharemodes.so.0"; $f[] = "/usr/lib/libsmbsharemodes.a"; $f[] = "/usr/include/smb_share_modes.h"; $f[] = "/usr/share/locale/de/LC_MESSAGES/net.mo"; $f[] = "/usr/share/locale/ar/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/cs/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/da/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/de/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/es/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/fi/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/fr/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/hu/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/it/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/ja/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/ko/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/nb/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/nl/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/pl/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/pt_BR/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/ru/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/sv/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/zh_CN/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/share/locale/zh_TW/LC_MESSAGES/pam_winbind.mo"; $f[] = "/usr/lib/libnetapi.a"; $f[] = "/usr/lib/libnetapi.so.0"; $f[] = "/usr/lib/libsmbclient.a"; $f[] = "/usr/lib/libsmbclient.so.0"; $f[] = "/usr/lib/libsmbsharemodes.a"; $f[] = "/usr/lib/libsmbsharemodes.so.0"; $f[] = "/usr/lib/libtalloc.a"; $f[] = "/usr/lib/libtalloc.so.2.0.5"; $f[] = "/usr/lib/libtalloc.so.2"; $f[] = "/usr/lib/libtdb.a"; $f[] = "/usr/lib/libtdb.so.1.2.9"; $f[] = "/usr/lib/libtdb.so.1"; $f[] = "/usr/lib/libcups.so.2"; $f[] = "/usr/lib/libavahi-client.so.3"; $f[] = "/usr/lib/libavahi-client.so.3.2.7"; $f[] = "/usr/lib/libwbclient.so.0"; $f[] = "/lib/libnss_winbind.so"; $f[] = "/lib/libnss_wins.so"; $f[] = "/usr/bin/ctdb"; $f[] = "/usr/bin/smnotify"; $f[] = "/usr/bin/ping_pong"; $f[] = "/usr/bin/ctdb_diagnostics"; $f[] = "/usr/bin/onnode"; $f[] = "/usr/include/ctdb.h"; $f[] = "/usr/include/ctdb_private.h"; $f[] = "/usr/sbin/ctdbd"; $f[] = "/usr/share/locale/cs/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/da/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/de/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/eo/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/es/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/fi/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/fr/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/ga/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/gl/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/hu/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/id/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/is/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/it/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/ja/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/ko/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/lv/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/nb/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/nl/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/pl/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/pt/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/ro/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/ru/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/sk/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/sl/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/sv/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/th/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/tr/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/uk/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/vi/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/wa/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/zh_TW/LC_MESSAGES/popt.mo"; $f[] = "/usr/share/locale/zh_CN/LC_MESSAGES/popt.mo"; $f[] = "/usr/lib/libpopt.la"; $f[] = "/usr/lib/libpopt.so.0.0.0"; $f[] = "/usr/lib/libpopt.so.0"; $f[] = "/usr/lib/libpopt.so"; $f[] = "/usr/include/popt.h"; $f[] = "/usr/lib/libxapian.la"; $f[] = "/usr/lib/libxapian.so"; $f[] = "/usr/lib/libxapian.a"; $f[] = "/usr/lib/libxapian.so.22.5.0 "; $f[] = "/usr/lib/libxapian.so.22"; $f[] = "/usr/lib/libxapian.so.22.6.3"; $f[] = "/usr/lib/xapian-omega/bin/omega"; $f[] = "/usr/bin/quartzcheck"; $f[] = "/usr/bin/quartzcheck"; $f[] = "/usr/bin/quartzcompact"; $f[] = "/usr/bin/quartzcompact"; $f[] = "/usr/bin/quartzdump"; $f[] = "/usr/bin/xapian-check"; $f[] = "/usr/bin/xapian-compact"; $f[] = "/usr/bin/xapian-inspect"; $f[] = "/usr/bin/xapian-progsrv"; $f[] = "/usr/bin/xapian-tcpsrv"; $f[] = "/usr/bin/copydatabase"; $f[] = "/usr/bin/delve"; $f[] = "/usr/bin/quest"; $f[] = "/usr/bin/simpleexpand"; $f[] = "/usr/bin/simpleindex"; $f[] = "/usr/bin/simplesearch"; $f[] = "/usr/bin/xapian-config"; $f[] = "/usr/include/xapian.h"; $f[] = "/usr/share/php5/xapian.php"; $f[] = "/usr/lib/php5/20090626+lfs/xapian.so"; $f[] = "/usr/lib/php5/20090626/xapian.so"; $f[] = "/usr/lib/php5/20090626+lfs/xapian.la"; $f[] = "/usr/lib/php5/20090626/xapian.la"; $f[] = "/usr/bin/xapian-check"; $f[] = "/usr/bin/xapian-compact"; $f[] = "/usr/bin/xapian-inspect"; $f[] = "/usr/bin/xapian-replicate"; $f[] = "/usr/bin/xapian-replicate-server"; $f[] = "/usr/bin/xapian-chert-update"; $f[] = "/usr/bin/xapian-progsrv"; $f[] = "/usr/bin/xapian-tcpsrv"; $f[] = "/usr/bin/dbi2omega "; $f[] = "/usr/bin/htdig2omega "; $f[] = "/usr/bin/mbox2omega"; $f[] = "/usr/bin/omindex"; $f[] = "/usr/bin/scriptindex"; $f[] = "/usr/bindbi2omega"; $f[] = "/usr/binhtdig2omega"; $f[] = "/usr/binmbox2omega"; while (list($num, $ligne) = each($f)) { if (!is_file($ligne)) { echo "{$ligne} no such file\n"; continue; } $dir = dirname($ligne); echo "Installing {$ligne} in /root/samba-builder{$dir}/\n"; if (!is_dir("/root/samba-builder{$dir}")) { @mkdir("/root/samba-builder{$dir}", 0755, true); } shell_exec("/bin/cp -fd {$ligne} /root/samba-builder{$dir}/"); } shell_exec("/bin/cp -rfd /usr/lib/samba/* /root/samba-builder/usr/lib/samba/"); shell_exec("/bin/cp -rfd /etc/ctdb/* /root/samba-builder/etc/ctdb/"); shell_exec("/bin/cp -rfd /usr/lib/xapian-omega/* /root/samba-builder/usr/lib/xapian-omega/"); shell_exec("/bin/cp -rfd /usr/share/omega/* /root/samba-builder/usr/share/omega/"); echo "Creating package done....\n"; if (is_dir("/root/3/samba-3.6.22")) { $SOURCESOURCE_DIRECTORY = "/root/3/samba-3.6.22"; } if (is_file("{$SOURCESOURCE_DIRECTORY}/nsswitch/libnss_wins.so")) { echo "Copy {$SOURCESOURCE_DIRECTORY}/nsswitch/libnss_wins.so\n"; @copy("{$SOURCESOURCE_DIRECTORY}/nsswitch/libnss_wins.so", "/lib/libnss_wins.so"); } if (is_file("{$SOURCESOURCE_DIRECTORY}/nsswitch/libnss_winbind.so")) { echo "Copy {$SOURCESOURCE_DIRECTORY}/nsswitch/libnss_winbind.so\n"; @copy("{$SOURCESOURCE_DIRECTORY}/nsswitch/libnss_winbind.so", "/lib/libnss_winbind.so"); } if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } @mkdir("/root/samba-builder/etc/init.d", 0755, true); if (is_file("{$SOURCESOURCE_DIRECTORY}/packaging/LSB/samba.sh")) { shell_exec("/bin/cp {$SOURCESOURCE_DIRECTORY}/packaging/LSB/samba.sh /root/samba-builder/etc/init.d/samba"); @chmod("/root/samba-builder/etc/init.d/samba", 0755); } else { echo "{$SOURCESOURCE_DIRECTORY}/packaging/LSB/samba.sh no such file"; } $version = SAMBA_VERSION(); echo "Building package Arch:{$Architecture} Version:{$version} {$DebianVersion}\n"; @chdir("/root/samba-builder"); if (is_file("/root/samba-builder/sambac{$DebianVersion}-{$Architecture}-{$version}.tar.gz")) { @unlink("/root/samba-builder/sambac-{$Architecture}-{$version}.tar.gz"); } echo "Compressing sambac{$DebianVersion}-{$Architecture}-{$version}.tar.gz\n"; shell_exec("{$tar} -czf sambac{$DebianVersion}-{$Architecture}-{$version}.tar.gz *"); echo "Compressing /root/samba-builder/sambac{$DebianVersion}-{$Architecture}-{$version}.tar.gz Done...\n"; if (is_file("/root/ftp-password")) { echo "Uploading /root/samba-builder/sambac{$DebianVersion}-{$Architecture}-{$version}.tar.gz Done...\n"; echo "/root/samba-builder/sambac-{$Architecture}{$DebianVersion}-{$version}.tar.gz is now ready to be uploaded\n"; if ($DebianVersion == null) { shell_exec("curl -T /root/samba-builder/sambac{$DebianVersion}-{$Architecture}-{$version}.tar.gz ftp://www.articatech.net/download/ --user " . @file_get_contents("/root/ftp-password")); if (is_file("/root/rebuild-artica")) { shell_exec("{$wget} \"" . @file_get_contents("/root/rebuild-artica") . "\" -O /tmp/rebuild.html"); } } } }
function iscsi_target() { $Debian = DebianVersion(); $Architecture = Architecture(); $version = package_nginx_version(); $f[] = "/usr/sbin/ietd"; $f[] = "/usr/sbin/ietadm"; $f[] = "/lib/modules/3.2.0-4-amd64/extra/iscsi/iscsi_trgt.ko"; $f[] = "/lib/modules/3.2.0-4-amd64/updates/dkms/iscsi_trgt.ko.distrib"; $base = "/root/ietadm"; while (list($num, $filename) = each($f)) { if (is_dir($filename)) { @mkdir("{$base}/{$filename}", 0755, true); echo "/bin/cp -rfd {$filename}/* {$base}{$filename}/\n"; shell_exec("/bin/cp -rfd {$filename}/* {$base}{$filename}/"); continue; } if (is_file($filename)) { $dirname = dirname($filename); if (!is_dir("{$base}/{$dirname}")) { @mkdir("{$base}/{$dirname}", 0755, true); } echo "/bin/cp -fd {$filename} {$base}{$dirname}/\n"; shell_exec("/bin/cp -fd {$filename} {$base}/{$dirname}/"); } } chdir($base); if (is_file("{$base}/ietd-{$Architecture}.tar.gz")) { @unlink("{$base}/ietd-{$Architecture}.tar.gz"); } $filename = "ietd-debian{$Debian}-{$Architecture}.tar.gz"; shell_exec("tar -czf {$filename} *"); shell_exec("/bin/cp {$filename} /root/"); echo "/root/{$filename} done\n"; }
* apt-get install libtool libssl-dev libcurl4-openssl-dev gengetopt * dpkg-architecture -qDEB_BUILD_GNU_TYPE [ x86_64-linux-gnu or i486-linux-gnu ] svn checkout http://dev.coova.org/svn/coova-chilli/ cd coova-chilli sh bootstrap i386 ./configure --prefix=/usr --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --enable-largelimits --enable-binstatusfile --enable-statusfile --enable-chilliproxy --enable-chilliradsec --enable-chilliredir --with-openssl --with-curl --with-poll --enable-dhcpopt --enable-sessgarden --enable-dnslog --enable-ipwhitelist --enable-redirdnsreq --enable-miniconfig --enable-libjson --enable-layer3 --enable-proxyvsa --enable-miniportal --enable-chilliscript --enable-eapol --enable-uamdomainfile --enable-modules --enable-multiroute --build=i486-linux-gnu ./configure --prefix=/usr --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --enable-largelimits --enable-proxyvsa --enable-miniportal --enable-chilliredir --enable-chilliproxy --enable-binstatusfile --enable-chilliscript --enable-chilliradsec --enable-dnslog --enable-layer3 --enable-eapol --enable-uamdomainfile --enable-redirdnsreq --enable-modules --enable-multiroute --enable-extadmvsa --with-openssl --with-poll --enable-gardenaccounting amd64 ./configure --prefix=/usr --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --enable-largelimits --enable-binstatusfile --enable-statusfile --enable-chilliproxy --enable-chilliradsec --enable-chilliredir --with-openssl --with-curl --with-poll --enable-dhcpopt --enable-sessgarden --enable-dnslog --enable-ipwhitelist --enable-redirdnsreq --enable-miniconfig --enable-libjson --enable-layer3 --enable-proxyvsa --enable-miniportal --enable-chilliscript --enable-eapol --enable-uamdomainfile --enable-modules --enable-multiroute --build=x86_64-linux-gnu make make install */ $Architecture = Architecture(); $version = chilli_version(); $f["/usr/lib/libbstring.a"] = true; $f["/usr/lib/libbstring.so.0.0.0 "] = true; $f["/usr/lib/libbstring.so"] = true; $f["/usr/lib/libbstring.so.0"] = true; $f["/usr/lib/libjson.so.0.0.0 "] = true; $f["/usr/lib/libjson.so.0"] = true; $f["/usr/lib/libjson.so.0.0.0 "] = true; $f["/usr/lib/libjson.so.0"] = true; $f["/usr/lib/libjson.a"] = true; $f["/usr/lib/libchilli.so"] = true; $f["/usr/lib/libchilli.so.0.0.0 "] = true; $f["/usr/lib/libchilli.so.0"] = true; $f["/usr/lib/libchilli.a"] = true; $f["/usr/lib/coova-chilli/sample.so"] = true;
function create_package() { $Architecture = Architecture(); if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } $WORKDIR = $GLOBALS["ROOT-DIR"]; @mkdir("{$WORKDIR}/sbin", 0755, true); @mkdir("{$WORKDIR}/usr/sbin", 0755, true); @mkdir("{$WORKDIR}//usr/lib/powerdns/", 0755, true); if (is_dir("/lib/powerdns")) { shell_exec("/bin/cp -rfd /lib/powerdns/* {$WORKDIR}/usr/lib/powerdns/"); } $fdir[] = "/usr/lib/powerdns"; $fdir[] = "/lib/powerdns"; $fdir[] = "/etc/powerdns"; $fdir[] = "/usr/share/poweradmin"; $fdir[] = "/usr/share/doc/pdns"; $fdir[] = "/usr/lib/powerdns"; while (list($num, $ligne) = each($fdir)) { @mkdir("{$WORKDIR}{$ligne}", 0755, true); echo "Installing {$ligne} in {$WORKDIR}{$ligne}/\n"; shell_exec("/bin/cp -rfd {$ligne}/* {$WORKDIR}{$ligne}/"); } $f[] = "/usr/sbin/pdns_recursor"; $f[] = "/usr/sbin/pdns_server"; $f[] = "/usr/bin/pdnssec"; $f[] = "/usr/bin/dnsreplay"; $f[] = "/usr/bin/pdns_control"; $f[] = "/usr/bin/rec_control"; $f[] = "/etc/init.d/pdns-recursor"; $f[] = "/usr/bin/zone2sql"; $f[] = "/usr/bin/zone2ldap"; $f[] = "/usr/bin/zone2json"; $f[] = "/etc/init.d/pdns"; $f[] = "/usr/share/man/man8/pdns_control.8"; $f[] = "/usr/share/man/man8/pdnssec.8"; $f[] = "/usr/share/man/man8/pdns_server.8"; $f[] = "/usr/share/man/man1/pdns_recursor.1"; $f[] = "/usr/share/man/man1/rec_control.1"; while (list($num, $ligne) = each($f)) { if (!is_file($ligne)) { echo "{$ligne} no such file\n"; continue; } $dir = dirname($ligne); echo "Installing {$ligne} in {$WORKDIR}{$dir}/\n"; if (!is_dir("{$WORKDIR}{$dir}")) { @mkdir("{$WORKDIR}{$dir}", 0755, true); } shell_exec("/bin/cp -fd {$ligne} {$WORKDIR}{$dir}/"); } $version = PDNS_VERSION(); echo "Creating package done....\n"; echo "Building package Arch:{$Architecture} Version:{$version}\n"; echo "Going to {$WORKDIR}\n"; @chdir("{$WORKDIR}"); $debianv = DebianVersion(); if ($debianv > 6) { $debianv = "-debian{$debianv}"; } $TARGET_TGZ = "/root/pdnsc-{$Architecture}{$debianv}-{$version}.tar.gz"; echo "Compressing {$TARGET_TGZ}\n"; if (is_file($TARGET_TGZ)) { @unlink($TARGET_TGZ); } shell_exec("tar -czf {$TARGET_TGZ} *"); echo "Compressing {$TARGET_TGZ} Done...\n"; }
function create_package() { $Architecture = Architecture(); if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } $WORKDIR = $GLOBALS["ROOT-DIR"]; $version = CLAMAV_VERSION(); @mkdir("{$WORKDIR}/sbin", 0755, true); @mkdir("{$WORKDIR}/usr/sbin", 0755, true); @mkdir("{$WORKDIR}/usr/bin", 0755, true); @mkdir("{$WORKDIR}/usr/lib/python2.7/dist-packages/axl", 0755, true); @mkdir("{$WORKDIR}/usr/lib/valvulad/modules", 0755, true); @mkdir("{$WORKDIR}/usr/etc/valvula/mods-available", 0755, true); @mkdir("{$WORKDIR}/usr/local/lib/perl/5.14.2/auto/Digest/SHA1", 0755, true); @mkdir("{$WORKDIR}/usr/local/share/perl/5.14.2/MIME", 0755, true); @mkdir("{$WORKDIR}/usr/local/share/perl/5.14.2/Net/DNS", 0755, true); @mkdir("{$WORKDIR}/usr/local/share/perl/5.14.2/Math", 0755, true); @mkdir("{$WORKDIR}/usr/local/share/perl/5.14.2/auto/Math/Round", 0755, true); @mkdir("{$WORKDIR}/usr/local/share/perl/5.14.2/Archive/Zip", 0755, true); @mkdir("{$WORKDIR}/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP", 0755, true); @mkdir("{$WORKDIR}/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase", 0755, true); @mkdir("{$WORKDIR}/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/Util", 0755, true); @mkdir("{$WORKDIR}/usr/local/bin", 0755, true); @mkdir("{$WORKDIR}/usr/local/sbin", 0755, true); @mkdir("{$WORKDIR}/etc/mail", 0755, true); $f[] = "/usr/lib/libclamav.la"; $f[] = "/usr/lib/libclamav.so.6"; $f[] = "/usr/lib/libclamav.so.7"; $f[] = "/usr/lib/libclamunrar_iface.la"; $f[] = "/usr/lib/libclamunrar_iface.so.7"; $f[] = "/usr/lib/libclamunrar.la"; $f[] = "/usr/lib/libclamunrar.so.7"; $f[] = "/usr/lib/libclamav.so"; $f[] = "/usr/lib/libclamav.so.6.1.24"; $f[] = "/usr/lib/libclamav.so.7.1.1"; $f[] = "/usr/lib/libclamunrar_iface.so"; $f[] = "/usr/lib/libclamunrar_iface.so.7.1.1"; $f[] = "/usr/lib/libclamunrar.so"; $f[] = "/usr/lib/libclamunrar.so.7.1.1"; $f[] = "/usr/include/clamav.h"; $f[] = "/usr/bin/clamscan"; $f[] = "/usr/sbin/clamd"; $f[] = "/usr/bin/clamdscan"; $f[] = "/usr/bin/freshclam"; $f[] = "/usr/bin/sigtool"; $f[] = "/usr/bin/clamconf"; $f[] = "/usr/sbin/clamav-milter"; $f[] = "/usr/bin/clambc"; $f[] = "/usr/bin/clamsubmit"; $f[] = "/usr/bin/clamav-config"; $f[] = "/usr/lib/libaxl.a"; $f[] = "/usr/lib/libaxl-babel.la"; $f[] = "/usr/lib/libaxl-babel.so.0"; $f[] = "/usr/lib/libaxl.la"; $f[] = "/usr/lib/libaxl-ns.la"; $f[] = "/usr/lib/libaxl-ns.so.0"; $f[] = "/usr/lib/libaxl.so"; $f[] = "/usr/lib/libaxl.so.0.0.0"; $f[] = "/usr/lib/libaxl-babel.a"; $f[] = "/usr/lib/libaxl-babel.so"; $f[] = "/usr/lib/libaxl-babel.so.0.0.0"; $f[] = "/usr/lib/libaxl-ns.a"; $f[] = "/usr/lib/libaxl-ns.so"; $f[] = "/usr/lib/libaxl-ns.so.0.0.0"; $f[] = "/usr/lib/libaxl.so.0"; $f[] = "/usr/lib/libvalvula.a"; $f[] = "/usr/lib/libvalvulad.la"; $f[] = "/usr/lib/libvalvulad.so.0"; $f[] = "/usr/lib/libvalvula.la"; $f[] = "/usr/lib/libvalvula.so.0"; $f[] = "/usr/lib/libvalvulad.a"; $f[] = "/usr/lib/libvalvulad.so"; $f[] = "/usr/lib/libvalvulad.so.0.0.0"; $f[] = "/usr/lib/libvalvula.so"; $f[] = "/usr/lib/libvalvula.so.0.0.0"; $f[] = "/usr/lib/valvulad/mod-bwl.a"; $f[] = "/usr/lib/valvulad/mod-bwl.so"; $f[] = "/usr/lib/valvulad/mod-bwl.so.0.0.0"; $f[] = "/usr/lib/valvulad/mod-mquota.la"; $f[] = "/usr/lib/valvulad/mod-mquota.so.0"; $f[] = "/usr/lib/valvulad/mod-mw.a"; $f[] = "/usr/lib/valvulad/mod-mw.so"; $f[] = "/usr/lib/valvulad/mod-mw.so.0.0.0"; $f[] = "/usr/lib/valvulad/mod-slm.la"; $f[] = "/usr/lib/valvulad/mod-slm.so.0"; $f[] = "/usr/lib/valvulad/mod-test.a"; $f[] = "/usr/lib/valvulad/mod-test.so"; $f[] = "/usr/lib/valvulad/mod-test.so.0.0.0"; $f[] = "/usr/lib/valvulad/mod-ticket.la"; $f[] = "/usr/lib/valvulad/mod-ticket.so.0"; $f[] = "/usr/lib/valvulad/mod-bwl.la"; $f[] = "/usr/lib/valvulad/mod-bwl.so.0"; $f[] = "/usr/lib/valvulad/mod-mquota.a"; $f[] = "/usr/lib/valvulad/mod-mquota.so"; $f[] = "/usr/lib/valvulad/mod-mquota.so.0.0.0"; $f[] = "/usr/lib/valvulad/mod-mw.la"; $f[] = "/usr/lib/valvulad/mod-mw.so.0"; $f[] = "/usr/lib/valvulad/mod-slm.a"; $f[] = "/usr/lib/valvulad/mod-slm.so"; $f[] = "/usr/lib/valvulad/mod-slm.so.0.0.0"; $f[] = "/usr/lib/valvulad/mod-test.la"; $f[] = "/usr/lib/valvulad/mod-test.so.0"; $f[] = "/usr/lib/valvulad/mod-ticket.a"; $f[] = "/usr/lib/valvulad/mod-ticket.so"; $f[] = "/usr/lib/valvulad/mod-ticket.so.0.0.0"; $f[] = "/usr/lib/valvulad/modules/mod-bwl.a"; $f[] = "/usr/lib/valvulad/modules/mod-mquota.la"; $f[] = "/usr/lib/valvulad/modules/mod-mw.so"; $f[] = "/usr/lib/valvulad/modules/mod-slm.so.0"; $f[] = "/usr/lib/valvulad/modules/mod-test.so.0.0.0"; $f[] = "/usr/lib/valvulad/modules/mod-bwl.la"; $f[] = "/usr/lib/valvulad/modules/mod-mquota.so"; $f[] = "/usr/lib/valvulad/modules/mod-mw.so.0"; $f[] = "/usr/lib/valvulad/modules/mod-slm.so.0.0.0"; $f[] = "/usr/lib/valvulad/modules/mod-ticket.a"; $f[] = "/usr/lib/valvulad/modules/mod-bwl.so"; $f[] = "/usr/lib/valvulad/modules/mod-mquota.so.0"; $f[] = "/usr/lib/valvulad/modules/mod-mw.so.0.0.0"; $f[] = "/usr/lib/valvulad/modules/mod-test.a"; $f[] = "/usr/lib/valvulad/modules/mod-ticket.la"; $f[] = "/usr/lib/valvulad/modules/mod-bwl.so.0"; $f[] = "/usr/lib/valvulad/modules/mod-mquota.so.0.0.0"; $f[] = "/usr/lib/valvulad/modules/mod-slm.a"; $f[] = "/usr/lib/valvulad/modules/mod-test.la"; $f[] = "/usr/lib/valvulad/modules/mod-ticket.so"; $f[] = "/usr/lib/valvulad/modules/mod-bwl.so.0.0.0"; $f[] = "/usr/lib/valvulad/modules/mod-mw.a"; $f[] = "/usr/lib/valvulad/modules/mod-slm.la"; $f[] = "/usr/lib/valvulad/modules/mod-test.so"; $f[] = "/usr/lib/valvulad/modules/mod-ticket.so.0"; $f[] = "/usr/lib/valvulad/modules/mod-mquota.a"; $f[] = "/usr/lib/valvulad/modules/mod-mw.la"; $f[] = "/usr/lib/valvulad/modules/mod-slm.so"; $f[] = "/usr/lib/valvulad/modules/mod-test.so.0"; $f[] = "/usr/lib/valvulad/modules/mod-ticket.so.0.0.0"; $f[] = "/usr/lib/python2.7/dist-packages/axl/__init__.py"; $f[] = "/usr/lib/python2.7/dist-packages/axl/libpy_axl.a"; $f[] = "/usr/lib/python2.7/dist-packages/axl/libpy_axl.la"; $f[] = "/usr/lib/python2.7/dist-packages/axl/libpy_axl.so"; $f[] = "/usr/lib/python2.7/dist-packages/axl/libpy_axl.so.0"; $f[] = "/usr/lib/python2.7/dist-packages/axl/libpy_axl.so.0.0.0"; $f[] = "/usr/local/lib/perl/5.14.2/auto/Digest/SHA1/SHA1.so"; $f[] = "/usr/local/lib/perl/5.14.2/auto/Digest/SHA1/SHA1.bs"; $f[] = "/usr/local/lib/perl/5.14.2/Digest/SHA1.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Head.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Words.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Decoder.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Body.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Tools.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Parser.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/WordDecoder.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Entity.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Field/ContDisp.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Field/ContType.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Field/ConTraEnc.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Field/ParamVal.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Parser/Results.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Parser/Reader.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Parser/Filer.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Decoder/UU.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Decoder/BinHex.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Decoder/Gzip64.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Decoder/Binary.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Decoder/Base64.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Decoder/QuotedPrint.pm"; $f[] = "/usr/local/share/perl/5.14.2/MIME/Decoder/NBit.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/Netmask.pod"; $f[] = "/usr/local/share/perl/5.14.2/Net/Netmask.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/DomainName.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/ZoneFile.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Text.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Nameserver.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Update.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Parameters.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Domain.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Resolver.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/FAQ.pod"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Mailbox.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Question.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Header.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Packet.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/RP.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/PX.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/CNAME.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/ISDN.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/NULL.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/KX.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/URI.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/DLV.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/L32.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/SRV.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/DHCID.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/HIP.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/MX.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/CERT.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/RT.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/EUI48.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/X25.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/MR.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/HINFO.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/CDNSKEY.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/MINFO.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/PTR.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/GPOS.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/TXT.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/CDS.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/SOA.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/NSEC3.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/SPF.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/NAPTR.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/A.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/NS.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/MG.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/SIG.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/DS.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/LP.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/TLSA.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/AAAA.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/RRSIG.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/DNAME.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/KEY.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/LOC.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/TKEY.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/DNSKEY.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/TSIG.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/AFSDB.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/APL.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/MB.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/NSEC.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/CAA.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/NSEC3PARAM.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/L64.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/OPT.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/SSHFP.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/IPSECKEY.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/EUI64.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/OPENPGPKEY.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/NID.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/RR/CSYNC.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Resolver/cygwin.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Resolver/android.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Resolver/Recurse.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Resolver/os2.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Resolver/MSWin32.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Resolver/Base.pm"; $f[] = "/usr/local/share/perl/5.14.2/Net/DNS/Resolver/UNIX.pm"; $f[] = "/usr/local/share/perl/5.14.2/Math/Round.pm"; $f[] = "/usr/local/share/perl/5.14.2/auto/Math/Round/autosplit.ix"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/MockFileHandle.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/MemberRead.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/Tree.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/Member.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/DirectoryMember.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/FileMember.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/NewFileMember.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/StringMember.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/Archive.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/ZipFileMember.pm"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/FAQ.pod"; $f[] = "/usr/local/share/perl/5.14.2/Archive/Zip/BufferedFileHandle.pm"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/Util/Util.bs"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/Util/Util.so"; $f[] = "/usr/local/lib/perl/5.14.2/NetAddr/IP.pm"; $f[] = "/usr/local/lib/perl/5.14.2/NetAddr/IP/Util.pm"; $f[] = "/usr/local/lib/perl/5.14.2/NetAddr/IP/Lite.pm"; $f[] = "/usr/local/lib/perl/5.14.2/NetAddr/IP/UtilPP.pm"; $f[] = "/usr/local/lib/perl/5.14.2/NetAddr/IP/Util_IS.pm"; $f[] = "/usr/local/lib/perl/5.14.2/NetAddr/IP/InetBase.pm"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/hostenum.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/_splitref.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/re6.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/short.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/canon.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/mod_version.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/_compact_v6.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/re.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/coalesce.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/wildcard.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/_compV6.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/do_prefix.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/autosplit.ix"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/prefix.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/compactref.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/_splitplan.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/nprefix.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/Util/autosplit.ix"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/_inet_ntop.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/_inet_pton.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/inet_any2n.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/ipv6_ntoa.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/inet_n2dx.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/ipv6_aton.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/inet_ntoa.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/_packzeros.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/autosplit.ix"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/InetBase/inet_n2ad.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/bin2bcd.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/_bcd2bin.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/bcdn2bin.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/simple_pack.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/_deadlen.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/_sa128.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/comp128.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/bin2bcdn.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/ipanyto6.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/add128.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/_bin2bcdn.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/ipv4to6.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/hasbits.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/notcontiguous.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/mask4to6.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/slowadd128.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/shiftleft.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/autosplit.ix"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/_128x2.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/ipv6to4.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/maskanyto6.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/addconst.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/bcdn2txt.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/_bcdcheck.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/_128x10.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/sub128.al"; $f[] = "/usr/local/lib/perl/5.14.2/auto/NetAddr/IP/UtilPP/bcd2bin.al"; $f[] = "/usr/share/rspamd/lua"; $f[] = "/usr/share/rspamd/lua/hfilter.lua"; $f[] = "/usr/share/rspamd/lua/forged_recipients.lua"; $f[] = "/usr/share/rspamd/lua/multimap.lua"; $f[] = "/usr/share/rspamd/lua/ip_score.lua"; $f[] = "/usr/share/rspamd/lua/once_received.lua"; $f[] = "/usr/share/rspamd/lua/settings.lua"; $f[] = "/usr/share/rspamd/lua/maillist.lua"; $f[] = "/usr/share/rspamd/lua/mime_types.lua"; $f[] = "/usr/share/rspamd/lua/emails.lua"; $f[] = "/usr/share/rspamd/lua/fun.lua"; $f[] = "/usr/share/rspamd/lua/ratelimit.lua"; $f[] = "/usr/share/rspamd/lua/dmarc.lua"; $f[] = "/usr/share/rspamd/lua/spamassassin.lua"; $f[] = "/usr/share/rspamd/lua/trie.lua"; $f[] = "/usr/share/rspamd/lua/rbl.lua"; $f[] = "/usr/share/rspamd/lua/fann_scores.lua"; $f[] = "/usr/share/rspamd/lua/whitelist.lua"; $f[] = "/usr/share/rspamd/lua/phishing.lua"; $f[] = "/usr/share/rspamd/effective_tld_names.dat"; $f[] = "/usr/share/rspamd/rules/rspamd.classifiers.lua"; $f[] = "/usr/share/rspamd/rules/rspamd.lua"; $f[] = "/usr/share/rspamd/rules/http_headers.lua"; $f[] = "/usr/share/rspamd/rules/misc.lua"; $f[] = "/usr/share/rspamd/rules/regexp"; $f[] = "/usr/share/rspamd/rules/regexp/drugs.lua"; $f[] = "/usr/share/rspamd/rules/regexp/headers.lua"; $f[] = "/usr/share/rspamd/rules/regexp/fraud.lua"; $f[] = "/usr/share/rspamd/rules/regexp/lotto.lua"; $f[] = "/usr/share/rspamd/rules/html.lua"; $f[] = "/usr/share/rspamd/www/favicon.ico"; $f[] = "/usr/share/rspamd/www/index.html"; $f[] = "/usr/share/rspamd/www/react-index.html"; $f[] = "/usr/share/rspamd/www/img"; $f[] = "/usr/share/rspamd/www/img/spinner.gif"; $f[] = "/usr/share/rspamd/www/img/desc.png"; $f[] = "/usr/share/rspamd/www/img/spinner.png"; $f[] = "/usr/share/rspamd/www/img/asc.png"; $f[] = "/usr/share/rspamd/www/css"; $f[] = "/usr/share/rspamd/www/css/glyphicons-halflings-regular.woff"; $f[] = "/usr/share/rspamd/www/css/datatables.min.css"; $f[] = "/usr/share/rspamd/www/css/glyphicons-halflings-regular.woff2"; $f[] = "/usr/share/rspamd/www/css/rspamd.css"; $f[] = "/usr/share/rspamd/www/README.md"; $f[] = "/usr/share/rspamd/www/js"; $f[] = "/usr/share/rspamd/www/js/d3pie.min.js"; $f[] = "/usr/share/rspamd/www/js/datatables.min.js"; $f[] = "/usr/share/rspamd/www/js/rspamd.js"; $f[] = "/usr/share/rspamd/www/plugins.txt"; $f[] = "/usr/share/lintian/overrides/rspamd"; $f[] = "/usr/bin/rspamc"; $f[] = "/usr/bin/rspamadm"; $f[] = "/usr/bin/rspamd"; $f[] = "/usr/lib/rspamd"; $f[] = "/usr/lib/rspamd/librspamd-actrie.so"; $f[] = "/usr/sbin/rmilter"; $f[] = "/var/log/rspamd"; $f[] = "/var/lib"; $f[] = "/var/lib/rspamd"; $f[] = "/etc/rmilter.conf"; $f[] = "/etc/init.d/rmilter.org"; $f[] = "/etc/init.d/rspamd.org"; $f[] = "/etc/init/rmilter.conf"; $f[] = "/etc/logrotate.d/rspamd"; $f[] = "/etc/rmilter.conf.common"; $f[] = "/etc/rspamd/spf_dkim_whitelist.inc"; $f[] = "/etc/rspamd/logging.inc"; $f[] = "/etc/rspamd/worker-normal.inc"; $f[] = "/etc/rspamd/rspamd.systemd.conf"; $f[] = "/etc/rspamd/metrics.conf"; $f[] = "/etc/rspamd/common.conf"; $f[] = "/etc/rspamd/worker-controller.inc"; $f[] = "/etc/rspamd/composites.conf"; $f[] = "/etc/rspamd/surbl-whitelist.inc"; $f[] = "/etc/rspamd/dmarc_whitelist.inc"; $f[] = "/etc/rspamd/mime_types.inc"; $f[] = "/etc/rspamd/rspamd.sysvinit.conf"; $f[] = "/etc/rspamd/modules.d"; $f[] = "/etc/rspamd/modules.d/mime_types.conf"; $f[] = "/etc/rspamd/modules.d/emails.conf"; $f[] = "/etc/rspamd/modules.d/rbl.conf"; $f[] = "/etc/rspamd/modules.d/regexp.conf"; $f[] = "/etc/rspamd/modules.d/phishing.conf"; $f[] = "/etc/rspamd/modules.d/hfilter.conf"; $f[] = "/etc/rspamd/modules.d/once_received.conf"; $f[] = "/etc/rspamd/modules.d/chartable.conf"; $f[] = "/etc/rspamd/modules.d/spf.conf"; $f[] = "/etc/rspamd/modules.d/dkim.conf"; $f[] = "/etc/rspamd/modules.d/dmarc.conf"; $f[] = "/etc/rspamd/modules.d/ip_score.conf"; $f[] = "/etc/rspamd/modules.d/multimap.conf"; $f[] = "/etc/rspamd/modules.d/surbl.conf"; $f[] = "/etc/rspamd/modules.d/maillist.conf"; $f[] = "/etc/rspamd/modules.d/whitelist.conf"; $f[] = "/etc/rspamd/modules.d/fuzzy_check.conf"; $f[] = "/etc/rspamd/modules.d/ratelimit.conf"; $f[] = "/etc/rspamd/modules.d/forged_recipients.conf"; $f[] = "/etc/rspamd/statistic.conf"; $f[] = "/etc/rspamd/2tld.inc"; $f[] = "/etc/rspamd/modules.conf"; $f[] = "/etc/rspamd/options.inc"; $f[] = "/etc/rspamd/rspamd.conf"; $f[] = "/etc/mail/mimedefang-ip-key"; $f[] = "/usr/local/bin/mimedefang-multiplexor"; $f[] = "/usr/local/bin/md-mx-ctrl"; $f[] = "/usr/local/bin/mimedefang"; $f[] = "/usr/local/bin/watch-mimedefang"; $f[] = "/usr/local/bin/watch-multiple-mimedefangs.tcl"; $f[] = "/usr/local/bin/mimedefang.pl"; $f[] = "/usr/local/bin/mimedefang-util"; $f[] = "/usr/etc/valvula/mods-available/mod-bwl.xml"; $f[] = "/usr/etc/valvula/mods-available/mod-mquota.xml"; $f[] = "/usr/etc/valvula/mods-available/mod-mw.xml"; $f[] = "/usr/etc/valvula/mods-available/mod-slm.xml"; $f[] = "/usr/etc/valvula/mods-available/mod-test.xml"; $f[] = "/usr/etc/valvula/mods-available/mod-ticket.xml"; $f[] = "/usr/etc/valvula/valvula.example.conf"; $f[] = "/usr/bin/valvulad"; while (list($num, $ligne) = each($f)) { if (is_dir($ligne)) { echo "{$WORKDIR}{$ligne} Creating directory\n"; continue; @mkdir("{$WORKDIR}{$ligne}", 0755, true); continue; } if (!is_file($ligne)) { echo "{$ligne} no such file\n"; continue; } $dir = dirname($ligne); echo "Installing {$ligne} in {$WORKDIR}{$dir}/\n"; if (!is_dir("{$WORKDIR}{$dir}")) { @mkdir("{$WORKDIR}{$dir}", 0755, true); } shell_exec("/bin/cp -fd {$ligne} {$WORKDIR}{$dir}/"); } echo "Creating package done....\n"; echo "Building package Arch:{$Architecture} Version:{$version}\n"; echo "Going to {$WORKDIR}\n"; @chdir("{$WORKDIR}"); $targtefile = "mailsecurity-{$Architecture}-{$version}.tar.gz"; echo "Compressing {$targtefile}\n"; if (is_file("/root/{$targtefile}")) { @unlink("/root/{$targtefile}"); } shell_exec("tar -czf /root/{$targtefile} *"); echo "Compressing /root/{$targtefile} Done...\n"; }
function buildpackage() { $version = snmpd_version(); if ($version == null) { echo "version is null\n"; return; } $Architecture = Architecture(); $f["/usr/include/net-snmp"] = true; $f["/usr/share/snmp"] = true; $f["/etc/snmp"] = true; $f["/usr/lib/libnetsnmp.so.30.0.2"] = true; $f["/usr/lib/libnetsnmp.so.30"] = true; $f["/usr/lib/libnetsnmp.la"] = true; $f["/usr/lib/libnetsnmp.so"] = true; $f["/usr/lib/libnetsnmp.a"] = true; $f["/usr/lib/libnetsnmpagent.so.30.0.2"] = true; $f["/usr/lib/libnetsnmpagent.so.30"] = true; $f["/usr/lib/libnetsnmpagent.so"] = true; $f["/usr/lib/libnetsnmpagent.la"] = true; $f["/usr/lib/libnetsnmpagent.a"] = true; $f["/usr/lib/libnetsnmphelpers.so.30.0.2"] = true; $f["/usr/lib/libnetsnmphelpers.so.30"] = true; $f["/usr/lib/libnetsnmphelpers.so"] = true; $f["/usr/lib/libnetsnmphelpers.la"] = true; $f["/usr/lib/libnetsnmphelpers.a"] = true; $f["/usr/lib/libnetsnmpmibs.so.30.0.2"] = true; $f["/usr/lib/libnetsnmpmibs.so.30"] = true; $f["/usr/lib/libnetsnmpmibs.so"] = true; $f["/usr/lib/libnetsnmpmibs.la"] = true; $f["/usr/lib/libnetsnmpmibs.a"] = true; $f["/usr/lib/libnetsnmptrapd.so.30.0.2"] = true; $f["/usr/lib/libnetsnmptrapd.so.30"] = true; $f["/usr/lib/libnetsnmptrapd.so"] = true; $f["/usr/lib/libnetsnmptrapd.la"] = true; $f["/usr/lib/libnetsnmptrapd.a"] = true; $f["/usr/lib/libnetsnmp.so.30.0.2"] = true; $f["/usr/lib/libnetsnmp.so.30"] = true; $f["/usr/lib/libnetsnmp.so"] = true; $f["/usr/lib/libnetsnmp.la"] = true; $f["/usr/lib/libnetsnmp.a"] = true; $f["/usr/lib/libnetsnmpagent.so.30.0.2"] = true; $f["/usr/lib/libnetsnmpagent.so.30"] = true; $f["/usr/lib/libnetsnmpagent.so"] = true; $f["/usr/lib/libnetsnmpagent.la"] = true; $f["/usr/lib/libnetsnmpagent.a"] = true; $f["/usr/lib/libnetsnmphelpers.so.30.0.2"] = true; $f["/usr/lib/libnetsnmphelpers.so.30"] = true; $f["/usr/lib/libnetsnmphelpers.so"] = true; $f["/usr/lib/libnetsnmphelpers.la"] = true; $f["/usr/lib/libnetsnmphelpers.a"] = true; $f["/usr/lib/libnetsnmpmibs.so.30.0.2"] = true; $f["/usr/lib/libnetsnmpmibs.so.30"] = true; $f["/usr/lib/libnetsnmpmibs.so"] = true; $f["/usr/lib/libnetsnmpmibs.la"] = true; $f["/usr/lib/libnetsnmpmibs.a"] = true; $f["/usr/lib/libnetsnmptrapd.so.30.0.2"] = true; $f["/usr/lib/libnetsnmptrapd.so.30"] = true; $f["/usr/lib/libnetsnmptrapd.so"] = true; $f["/usr/lib/libnetsnmptrapd.la"] = true; $f["/usr/lib/libnetsnmptrapd.a"] = true; $f["/usr/bin/snmpdelta"] = true; $f["/usr/bin/snmpdf"] = true; $f["/usr/sbin/snmpd"] = true; $f["/usr/sbin/snmptrapd"] = true; $f["/usr/bin/snmpget"] = true; $f["/usr/bin/snmpgetnext"] = true; $f["/usr/bin/snmpset"] = true; $f["/usr/bin/snmpwalk"] = true; $f["/usr/bin/snmpbulkwalk"] = true; $f["/usr/bin/snmptable"] = true; $f["/usr/bin/snmptrap"] = true; $f["/usr/bin/snmpbulkget"] = true; $f["/usr/bin/snmptranslate"] = true; $f["/usr/bin/snmpstatus"] = true; $f["/usr/bin/snmpdelta"] = true; $f["/usr/bin/snmptest"] = true; $f["/usr/bin/snmpdf"] = true; $f["/usr/bin/agentxtrap"] = true; $f["/usr/bin/snmpvacm"] = true; $f["/usr/bin/snmpusm"] = true; $f["/usr/bin/encode_keychange"] = true; $f["/usr/bin/snmpnetstat"] = true; $f["/usr/bin/snmpinform"] = true; $f["/usr/bin/snmpcheck"] = true; $f["/usr/bin/tkmib"] = true; $f["/usr/bin/mib2c"] = true; $f["/usr/bin/fixproc"] = true; $f["/usr/bin/ipf-mod.pl"] = true; $f["/usr/bin/snmpconf"] = true; $f["/usr/bin/traptoemail"] = true; $f["/usr/bin/snmp-bridge-mib"] = true; $f["/usr/bin/net-snmp-cert"] = true; $f["/usr/bin/mib2c-update"] = true; $f["/usr/local/lib/perl/5.10.1/auto/SNMP/SNMP.bs"] = true; $f["/usr/local/lib/perl/5.10.1/auto/SNMP/SNMP.so"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/OID/OID.bs"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/OID/OID.so"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/agent/agent.so"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/agent/agent.bs"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/agent/default_store/default_store.so"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/agent/default_store/default_store.bs"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/default_store/default_store.so"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/default_store/default_store.bs"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/ASN/ASN.so"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/ASN/ASN.bs"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/TrapReceiver/TrapReceiver.bs"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/TrapReceiver/TrapReceiver.so"] = true; $f["/usr/local/lib/perl/5.10.1/SNMP.pm"] = true; $f["/usr/local/lib/perl/5.10.1/NetSNMP/OID.pm"] = true; $f["/usr/local/lib/perl/5.10.1/NetSNMP/TrapReceiver.pm"] = true; $f["/usr/local/lib/perl/5.10.1/NetSNMP/ASN.pm"] = true; $f["/usr/local/lib/perl/5.10.1/NetSNMP/default_store.pm"] = true; $f["/usr/local/lib/perl/5.10.1/NetSNMP/agent.pm"] = true; $f["/usr/local/lib/perl/5.10.1/NetSNMP/agent/netsnmp_request_infoPtr.pm"] = true; $f["/usr/local/lib/perl/5.10.1/NetSNMP/agent/Support.pm"] = true; $f["/usr/local/lib/perl/5.10.1/NetSNMP/agent/default_store.pm"] = true; $f["/usr/local/lib/perl/5.10.1/auto/SNMP/autosplit.ix"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/OID/autosplit.ix"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/agent/autosplit.ix"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/agent/default_store/autosplit.ix"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/default_store/autosplit.ix"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/ASN/autosplit.ix"] = true; $f["/usr/local/lib/perl/5.10.1/auto/NetSNMP/TrapReceiver/autosplit.ix"] = true; $f["/usr/local/lib/perl/5.10.1/Bundle/Makefile.subs.pl"] = true; $f["/usr/local/man/man3/NetSNMP::agent.3pm"] = true; $f["/usr/local/man/man3/NetSNMP::OID.3pm"] = true; $f["/usr/local/man/man3/NetSNMP::ASN.3pm"] = true; $f["/usr/local/man/man3/NetSNMP::agent::default_store.3pm"] = true; $f["/usr/local/man/man3/NetSNMP::default_store.3pm"] = true; $f["/usr/local/man/man3/NetSNMP::TrapReceiver.3pm"] = true; $f["/usr/local/man/man3/SNMP.3"] = true; $f["/usr/local/man/man3/NetSNMP::netsnmp_request_infoPtr.3pm"] = true; $root = "/root/SNMPD-{$version}"; while (list($filename, $none) = each($f)) { if (is_dir($filename)) { @mkdir("{$root}/{$filename}", 0755, true); echo "Installing {$filename}/* in {$root}/{$filename}/\n"; shell_exec("/bin/cp -rfd {$filename}/* {$root}/{$filename}/"); continue; } if (!is_file($filename)) { echo "{$filename} no such file\n"; continue; } $dir = dirname($filename); @mkdir("{$root}/{$dir}", 0755, true); echo "Installing {$filename} in {$root}/{$dir}/\n"; shell_exec("/bin/cp -fd {$filename} {$root}/{$dir}/"); } $unix = new unix(); $tar = $unix->find_program("tar"); @chdir($root); echo "Compressing snmpd-{$Architecture}-{$version}.tar.gz\n"; shell_exec("{$tar} -czf snmpd-{$Architecture}-{$version}.tar.gz *"); echo "Compressing {$root}/snmpd-{$Architecture}-{$version}.tar.gz Done...\n"; }
function create_package() { $unix = new unix(); $wget = $unix->find_program("wget"); $tar = $unix->find_program("tar"); $rm = $unix->find_program("rm"); $cp = $unix->find_program("cp"); $Architecture = Architecture(); $version = haproxy_version(); $debian_version = DebianVersion(); mkdir("{$GLOBALS["WORKDIR"]}/usr/local/sbin", 0755, true); shell_exec("{$cp} -rfd /usr/local/sbin/haproxy {$GLOBALS["WORKDIR"]}/usr/local/sbin/haproxy"); shell_exec("{$cp} -rfd /usr/local/sbin/haproxy-systemd-wrapper {$GLOBALS["WORKDIR"]}/usr/local/sbin/haproxy-systemd-wrapper"); if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } echo "Compile Arch {$Architecture} v:{$version} Debian {$debian_version}\n"; chdir("{$GLOBALS["WORKDIR"]}"); $packagename = "haproxy-{$Architecture}-debian{$debian_version}-{$version}.tar.gz"; echo "Compressing....{$GLOBALS["WORKDIR"]}/{$packagename}\n"; shell_exec("{$tar} -czf {$packagename} *"); shell_exec("{$cp} {$GLOBALS["WORKDIR"]}/{$packagename} /root/"); system_admin_events("{$GLOBALS["WORKDIR"]}/{$packagename} ready...", __FUNCTION__, __FILE__, __LINE__); if (is_file("/root/ftp-password")) { echo "{$GLOBALS["WORKDIR"]}/{$packagename} is now ready to be uploaded\n"; shell_exec("curl -T {$GLOBALS["WORKDIR"]}/{$packagename} ftp://www.articatech.net/download/ --user " . @file_get_contents("/root/ftp-password")); system_admin_events("Uploading {$packagename} done.", __FUNCTION__, __FILE__, __LINE__); if (is_file("/root/rebuild-artica")) { shell_exec("{$wget} \"" . @file_get_contents("/root/rebuild-artica") . "\" -O /tmp/rebuild.html"); } } $took = $unix->distanceOfTimeInWords($t, time(), true); system_admin_events("Installing the new HaProxy {$version} success took:{$took}", __FUNCTION__, __FILE__, __LINE__, "software"); }
function create_package() { if (is_dir("/root/postfix-builder")) { echo "Cleaning /root/postfix-builder\n"; shell_exec("/bin/rm -rf /root/postfix-builder"); } $f[] = "/usr/libexec/postfix/anvil"; $f[] = "/usr/libexec/postfix/bounce"; $f[] = "/usr/libexec/postfix/cleanup"; $f[] = "/usr/libexec/postfix/discard"; $f[] = "/usr/libexec/postfix/dnsblog"; $f[] = "/usr/libexec/postfix/error"; $f[] = "/usr/libexec/postfix/flush"; $f[] = "/usr/libexec/postfix/local"; $f[] = "/usr/libexec/postfix/master"; $f[] = "/usr/libexec/postfix/oqmgr"; $f[] = "/usr/libexec/postfix/pickup"; $f[] = "/usr/libexec/postfix/pipe"; $f[] = "/usr/libexec/postfix/post-install"; $f[] = "/usr/libexec/postfix/postfix-files"; $f[] = "/usr/libexec/postfix/postfix-script"; $f[] = "/usr/libexec/postfix/postfix-wrapper"; $f[] = "/usr/libexec/postfix/postmulti-script"; $f[] = "/usr/libexec/postfix/postscreen"; $f[] = "/usr/libexec/postfix/proxymap"; $f[] = "/usr/libexec/postfix/qmgr"; $f[] = "/usr/libexec/postfix/qmqpd"; $f[] = "/usr/libexec/postfix/scache"; $f[] = "/usr/libexec/postfix/showq"; $f[] = "/usr/libexec/postfix/smtp"; $f[] = "/usr/libexec/postfix/smtpd"; $f[] = "/usr/libexec/postfix/spawn"; $f[] = "/usr/libexec/postfix/tlsproxy"; $f[] = "/usr/libexec/postfix/tlsmgr"; $f[] = "/usr/libexec/postfix/trivial-rewrite"; $f[] = "/usr/libexec/postfix/verify"; $f[] = "/usr/libexec/postfix/virtual"; $f[] = "/usr/libexec/postfix/nqmgr"; $f[] = "/usr/libexec/postfix/lmtp"; $f[] = "/usr/sbin/postalias"; $f[] = "/usr/sbin/postcat"; $f[] = "/usr/sbin/postconf"; $f[] = "/usr/sbin/postfix"; $f[] = "/usr/sbin/postkick"; $f[] = "/usr/sbin/postlock"; $f[] = "/usr/sbin/postlog"; $f[] = "/usr/sbin/postmap"; $f[] = "/usr/sbin/postmulti"; $f[] = "/usr/sbin/postsuper"; $f[] = "/usr/sbin/postdrop"; $f[] = "/usr/sbin/postqueue"; $f[] = "/usr/sbin/sendmail"; $f[] = "/usr/bin/newaliases"; $f[] = "/usr/bin/spftest"; $f[] = "/usr/bin/spftest_static"; $f[] = "/usr/bin/spfquery"; $f[] = "/usr/bin/spfd"; $f[] = "/usr/lib/libspf2.so.2.1.0"; $f[] = "/usr/lib/libspf2.so.2"; $f[] = "/usr/lib/libspf2.so"; $f[] = "/usr/lib/libspf2.a"; $f[] = "/usr/lib/libspf2.la"; $f[] = "/usr/bin/mailq"; $f[] = "/etc/postfix/LICENSE"; $f[] = "/etc/postfix/TLS_LICENSE"; $f[] = "/etc/postfix/access"; $f[] = "/etc/postfix/aliases"; $f[] = "/etc/postfix/bounce.cf.default"; $f[] = "/etc/postfix/canonical"; $f[] = "/etc/postfix/generic"; $f[] = "/etc/postfix/header_checks"; $f[] = "/etc/postfix/main.cf.default"; $f[] = "/etc/postfix/makedefs.out"; $f[] = "/etc/postfix/relocated"; $f[] = "/etc/postfix/transport"; $f[] = "/etc/postfix/virtual"; $f[] = "/usr/local/man/man1/mailq.1"; $f[] = "/usr/local/man/man1/newaliases.1"; $f[] = "/usr/local/man/man1/postalias.1"; $f[] = "/usr/local/man/man1/postcat.1"; $f[] = "/usr/local/man/man1/postconf.1"; $f[] = "/usr/local/man/man1/postdrop.1"; $f[] = "/usr/local/man/man1/postfix.1"; $f[] = "/usr/local/man/man1/postkick.1"; $f[] = "/usr/local/man/man1/postlock.1"; $f[] = "/usr/local/man/man1/postlog.1"; $f[] = "/usr/local/man/man1/postmap.1"; $f[] = "/usr/local/man/man1/postmulti.1"; $f[] = "/usr/local/man/man1/postqueue.1"; $f[] = "/usr/local/man/man1/postsuper.1"; $f[] = "/usr/local/man/man1/sendmail.1"; $f[] = "/usr/local/man/man5/access.5"; $f[] = "/usr/local/man/man5/aliases.5"; $f[] = "/usr/local/man/man5/body_checks.5"; $f[] = "/usr/local/man/man5/bounce.5"; $f[] = "/usr/local/man/man5/canonical.5"; $f[] = "/usr/local/man/man5/cidr_table.5"; $f[] = "/usr/local/man/man5/generic.5"; $f[] = "/usr/local/man/man5/header_checks.5"; $f[] = "/usr/local/man/man5/ldap_table.5"; $f[] = "/usr/local/man/man5/master.5"; $f[] = "/usr/local/man/man5/memcache_table.5"; $f[] = "/usr/local/man/man5/mysql_table.5"; $f[] = "/usr/local/man/man5/sqlite_table.5"; $f[] = "/usr/local/man/man5/nisplus_table.5"; $f[] = "/usr/local/man/man5/pcre_table.5"; $f[] = "/usr/local/man/man5/pgsql_table.5"; $f[] = "/usr/local/man/man5/postconf.5"; $f[] = "/usr/local/man/man5/postfix-wrapper.5"; $f[] = "/usr/local/man/man5/regexp_table.5"; $f[] = "/usr/local/man/man5/relocated.5"; $f[] = "/usr/local/man/man5/tcp_table.5"; $f[] = "/usr/local/man/man5/transport.5"; $f[] = "/usr/local/man/man5/virtual.5"; $f[] = "/usr/local/man/man8/bounce.8"; $f[] = "/usr/local/man/man8/cleanup.8"; $f[] = "/usr/local/man/man8/anvil.8"; $f[] = "/usr/local/man/man8/defer.8"; $f[] = "/usr/local/man/man8/discard.8"; $f[] = "/usr/local/man/man8/dnsblog.8"; $f[] = "/usr/local/man/man8/error.8"; $f[] = "/usr/local/man/man8/flush.8"; $f[] = "/usr/local/man/man8/lmtp.8"; $f[] = "/usr/local/man/man8/local.8"; $f[] = "/usr/local/man/man8/master.8"; $f[] = "/usr/local/man/man8/oqmgr.8"; $f[] = "/usr/local/man/man8/pickup.8"; $f[] = "/usr/local/man/man8/pipe.8"; $f[] = "/usr/local/man/man8/postscreen.8"; $f[] = "/usr/local/man/man8/proxymap.8"; $f[] = "/usr/local/man/man8/qmgr.8"; $f[] = "/usr/local/man/man8/qmqpd.8"; $f[] = "/usr/local/man/man8/scache.8"; $f[] = "/usr/local/man/man8/showq.8"; $f[] = "/usr/local/man/man8/smtp.8"; $f[] = "/usr/local/man/man8/smtpd.8"; $f[] = "/usr/local/man/man8/spawn.8"; $f[] = "/usr/local/man/man8/tlsproxy.8"; $f[] = "/usr/local/man/man8/tlsmgr.8"; $f[] = "/usr/local/man/man8/trace.8"; $f[] = "/usr/local/man/man8/trivial-rewrite.8"; $f[] = "/usr/local/man/man8/verify.8"; $f[] = "/usr/local/man/man8/virtual.8"; $f[] = "/usr/lib/libutil.a"; $f[] = "/usr/lib/libglobal.a"; $f[] = "/usr/lib/libdns.a"; $f[] = "/usr/lib/libtls.a"; $f[] = "/usr/lib/libxsasl.a"; $f[] = "/usr/lib/libmilter.a"; $f[] = "/lib/libmilter.a"; $f[] = "/usr/lib/libmaster.a"; $f[] = "/usr/share/doc/mailgraph"; $f[] = "/usr/share/doc/mailgraph/README.Debian"; $f[] = "/usr/share/doc/mailgraph/README"; $f[] = "/usr/share/doc/mailgraph/copyright"; $f[] = "/usr/share/doc/mailgraph/changelog.Debian.gz"; $f[] = "/usr/share/doc/mailgraph/changelog.gz"; $f[] = "/usr/share/doc/mailgraph/README.fetchmail"; $f[] = "/usr/share/doc/queuegraph"; $f[] = "/usr/share/doc/queuegraph/copyright"; $f[] = "/usr/share/doc/queuegraph/changelog.Debian.gz"; $f[] = "/usr/share/doc/sanitizer"; $f[] = "/usr/share/doc/sanitizer/README.Debian"; $f[] = "/usr/share/doc/sanitizer/sanitizer.html"; $f[] = "/usr/share/doc/sanitizer/examples"; $f[] = "/usr/share/doc/sanitizer/examples/sanitizer.cfg1"; $f[] = "/usr/share/doc/sanitizer/examples/sanitizer.maildrop"; $f[] = "/usr/share/doc/sanitizer/examples/sanitizer.cfg2"; $f[] = "/usr/share/doc/sanitizer/examples/procmailrc"; $f[] = "/usr/share/doc/sanitizer/copyright"; $f[] = "/usr/share/doc/sanitizer/CREDITS"; $f[] = "/usr/share/doc/sanitizer/changelog.Debian.gz"; $f[] = "/usr/share/doc/sanitizer/changelog.gz"; $f[] = "/usr/share/doc/sanitizer/README.sanitizer"; $f[] = "/usr/share/man/man1/sanitizer.1.gz"; $f[] = "/usr/share/man/man1/simplify.1.gz"; $f[] = "/usr/share/perl5/Anomy"; $f[] = "/usr/share/perl5/Anomy/Sanitizer"; $f[] = "/usr/share/perl5/Anomy/Sanitizer/FProt.pm"; $f[] = "/usr/share/perl5/Anomy/Sanitizer/FileTypes.pm"; $f[] = "/usr/share/perl5/Anomy/Sanitizer/Scoring.pm"; $f[] = "/usr/share/perl5/Anomy/Sanitizer/MacroScanner.pm"; $f[] = "/usr/share/perl5/Anomy/HTMLCleaner.pm"; $f[] = "/usr/share/perl5/Anomy/Log.pm"; $f[] = "/usr/share/perl5/Anomy/MIMEStream.pm"; $f[] = "/usr/share/perl5/Anomy/Sanitizer.pm"; $f[] = "/usr/share/doc-base/sanitizer"; $f[] = "/usr/share/queuegraph/count.sh"; $f[] = "/usr/share/sanitizer/contrib"; $f[] = "/usr/share/sanitizer/contrib/zip_script"; $f[] = "/usr/share/sanitizer/contrib/zip_policy.pl"; $f[] = "/usr/share/sanitizer/contrib/postfix.txt"; $f[] = "/usr/share/sanitizer/contrib/check_for_virus"; $f[] = "/usr/share/sanitizer/contrib/sendmail-m4.txt"; $f[] = "/usr/share/sanitizer/contrib/sanitizer.procmail"; $f[] = "/usr/share/sanitizer/contrib/anomy.m4"; $f[] = "/usr/share/sanitizer/contrib/tnef2multipart.pl"; $f[] = "/usr/share/sanitizer/testcases"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.logging.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.rev1_58.t"; $f[] = "/usr/share/sanitizer/testcases/mime.types"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.defaults.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.plugin.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.msg-crlf.t"; $f[] = "/usr/share/sanitizer/testcases/README"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.uu-rfc822.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.tnef.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.exchange.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.rev1_64.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.boundary.t"; $f[] = "/usr/share/sanitizer/testcases/tests.conf.SAMPLE"; $f[] = "/usr/share/sanitizer/testcases/testall.sh"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.bad_html.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.rev1_60.t"; $f[] = "/usr/share/sanitizer/testcases/rot13"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.mime_depth.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.filenames.hlp"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.force_hdr.t"; $f[] = "/usr/share/sanitizer/testcases/simplify.multipart.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.fprotd.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.forwarded.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.partial.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.base64.t"; $f[] = "/usr/share/sanitizer/testcases/results.def"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.rev1_60.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.appledouble.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.force_hdr.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.plugin.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.pgptext.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.rev1_75.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.partial.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.msg-crlf.ok.rot13"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.forwarded.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.exchange.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.rev1_58.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.logging.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.uu-rfc822.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.filenames.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.tnef.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.rev1_71.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.rev1_64.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.base64.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.boundary.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.mime_depth.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.rfc822.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.bad_html.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/simplify.multipart.ok"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.fprotd.ok.rot13"; $f[] = "/usr/share/sanitizer/testcases/results.def/sanitizer.defaults.ok"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.filenames.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.appledouble.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.rev1_75.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.rfc822.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.rev1_71.t"; $f[] = "/usr/share/sanitizer/testcases/sanitizer.pgptext.t"; $f[] = "/usr/bin/simplify"; $f[] = "/usr/bin/sanitizer"; $f[] = "/usr/lib/cgi-bin/queuegraph.cgi"; $f[] = "/usr/lib/cgi-bin/mailgraph.cgi"; $f[] = "/usr/sbin/mailgraph"; $f[] = "/var/cache/queuegraph"; $f[] = "/var/lib/queuegraph"; $f[] = "/etc/init.d/mailgraph"; $f[] = "/etc/cron.d/queuegraph"; $f[] = "/usr/local/bin/milter-greylist"; $f[] = "/usr/local/var/milter-greylist/greylist.db"; $f[] = "/usr/local/etc/mail/greylist.conf"; $f[] = "/usr/bin/sa-awl"; $f[] = "/usr/bin/sa-check_spamd"; $f[] = "/usr/bin/sa-compile"; $f[] = "/usr/bin/sa-learn"; $f[] = "/usr/bin/sa-update"; $f[] = "/usr/bin/spamassassin"; $f[] = "/usr/sbin/spamd"; $f[] = "/usr/bin/spamassassin"; $f[] = "/usr/bin/sa-check_spamd"; $f[] = "/usr/bin/sa-learn"; $f[] = "/usr/bin/sa-compile"; $f[] = "/usr/bin/sa-awl"; $f[] = "/usr/bin/sa-update"; $f[] = "/usr/local/sbin/amavisd"; $f[] = "/usr/local/lib/libzmq.a"; $f[] = "/usr/local/lib/libzmq.la"; $f[] = "/usr/local/lib/libzmq.so"; $f[] = "/usr/local/lib/libzmq.so.1"; $f[] = "/usr/local/lib/libzmq.so.1.0.1"; $f[] = "/usr/local/include/zmq.h"; $f[] = "/usr/local/include/zmq.hpp"; $f[] = "/usr/local/include/zmq_utils.h"; $f[] = "/usr/local/include/GeoIP.h "; $f[] = "/usr/local/include/GeoIPCity.h "; $f[] = "/usr/local/include/GeoIPUpdate.h"; $f[] = "/usr/bin/sa-check_spamd"; $f[] = "/usr/local/bin/ripmime"; $f[] = "/usr/local/bin/mimedefang-multiplexor"; $f[] = "/etc/mail/mimedefang-filter"; $f[] = "/etc/mail/mimedefang-ip-key"; $f[] = "/usr/local/bin/md-mx-ctrl"; $f[] = "/usr/local/bin/mimedefang"; $f[] = "/usr/local/bin/watch-mimedefang"; $f[] = "/usr/local/bin/watch-multiple-mimedefangs.tcl"; $f[] = "/usr/local/bin/mimedefang-util"; $f[] = "/usr/local/bin/mimedefang.pl"; $f[] = "/usr/bin/spamassassin"; $f[] = "/usr/bin/spamc"; $f[] = "/usr/bin/spamd"; $f[] = "/usr/sbin/p0f"; mkdir('/root/postfix-builder/var/amavis/dspam', 0755, true); mkdir('/root/postfix-builder/usr/share/spamassassin', 0755, true); mkdir('/root/postfix-builder/etc/spamassassin', 0755, true); mkdir('/root/postfix-builder/var/lib/spamassassin', 0755, true); mkdir('/root/postfix-builder/var/spool/postfix/spamass', 0755, true); mkdir('/root/postfix-builder/usr/local/var/milter-greylist', 0755, true); mkdir("/root/postfix-builder/etc/postfix", 0755, true); mkdir("/root/postfix-builder/var/spool/postfix", 0755, true); mkdir("/root/postfix-builder/usr/src/p0f", 0755, true); while (list($num, $ligne) = each($f)) { $ligne = trim($ligne); if (is_dir($ligne)) { echo "{$ligne} is a directory, skip\n"; continue; } if (!is_file($ligne)) { echo "\"{$ligne}\" no such file\n"; continue; } $dir = dirname($ligne); echo "Installing {$ligne} in /root/postfix-builder{$dir}/\n"; if (!is_dir("/root/postfix-builder{$dir}")) { @mkdir("/root/postfix-builder{$dir}", 0755, true); } shell_exec("/bin/cp -fd {$ligne} /root/postfix-builder{$dir}/"); } shell_exec("/bin/cp -rfd /usr/libexec/postfix/* /root/postfix-builder/usr/libexec/postfix/"); shell_exec("/bin/cp -rfd /etc/postfix/* /root/postfix-builder/etc/postfix/"); shell_exec("/bin/cp -rfd /var/spool/postfix/* /root/postfix-builder/var/spool/postfix/"); shell_exec("/bin/cp -rfd /usr/src/p0f/* /root/postfix-builder/usr/src/p0f/"); $f = array(); $f[] = "/etc/spamassassin"; $f[] = "/usr/local/bin"; $f[] = "/usr/local/sbin"; $f[] = "/usr/local/lib"; $f[] = "/usr/local/share/GeoIP"; $f[] = "/usr/local/share/perl"; $f[] = "/usr/local/lib/perl"; $f[] = "/usr/share/perl/5.10.1/Mail"; $f[] = "/usr/share/perl5/Mail"; $f[] = "/usr/lib/perl/5.10.1/auto/Mail/SpamAssassin"; while (list($num, $directory) = each($f)) { $directory = trim($directory); if (!is_dir($directory)) { echo "\"{$directory}\" no such directory\n"; continue; } echo "installing \"{$directory}\"\n"; $nextdir = "/root/postfix-builder{$directory}"; if (!is_dir($nextdir)) { @mkdir($nextdir, 0755, true); } shell_exec("/bin/cp -rfd {$directory}/* {$nextdir}/"); } $f = array(); $f[] = "/usr/lib/perl5/NetAddr"; $f[] = "/usr/share/spamassassin"; $f[] = "/usr/local/lib/perl"; $f[] = "/var/lib/spamassassin"; $f[] = "/usr/share/perl/5.10.1/Mail"; $f[] = "/usr/share/perl5/Mail"; $f[] = "/usr/lib/perl5/NetAddr"; $f[] = "/usr/lib/perl5/auto/NetAddr"; while (list($num, $directory) = each($f)) { $directory = trim($directory); if (!is_dir($directory)) { echo "\"{$directory}\" no such directory\n"; continue; } $directoryTMP = dirname($directory); $nextdir = "/root/postfix-builder{$directoryTMP}"; if (!is_dir($nextdir)) { @mkdir($nextdir, 0755, true); } echo "/bin/cp -rfvd {$directory} {$nextdir}/\n"; shell_exec("/bin/cp -rfvd {$directory} {$nextdir}/"); } echo "Creating package done....\n"; $POSTFIX_VERSION = POSTFIX_VERSION(); $Architecture = Architecture(); if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } $nextfile = "postfixp-{$POSTFIX_VERSION}-{$Architecture}-tar.gz"; echo "Destination file: {$nextfile}\n"; echo "chdir -> /root/postfix-builder\n"; chdir("/root/postfix-builder"); if (is_file("/root/{$nextfile}")) { echo "Delete /root/{$nextfile}\n"; @unlink("/root/{$nextfile}"); } echo "tar -czf /root/{$nextfile} *\n"; shell_exec("tar -czf /root/{$nextfile} *"); return "/root/{$nextfile}"; }
function create_package() { $unix = new unix(); $wget = $unix->find_program("wget"); $tar = $unix->find_program("tar"); $rm = $unix->find_program("rm"); $cp = $unix->find_program("cp"); $Architecture = Architecture(); $version = haproxy_version(); $debian_version = DebianVersion(); mkdir("{$GLOBALS["WORKDIR"]}/usr/local/sbin", 0755, true); $f[] = "/usr/local/sbin/vsftpd"; $f[] = "/usr/local/man/man8/vsftpd.8"; $f[] = "/usr/man/man8/vsftpd.8"; $f[] = "/usr/share/man/man5/vsftpd.conf.5"; $f[] = "/usr/share/man/man8/vsftpd.8"; while (list($num, $ligne) = each($f)) { if (is_dir($ligne)) { shell_exec("/bin/cp -rfd {$ligne}/* {$GLOBALS["WORKDIR"]}/{$ligne}/"); continue; } if (!is_file($ligne)) { echo "{$ligne} no such file\n"; continue; } $dir = dirname($ligne); echo "Installing {$ligne} in {$GLOBALS["WORKDIR"]}{$dir}/\n"; if (!is_dir("{$GLOBALS["WORKDIR"]}{$dir}")) { @mkdir("{$GLOBALS["WORKDIR"]}{$dir}", 0755, true); } shell_exec("/bin/cp -fd {$ligne} {$GLOBALS["WORKDIR"]}{$dir}/"); } if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } echo "Compile Arch {$Architecture} v:{$GLOBALS["VERSION"]} Debian {$debian_version}\n"; chdir("{$GLOBALS["WORKDIR"]}"); $packagename = "vsftpd-{$Architecture}-debian{$debian_version}-{$GLOBALS["VERSION"]}.tar.gz"; echo "Compressing....{$GLOBALS["WORKDIR"]}/{$packagename}\n"; shell_exec("{$tar} -czf {$packagename} *"); shell_exec("{$cp} {$GLOBALS["WORKDIR"]}/{$packagename} /root/"); system_admin_events("{$GLOBALS["WORKDIR"]}/{$packagename} ready...", __FUNCTION__, __FILE__, __LINE__); }
function create_package() { $Architecture = Architecture(); if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } $WORKDIR = "/root/gluster-builder"; $version = GLUSTER_VERSION(); @mkdir("{$WORKDIR}/sbin", 0755, true); @mkdir("{$WORKDIR}/usr/sbin", 0755, true); @mkdir("{$WORKDIR}/usr/lib/glusterfs", 0755, true); @mkdir("{$WORKDIR}/etc/glusterfs", 0755, true); $f[] = "/etc/glusterfs/glusterd.vol"; $f[] = "/sbin/mount.glusterfs"; $f[] = "/usr/sbin/gluster"; $f[] = "/usr/sbin/glusterfs"; $f[] = "/usr/sbin/glusterd"; $f[] = "/usr/sbin/glusterfsd"; $f[] = "/etc/glusterfs/glusterd.vol"; $f[] = "/usr/lib/libglusterfs.la"; $f[] = "/usr/lib/libglusterfs.so"; $f[] = "/usr/lib/libglusterfs.so.0"; $f[] = "/usr/lib/libglusterfs.so.0.0.0"; $f[] = "/usr/lib/libgfxdr.a"; $f[] = "/usr/lib/libgfxdr.la"; $f[] = "/usr/lib/libgfxdr.so"; $f[] = "/usr/lib/libgfxdr.so.0"; $f[] = "/usr/lib/libgfxdr.so.0.0.0"; $f[] = "/usr/lib/libgfrpc.la"; $f[] = "/usr/lib/libgfrpc.a"; $f[] = "/usr/lib/libgfrpc.so"; $f[] = "/usr/lib/libgfrpc.so.0"; $f[] = "/usr/lib/libgfrpc.so.0.0.0"; $f[] = "/usr/lib/libglusterfs.la"; $f[] = "/usr/lib/libglusterfs.so"; $f[] = "/usr/lib/libglusterfs.so.0 "; $f[] = "/usr/lib/libglusterfs.so.0.0.0"; while (list($num, $ligne) = each($f)) { if (!is_file($ligne)) { echo "{$ligne} no such file\n"; continue; } $dir = dirname($ligne); echo "Installing {$ligne} in {$WORKDIR}{$dir}/\n"; if (!is_dir("{$WORKDIR}{$dir}")) { @mkdir("{$WORKDIR}{$dir}", 0755, true); } shell_exec("/bin/cp -fd {$ligne} {$WORKDIR}{$dir}/"); } shell_exec("/bin/cp -rfd /usr/lib/glusterfs/* {$WORKDIR}/usr/lib/glusterfs/"); echo "Creating package done....\n"; echo "Building package Arch:{$Architecture} Version:{$version}\n"; echo "Going to {$WORKDIR}\n"; @chdir("{$WORKDIR}"); echo "Compressing glusterfsc-{$Architecture}-{$version}.tar.gz\n"; if (is_file("/root/glusterfsc-{$Architecture}-{$version}.tar.gz")) { @unlink("/root/glusterfsc-{$Architecture}-{$version}.tar.gz"); } shell_exec("tar -czf /root/glusterfsc-{$Architecture}-{$version}.tar.gz *"); echo "Compressing /root/glusterfsc-{$Architecture}-{$version}.tar.gz Done...\n"; }
function crossroads_package() { $Architecture = Architecture(); if ($Architecture == 64) { $Architecture = "x64"; } if ($Architecture == 32) { $Architecture = "i386"; } $unix = new unix(); $tar = $unix->find_program("tar"); $f[] = "/usr/sbin/xrctl"; $f[] = "/usr/share/man/man1/xr.1"; $f[] = "/usr/share/man/man1/xrctl.1"; $f[] = "/usr/share/man/man5/xrctl.xml.5"; $f[] = "/usr/sbin/xr"; @mkdir("/root/crossroads", 755, true); while (list($num, $file) = each($f)) { $dir = dirname($file); @mkdir("/root/crossroads{$dir}", 755, true); @copy($file, "/root/crossroads{$file}"); } chdir("/root/crossroads"); shell_exec("{$tar} -czf crossroads-{$Architecture}.tar.gz *"); }
function compile_ufdbcat() { $unix = new unix(); $uri = "http://www.articatech.net/download/ufdbGuard-1.31.tar.gz"; $curl = new ccurl("http://www.articatech.net/download/ufdbGuard-1.31.tar.gz"); echo "Downloading {$uri}\n"; $tempdir = $unix->TEMP_DIR() . "/ufdb"; $tempfile = "{$tempdir}/ufdbGuard-1.31.tar.gz"; $tar = $unix->find_program("tar"); $rm = $unix->find_program("rm"); $cp = $unix->find_program("cp"); if (is_dir($tempdir)) { shell_exec("{$rm} -rf {$tempdir}"); } @mkdir($tempdir, 0755, true); if (is_file($tempfile)) { @unlink($tempfile); } if (!$curl->GetFile($tempfile)) { echo "Fatal, unable to download {$uri}\n"; meta_admin_mysql(0, "Fatal, unable to download {$uri}", @implode("\n", $curl->errors), __FILE__, __LINE__); return; } if (is_dir("{$tempdir}/ufdbcompile")) { shell_exec("{$rm} -rf {$tempdir}/ufdbcompile"); } echo "Uncompressing {$tempdir}/ufdbGuard-1.31.tar.gz to {$tempdir}/\n"; shell_exec("{$tar} -xf {$tempdir}/ufdbGuard-1.31.tar.gz -C {$tempdir}/"); $dirs = $unix->dirdir($tempdir); while (list($directory, $value) = each($dirs)) { echo "Found directory {$directory}\n"; if (is_file("{$directory}/src/mtserver/ufdbguardd.c")) { $WORKDIR = "{$directory}"; break; } } if (!is_dir($WORKDIR)) { echo "Fatal, unable to download {$uri}\n"; meta_admin_mysql(0, "Fatal, unable to locate working directory", __FILE__, __LINE__); if (is_dir($tempdir)) { shell_exec("{$rm} -rf {$tempdir}"); } return; } echo "Patching mtserver/ufdbguardd.c\n"; $C = explode("\n", @file_get_contents("{$directory}/src/mtserver/ufdbguardd.c")); while (list($index, $line) = each($C)) { if (strpos($line, "/tmp/ufdbguardd-") > 0) { echo "Patching mtserver/ufdbguardd.c line {$index}\n"; $C[$index] = str_replace("/tmp/ufdbguardd-", "/var/run/ufdbcat-", $line); } } @file_put_contents("{$directory}/src/mtserver/ufdbguardd.c", @implode("\n", $C)); chdir($WORKDIR); if (is_dir("/opt/ufdbcat")) { shell_exec("{$rm} -rf /opt/ufdbcat"); } echo "Configure\n"; $f[] = "./configure"; $f[] = "--prefix=/opt/ufdbcat"; $f[] = "--includedir=\"\\\${prefix}/include\""; $f[] = "--mandir=\"\\\${prefix}/share/man\""; $f[] = "--infodir=\"\\\${prefix}/share/info\""; $f[] = "--sysconfdir=/etc/ufdbcat"; $f[] = "--localstatedir=/opt/ufdbcat"; $f[] = "--with-ufdb-logdir=/var/log/ufdbcat"; $f[] = "--with-ufdb-dbhome=/home/ufdbcat"; $f[] = "--with-ufdb-user=root"; $f[] = "--with-ufdb-config=/etc/ufdbcat"; $f[] = "--with-ufdb-logdir=/var/log/ufdbcat"; $f[] = "--with-ufdb-config=/etc/ufdbcat"; $f[] = "--with-ufdb-piddir=/var/run/ufdbcat"; $cmd = @implode(" ", $f); system($cmd); echo "Make\n"; system("make"); echo "Install\n"; system("make install"); if (!is_file("/opt/ufdbcat/bin/ufdbguardd")) { echo "Fatal, unable to compile ufdbcat\n"; meta_admin_mysql(0, "Fatal, unable to compile ufdbcat", __FILE__, __LINE__); if (is_dir($tempdir)) { shell_exec("{$rm} -rf {$tempdir}"); } return; } @copy("/opt/ufdbcat/bin/ufdbguardd", "/opt/ufdbcat/bin/ufdbcatdd"); @unlink("/opt/ufdbcat/bin/ufdbguardd"); @chmod("/opt/ufdbcat/bin/ufdbcatdd", 0755); $ufdbcatVersion = ufdbcatVersion(); $Architecture = Architecture(); $DebianVersion = DebianVersion(); $base = "/root/ufdbcat-compile"; if (is_dir($base)) { shell_exec("{$rm} -rf {$base}"); } @mkdir("{$base}/opt/ufdbcat", 0755, true); shell_exec("{$cp} -rfp /opt/ufdbcat/* {$base}/opt/ufdbcat/"); $filename = "ufdbcat-debian{$DebianVersion}-{$Architecture}-{$ufdbcatVersion}.tar.gz"; chdir($base); @unlink("/root/{$filename}"); shell_exec("/bin/tar -czf /root/{$filename} *"); echo "/root/{$filename} done\n\n"; }
function package_nginx() { /* * * apt-get install libxslt1-dev * http://openresty.org/#Download cd /root wget http://openresty.org/download/ngx_openresty-1.7.2.1.tar.gz tar -xf ngx_openresty-1.7.2.1.tar.gz cd ngx_openresty-1.7.2.1.tar.gz git config --global http.proxy http://192.168.1.245:3140 cd ngx_openresty-1.2.8.6/bundle git clone git://github.com/yaoweibin/ngx_http_substitutions_filter_module.git mv ngx_http_substitutions_filter_module ngx_http_substitutions_filter_module-1.0 git clone https://github.com/kvspb/nginx-auth-ldap.git mv nginx-auth-ldap ngx_http_auth_ldap_module-1.0 cd ngx_openresty-1.2.8.6/bundle git clone https://github.com/yaoweibin/nginx_tcp_proxy_module.git cd ... patch -p1 < bundle/nginx_tcp_proxy_module/tcp.patch wget http://mdounin.ru/hg/ngx_http_auth_request_module/archive/a29d74804ff1.tar.gz tar -xf a29d74804ff1.tar.gz mv ngx_http_auth_request_module-a29d74804ff1 ngx_http_auth_request_module-1.0 git clone https://github.com/pagespeed/ngx_pagespeed.git mv nginx-auth-ldap ngx_http_auth_ldap_module-1.0 // MArche pas wget https://github.com/downloads/SpiderLabs/ModSecurity/modsecurity-apache_2.7.1.tar.gz tar -xf modsecurity-apache_2.7.1.tar.gz cd modsecurity-apache_2.7.1 ./configure --enable-standalone-module --prefix=/usr make make install cp -rfv /modsecurity-apache_2.7.1/nginx/modsecurity /root/ngx_openresty-1.4.3.9/bundle/ mv modsecurity ngx_http_modsecurity-1.0 // ***** dans configure [http_substitutions_filter_module=>'ngx_http_substitutions_filter_module'], [http_auth_ldap_module=>'ngx_http_auth_ldap_module'], // marche pas pour l'instant [http_modsecurity=>'ngx_http_modsecurity'], // ne semble nécéssaire à partir de la v 1.3.9 [http_auth_request_module=>'ngx_http_auth_request_module'], ***** * Inutile de rajouter l'option du module dans la ligne de commande. */ $base = "/root/nginx-compiled"; shell_exec("/bin/rm -rf {$base}"); shell_exec("/bin/rm -rf /etc/nginx/sites-enabled/*"); $f[] = "/usr/share/nginx"; $f[] = "/usr/sbin/nginx"; $f[] = "/etc/nginx"; $f[] = "/var/lib/nginx"; $f[] = "/usr/lib/libxslt.a"; $f[] = "/usr/lib/libxslt.la"; $f[] = "/usr/lib/libxslt.so"; $f[] = "/usr/lib/libxslt.so.1"; $f[] = "/usr/lib/libxslt.so.1.1.26"; $f[] = "/usr/lib32/libxslt.so.1"; $f[] = "/usr/lib32/libxslt.so.1.1.26"; $f[] = "/usr/lib/mod_security2.so"; $f[] = "/usr/lib/mod_security2.la"; $f[] = "/usr/lib/mod_security2.a"; $f[] = "/usr/lib/standalone.so"; $f[] = "/usr/lib/standalone.la"; $f[] = "/usr/lib/standalone.a"; $Debian = DebianVersion(); $Architecture = Architecture(); $version = package_nginx_version(); while (list($num, $filename) = each($f)) { if (is_dir($filename)) { @mkdir("{$base}/{$filename}", 0755, true); echo "/bin/cp -rf {$filename}/* {$base}{$filename}/\n"; shell_exec("/bin/cp -rf {$filename}/* {$base}{$filename}/"); continue; } if (is_file($filename)) { $dirname = dirname($filename); if (!is_dir("{$base}/{$dirname}")) { @mkdir("{$base}/{$dirname}", 0755, true); } echo "/bin/cp -f {$filename} {$base}{$dirname}/\n"; shell_exec("/bin/cp -f {$filename} {$base}/{$dirname}/"); } } chdir($base); if (is_file("{$base}/nginx-{$Architecture}-{$version}.tar.gz")) { @unlink("{$base}/nginx-{$Architecture}-{$version}.tar.gz"); } $filename = "nginx-debian{$Debian}-{$Architecture}-{$version}.tar.gz"; shell_exec("/bin/rm -rf {$base}/etc/nginx/sites-enabled/*"); shell_exec("tar -czf {$filename} *"); shell_exec("/bin/cp {$filename} /root/"); echo "/root/{$filename} done\n"; }
function package_c_icap() { $f = c_icap_array(); $base = "/root/c-icap-export"; shell_exec("/bin/rm -rf {$base}"); @mkdir($base); while (list($num, $filename) = each($f)) { $dirname = dirname($filename); if (!is_dir("{$base}/{$dirname}")) { @mkdir("{$base}/{$dirname}", 0755, true); } if (is_file($filename)) { echo "Copy {$filename} into {$base}{$dirname}\n"; shell_exec("/bin/cp -f {$filename} {$base}{$dirname}/"); } } $C_ICAP_VERSION = C_ICAP_VERSION(); $Architecture = Architecture(); echo "C-icap version {$C_ICAP_VERSION} ({$Architecture})\n"; mkdir("/root/c-icap/usr/share/c_icap", 0755, true); mkdir("/root/c-icap/usr/include/c_icap", 0755, true); shell_exec("/bin/cp -rf /usr/share/c_icap/* /root/c-icap/usr/share/c_icap/"); shell_exec("/bin/cp -rf /usr/include/c_icap/* /root/c-icap/usr/include/c_icap/"); //error while loading shared libraries: libbz2.so.1.0 shell_exec("/bin/cp /lib/libbz2.so.1.0.4 /usr/lib/c_icap/"); chdir($base); @unlink("/root/c-icap-{$C_ICAP_VERSION}-{$Architecture}.tar.gz"); shell_exec("/bin/tar -czf /root/c-icap-{$C_ICAP_VERSION}-{$Architecture}.tar.gz *"); echo "/root/c-icap-{$C_ICAP_VERSION}-{$Architecture}.tar.gz\n"; }
function make_package() { /* HOWTO * NDPI -------------------------------------------------------- * apt-get install dh-autoreconf libpcap-dev libdaq-dev libyaml-dev libpng3 libnss3-dev libnet1-dev libjansson-dev * git clone https://github.com/betolj/ndpi-netfilter * cd ndpi-netfilter/ * tar -xf nDPI.tar.gz * NDPI_PATH=/root/ndpi-netfilter/nDPI make * make modules_install * cp ipt/libxt_ndpi.so /lib/xtables/ * -------------------------------------------------------- * SURICATA * git clone https://github.com/ironbee/libhtp * cd libhtp * ./configure --prefix=/usr * git clone git://phalanx.openinfosecfoundation.org/oisf.git * cd oisf/ * ./autogen.sh * tar -xf suricata-2.0.9.tar.gz CFLAGS="-O0 -ggdb" ./configure --enable-pfring --enable-geoip --with-libpfring-includes=/usr/local/pfring/include/ --with-libpfring-libraries=/usr/local/pfring/lib/ --with-libpcap-includes=/usr/local/pfring/include/ --with-libpcap-libraries=/usr/local/pfring/lib/ --with-libnss-libraries=/usr/lib --with-libnss-includes=/usr/include/nss/ --with-libjansson --with-libnspr-libraries=/usr/lib --with-libnspr-includes=/usr/include/nspr --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-profiling --disable-gccmarch-native * make && make install && make install-full * -------------------------------------------------------- * barnyard2 * wget "http://prdownloads.sourceforge.net/libdnet/libdnet-1.11.tar.gz?download" -O libdnet-1.11.tar.gz * tar -xf libdnet-1.11.tar.gz * cd libdnet-1.11/ * ./configure --prefix=/usr * make && make install * -------------------------------------------------------- * git clone https://github.com/firnsy/barnyard2.git * ./autogen.sh * ./configure --with-mysql-libraries=/usr/lib/x86_64-linux-gnu/ * -------------------------------------------------------- wget "http://sourceforge.net/projects/bandwidthd/files/bandwidthd/bandwidthd%202.0.1/bandwidthd-2.0.1.tgz/download" -O bandwidthd-2.0.1.tgz tar -xf bandwidthd-2.0.1.tgz wget http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-0.7.7.tar.gz tar -xf libcap-ng-0.7.7.tar.gz cd libcap-ng-0.7.7/ ./autogen.sh ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=\${prefix}/include --sysconfdir=/etc --localstatedir=/var --disable-silent-rules --disable-maintainer-mode --without-python3 make && make install wget https://ftp.mozilla.org/pub/nspr/releases/v4.9.6/src/nspr-4.9.6.tar.gz tar -xf nspr-4.9.6.tar.gz cd nspr-4.9.6/ ./configure --enable-64bit --prefix=/usr make && make install * */ //ldconfig //modprobe pf_ring transparent_mode=0 min_num_slots=65534 $f["/usr/lib/libhtp-0.5.18.so.1"] = true; $f["/usr/lib/libhtp-0.5.18.so.1.0.0"] = true; $f["/usr/lib/libhtp-0.2.so.1"] = true; $f["/usr/lib/libhtp-0.2.so.1.0.2"] = true; $f["/usr/lib/libhtp-0.5.18.so.1"] = true; $f["/usr/lib/libhtp-0.5.18.so.1.0.0"] = true; $f["/usr/lib/libhtp.a"] = true; $f["/usr/lib/libhtp.la"] = true; $f["/usr/lib/libhtp.so"] = true; $f["/usr/bin/suricatasc"] = true; $f["/usr/bin/suricata"] = true; $f["/usr/lib/libdnet.1"] = true; $f["/usr/lib/libdnet.1.0.1"] = true; $f["/usr/lib/libdnet.a"] = true; $f["/usr/lib/libdnet.la"] = true; $f["/usr/local/bin/barnyard2"] = true; $f["/usr/local/etc/barnyard2.conf"] = true; $f["/usr/sbin/pulledpork.pl"] = true; $f["/usr/sbin/snortsam"] = true; $f["/usr/local/lib/libpfring.a"] = true; $f["/usr/local/lib/libpfring.so"] = true; $f["/usr/bin/captest"] = true; $f["/usr/bin/filecap"] = true; $f["/usr/bin/netcap"] = true; $f["/usr/bin/pscap"] = true; $f["/usr/lib/libcap-ng.a"] = true; $f["/usr/lib/libcap-ng.la"] = true; $f["/usr/lib/libcap-ng.so"] = true; $f["/usr/lib/libcap-ng.so.0"] = true; $f["/usr/lib/libcap-ng.so.0.0.0"] = true; $f["/usr/lib/libplc4.a"] = true; $f["/usr/lib/libplc4.so"] = true; $f["/lib/xtables/libxt_ndpi.so"] = true; $f["/lib/modules/3.2.0-4-amd64/extra/xt_ndpi.ko"] = true; $f["/lib/modules/3.2.0-4-amd64/kernel/net/pf_ring/pf_ring.ko"] = true; $version = suricata_version(); $BASE = "/root/suricata-{$version}-compiler"; if (is_dir($BASE)) { system("/bin/rm -rf {$BASE}"); } mkdir("{$BASE}/etc/suricata", 0755, true); mkdir("{$BASE}/usr/lib", 0755, true); mkdir("{$BASE}/usr/sbin", 0755, true); mkdir("{$BASE}/usr/bin", 0755, true); mkdir("{$BASE}/usr/local/bin", 0755, true); mkdir("{$BASE}/usr/local/lib", 0755, true); mkdir("{$BASE}/usr/local/etc", 0755, true); mkdir("{$BASE}/usr/bandwidthd", 0755, true); mkdir("{$BASE}/lib/xtables", 0755, true); mkdir("{$BASE}/etc/pulledpork", 0755, true); mkdir("{$BASE}/lib/modules/3.2.0-4-amd64/extra", 0755, true); mkdir("{$BASE}/lib/modules/3.2.0-4-amd64/kernel/net/pf_ring", 0755, true); while (list($num, $val) = each($f)) { echo "Copy {$num} {$BASE}" . dirname($num) . "/\n"; shell_exec("/bin/cp -fd {$num} {$BASE}" . dirname($num) . "/"); } echo "Copy Directory /etc/suricata\n"; shell_exec("/bin/cp -rfd /etc/suricata/* {$BASE}/etc/suricata/"); echo "Copy Directory /etc/pulledpork\n"; shell_exec("/bin/cp -rfd /etc/pulledpork/* {$BASE}/etc/pulledpork/"); echo "Copy Directory /usr/bandwidthd\n"; shell_exec("/bin/cp -rfd /usr/bandwidthd/* {$BASE}/usr/bandwidthd/"); system("cd {$BASE}"); @chdir($BASE); $Architecture = Architecture(); $DebianVersion = DebianVersion(); $finalFileName = "/root/suricata-debian{$DebianVersion}-{$Architecture}-{$version}.tar.gz"; if (is_file($finalFileName)) { @unlink($finalFileName); } echo "Compressing {$finalFileName}\n"; system("tar -czf {$finalFileName} *"); }