示例#1
0
def install():
    autotools.rawInstall("BASEDIR=%s" % get.installDIR())

    inarytools.dosbin("ether-wake")
    inarytools.dosym("/bin/hostname", "/usr/bin/hostname")

    inarytools.dodoc("README", "README.ipv6", "TODO")
示例#2
0
def install():
    inarytools.dosbin("lsof")

    inarytools.insinto("/usr/share/lsof/scripts", "scripts/*")

    inarytools.doman("Lsof.8")
    inarytools.dodoc("00*")
示例#3
0
def install():
    inarytools.doman("crontab.1", "crontab.5", "cron.8")
    inarytools.dodoc("CHANGES", "CONVERSION", "FEATURES", "MAIL", "README",
                     "THANKS")

    inarytools.dosbin("cron")
    inarytools.dobin("crontab")

    inarytools.dodir("/var/spool/cron/crontabs")
    inarytools.dodir("/etc/cron.d")
示例#4
0
def install():
    inarytools.dosbin("vsftpd")

    inarytools.dodir("/data/user/ftp")
    inarytools.dodir("/data/user/ftp/incoming")
    inarytools.dodir("/usr/share/vsftpd/empty")
    inarytools.dodir("/var/log/vsftpd")

    inarytools.newdoc("vsftpd.conf", "vsftpd.conf.example")
    inarytools.doman("vsftpd.conf.5", "vsftpd.8")
    inarytools.insinto("/usr/share/doc/%s" % get.srcNAME(), "SECURITY")
    inarytools.insinto("/usr/share/doc/%s" % get.srcNAME(), "EXAMPLE")
    inarytools.dodoc("AUDIT", "BENCHMARKS", "BUGS", "Changelog", "FAQ",\
                    "LICENSE", "README*", "REFS", "REWARD", "SIZE", \
                    "SPEED", "TODO", "TUNING")
示例#5
0
def install():
    shelltools.cd("wpa_supplicant")

    for bin in ["wpa_supplicant", "wpa_cli", "wpa_passphrase", "eapol_test"]:
        inarytools.dosbin(bin)

    # Install dbus files
    inarytools.insinto("/usr/share/dbus-1/system-services", "dbus/*.service")
    inarytools.insinto("/etc/dbus-1/system.d", "dbus/dbus-wpa_supplicant.conf",
                       "wpa_supplicant.conf")

    inarytools.doman("doc/docbook/*.5")
    inarytools.doman("doc/docbook/*.8")
    inarytools.newdoc("wpa_supplicant.conf", "wpa_supplicant.conf.example")

    inarytools.dodoc("ChangeLog", "../COPYING", "eap_testing.txt", "../README",
                     "todo.txt")
示例#6
0
def install():
    shelltools.system('/bin/sh postfix-install \
                       -non-interactive \
                       install_root="%(installDIR)s" \
                       config_directory="/usr/share/doc/%(srcNAME)s/defaults" \
                       readme_directory="/usr/share/doc/%(srcNAME)s/readme" \
                       ' % {'installDIR': get.installDIR(), 'srcNAME': get.srcNAME()})

    inarytools.removeDir("/var/")

    # lets make dirs
    inarytools.dodir("/var/spool/postfix/")
    inarytools.dodir("/etc/mail/")
    inarytools.dodir("/etc/postfix/")
    inarytools.dodir("/var/spool/mail/")
    inarytools.dodir("/var/lib/postfix")
    inarytools.dosym("/var/spool/mail", "/var/mail")

    # qshape comes
    inarytools.dosbin("auxiliary/qshape/qshape.pl")
    inarytools.rename("/usr/sbin/qshape.pl", "qshape")

    # legacy FSH
    inarytools.dosym("/usr/sbin/sendmail", "/usr/lib/sendmail")

    # performance tuning tools.
    inarytools.dosbin("bin/smtp-source")
    inarytools.dosbin("bin/smtp-sink")
    inarytools.dosbin("bin/qmqp-source")
    inarytools.dosbin("bin/qmqp-sink")
    inarytools.doman("man/man1/smtp-source.1")
    inarytools.doman("man/man1/smtp-sink.1")
    inarytools.doman("man/man1/qmqp-source.1")
    inarytools.doman("man/man1/qmqp-sink.1")

    # Move some files
    inarytools.domove("/usr/share/doc/%s/defaults/master.cf" % get.srcNAME(), "/etc/postfix/")

    # Docs
    inarytools.insinto("/usr/share/doc/%s/" % get.srcNAME(), "html/")
    inarytools.insinto("/usr/share/doc/%s/" % get.srcNAME(), "examples/")
    for s in ["*README", "COMPATIBILITY", "HISTORY", "LICENSE", "RELEASE_NOTES"]:
        inarytools.insinto("/usr/share/doc/%s/" % get.srcNAME(), s)
示例#7
0
def install():
    autotools.rawInstall("DESTDIR=%s INSTALL_SUEXEC='setuid'" %
                         get.installDIR())

    inarytools.dosym("/usr/lib", "/usr/lib/apache2/lib")
    inarytools.dosym("/var/log/apache2", "/usr/lib/apache2/logs")
    inarytools.dosym("/etc/apache2", "/usr/lib/apache2/conf")

    inarytools.dosbin("support/split-logfile")
    inarytools.dosbin("support/list_hooks.pl")
    inarytools.dosbin("support/logresolve.pl")
    inarytools.dosbin("support/log_server_status")

    inarytools.dosbin("apache2")

    inarytools.domove("/usr/sbin/envvars*", "/usr/lib/apache2/build")
    inarytools.dosed("%s/usr/bin/apxs" % get.installDIR(), \
                    "my \$envvars = get_vars\(\"bindir\"\) \. \"/envvars\";", \
                    "my $envvars = \"$installbuilddir/envvars\";")

    # Clean-up
    inarytools.remove("/etc/apache2/*")
    inarytools.remove("/var/www/localhost/htdocs/*")

    # Add conf.d for 3rd party configuration files
    inarytools.dodir("/etc/apache2/conf.d")

    # ssl enabled apache needs that one
    inarytools.dodir("/var/cache/apache2")

    # Fix wrong libtool path
    inarytools.dosed("%s/usr/lib/apache2/build/config_vars.mk" % get.installDIR(), \
                    "/usr/lib/apache2/build/libtool", \
                    "/usr/bin/libtool")

    # Remove cgi scripts which are vulnerable, see CVE-2007-4049
    inarytools.remove("/var/www/localhost/cgi-bin/*")

    inarytools.dodoc("ABOUT_APACHE", "CHANGES", "LAYOUT", "LICENSE", "README*")

    inarytools.removeDir("/run")
示例#8
0
def install():
    for app in ["tcpd", "tcpdchk", "tcpdmatch", "safe_finger", "try-from"]:
        inarytools.dosbin(app)

    inarytools.insinto("/usr/include", "tcpd.h")

    inarytools.dolib("libwrap.a")

    # FIXME: this seems not necessary anymore
    # inarytools.domove("libwrap.so", "libwrap.so.0.%s" % get.srcVERSION())
    inarytools.dolib("libwrap.so.0.%s" % get.srcVERSION(), "/lib")

    inarytools.dosym("/lib/libwrap.so.0.%s" % get.srcVERSION(),
                     "/lib/libwrap.so.0")
    inarytools.dosym("/lib/libwrap.so.0", "/lib/libwrap.so")

    libtools.gen_usr_ldscript("libwrap.so")

    inarytools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.allow.5")
    inarytools.dosym("hosts_access.5", "/usr/share/man/man5/hosts.deny.5")

    inarytools.doman("*.3", "*.5", "*.8")
    inarytools.dodoc("BLURB", "CHANGES", "DISCLAIMER", "README*")
示例#9
0
def install():
    inarytools.dosbin("tcpdump")
    inarytools.doman("tcpdump.1")
    inarytools.dodoc("CHANGES", "LICENSE", "README", "CREDITS", "PLATFORMS",
                     "VERSION", "*.awk")
示例#10
0
def install():
    inarytools.dosbin("mingetty", "/sbin")
    inarytools.doman("mingetty.8")
    inarytools.domo("tr.po", "tr", "mingetty.mo")

    inarytools.dodoc("COPYING")