Ejemplo n.º 1
0
def install():
    cmaketools.install("DESTDIR=%s benchdir_root=\"/usr/share/mysql\"" %
                       get.installDIR())

    # Config
    inarytools.insinto("/etc/mysql",
                       "%s/usr/share/mysql/my-medium.cnf" % get.installDIR(),
                       "my.cnf")
    inarytools.insinto(
        "/etc/mysql",
        "%s/%s/scripts/mysqlaccess.conf" % (get.workDIR(), get.srcDIR()))
    inarytools.insinto(
        "/usr/bin",
        "%s/%s/scripts/mysql_config" % (get.workDIR(), get.srcDIR()))
    # Data dir
    inarytools.dodir("/var/lib/mysql")

    # Documents
    inarytools.dodoc("%s/%s/support-files/my-*.cnf" %
                     (get.workDIR(), get.srcDIR()))
    inarytools.dodoc("COPYING", "INSTALL-SOURCE", "README", "VERSION")

    # Remove not needed files
    inarytools.removeDir("/usr/data")
    inarytools.removeDir("/usr/mysql-test")
    inarytools.removeDir("/usr/sql-bench")
    inarytools.remove("/usr/share/man/man1/mysql-test-run.pl.1")
Ejemplo n.º 2
0
def build():
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("docker-ce-%s/components/engine" % get.srcVERSION())
    shelltools.system("hack/make.sh dynbinary-daemon")

    # build cli
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("docker-ce-%s/components/cli" % get.srcVERSION())
    shelltools.system("LDFLAGS='' GOPATH=%s/docker-ce-%s/components/cli ./scripts/build/dynbinary" % (get.workDIR(), get.srcVERSION()))
Ejemplo n.º 3
0
def setup():
    shelltools.cd("%s" % get.workDIR())
    shelltools.move("runc-*", "runc")

    shelltools.cd("runc")
    shelltools.move("vendor", "src")

    shelltools.makedirs("src/github.com/opencontainers")
    shelltools.cd("src/github.com/opencontainers")

    shelltools.system("ln -rsf %s/runc ./runc" % get.workDIR())
Ejemplo n.º 4
0
def install():
    inarytools.insinto ("/usr/share/zoneinfo", "iso3166.tab")
    inarytools.insinto ("/usr/share/zoneinfo", "zone.tab")
    inarytools.insinto ("/usr/share/zoneinfo", "zone1970.tab")
   
    for tzdata in timezones:
        cmd = "zic -L /dev/null -d %s -y \"%s/yearistype.sh\" %s" % (TargetDir, get.workDIR(), tzdata)
        shelltools.system (cmd)
        part2 = "zic -L /dev/null -d %s -y \"%s/yearistype.sh\" %s" % (PosixDir, get.workDIR(), tzdata)
        shelltools.system (part2)
        part3 = "zic -L leapseconds -d %s -y \"%s/yearistype.sh\" %s" % (RightDir, get.workDIR(), tzdata)
        shelltools.system (part3)
        #shelltools.system ("zic -d %s -y \"%s/yearistype.sh\" %s -p Europe/Istanbul" % (TargetDir, get.workDIR(), tzdata))

    shelltools.system ("zic -d %s -p Europe/Istanbul" % TargetDir)
Ejemplo n.º 5
0
def install():
    shelltools.cd("{}/yacc-1.9.1".format(get.workDIR()))

    inarytools.dobin("yacc")

    inarytools.doman("yacc.1")
    inarytools.dodoc("ACKNOWLEDGEMENTS", "NEW_FEATURES", "NOTES", "README*")
Ejemplo n.º 6
0
def setup():
    shelltools.system("tar xvf yacc-1.9.1.tar.Z")
    shelltools.cd("{}/yacc-1.9.1".format(get.workDIR()))
    for i in ["mkstemp.patch", "skeleton.c.diff", "yacc-1.9.1-ia64.patch"]:
        shelltools.move("../{}".format(i), ".")
        shelltools.system("patch --remove-empty-files --no-backup-if-mismatch -i \"{}\"".format(i))
    inarytools.dosed("Makefile", " -O ", " $(CFLAGS) ")
Ejemplo n.º 7
0
def install():
    shelltools.export("GOROOT_FINAL", "/usr/lib/go")
    shelltools.cd("%s/go-go1.13.4" % get.workDIR())

    inarytools.dodir("/usr/lib/go")
    shelltools.system("cp -r api bin doc lib pkg src  %s/usr/lib/go" % get.installDIR())
    shelltools.system("chown -R  root:root %s/usr" % get.installDIR())

    inarytools.dosym("/usr/lib/go/bin/go", "/usr/bin/go")
    inarytools.dosym("/usr/lib/go/bin/gofmt", "/usr/bin/gofmt")

    inarytools.dosym("/usr/lib/go/doc", "/usr/share/doc/%s/doc" % get.srcNAME())
    inarytools.dosym("/usr/lib/go/api", "/usr/share/doc/%s/api" % get.srcNAME())

    shelltools.system("cp -r misc  %s/usr/lib/go" % get.installDIR())

    # remove testdata, which hit cave fix-linkage
    inarytools.remove("/usr/lib/go/src/debug/elf/testdata/gcc-386-freebsd-exec")
    inarytools.removeDir("/usr/lib/go/pkg/obj")

    # dirty fix thanks @erturk
    inarytools.removeDir("/usr/lib/go/pkg/linux_amd64")


    inarytools.dodoc("VERSION", "LICENSE", "PATENTS", "README*", "AUTHORS", "CONTRIBUTORS")
Ejemplo n.º 8
0
def install():
    shelltools.system("""mkdir -p {0}/usr/share/backgrounds/linuxmint-tessa
	cp -a {1}/mint-backgrounds-*/backgrounds/linuxmint-* {0}/usr/share/backgrounds/
	mkdir -p {0}/usr/share/gnome-background-properties
	mkdir -p {0}/usr/share/cinnamon-background-properties
	cp -a {1}/mint-backgrounds-*/cinnamon-background-properties/* {0}/usr/share/cinnamon-background-properties/
	cp -a {1}/mint-backgrounds-*/gnome-background-properties/* {0}/usr/share/gnome-background-properties"""
                      .format(get.installDIR(), get.workDIR()))
Ejemplo n.º 9
0
def build():
    shelltools.export("GOPATH", "%s" % get.workDIR())

    shelltools.cd("%s" % get.workDIR())
    shelltools.move("containerd-*", "containerd")

    shelltools.cd("containerd")
    shelltools.move("vendor", "src")

    shelltools.makedirs("src/github.com/containerd")
    shelltools.system("ln -rsf %s/containerd*  src/github.com/containerd" %
                      get.workDIR())

    shelltools.cd("src/github.com/containerd/containerd")

    shelltools.system("LDFLAGS= GOPATH=%s make GIT_COMMIT=209a7fc" %
                      get.curDIR())
Ejemplo n.º 10
0
def setup():

    shelltools.cd("src")

    shelltools.system("./make.bash")

    shelltools.cd("%s/go-go1.13.4" % get.workDIR())
    shelltools.system("$GOROOT/bin/go get -d golang.org/x/tools/cmd/godoc")
    shelltools.system("$GOROOT/bin/go build -o $GOPATH/godoc golang.org/x/tools/cmd/godoc")
Ejemplo n.º 11
0
def setup():
    autotools.autoreconf("-fi")
    autotools.configure("--disable-static \
                         --enable-inotify")

    for root, dirs, files in os.walk(get.workDIR()):
        for name in files:
            if name.endswith(".py"):
                inarytools.dosed("%s/%s" % (root, name),
                                 "#!/usr/bin/env python",
                                 "#!/usr/bin/env python3")
Ejemplo n.º 12
0
def install():
    shelltools.cd("%s/containerd" % get.workDIR())

    inarytools.dobin("bin/*")

    inarytools.dosym("/usr/bin/containerd", "/usr/bin/docker-containerd")
    inarytools.dosym("/usr/bin/containerd-shim",
                     "/usr/bin/docker-containerd-shim")
    inarytools.dosym("/usr/bin/ctr", "/usr/bin/docker-containerd-ctr")

    inarytools.dodoc("LICENSE*", "README*")
Ejemplo n.º 13
0
def setup():
    shelltools.unlinkDir("%s/tcl8.6.9/pkgs/sqlite3.25.3" % get.workDIR())
    shelltools.cd("unix")

    autotools.autoreconf("-fi")
    autotools.configure("--with-encoding=utf-8 \
                         --enable-threads \
                         --enable-man-compression=gzip \
                         --mandir=/usr/share/man \
                         --enable-man-symlinks \
                         --enable-shared \
                         --enable-64bit")
Ejemplo n.º 14
0
def install():
    shelltools.cd("%s/docker-ce-%s" % (get.workDIR(), get.srcVERSION()))

    inarytools.dobin("components/cli/build/docker*")
    inarytools.dobin("components/engine/bundles/dynbinary-daemon/*")

    # insert udev rules
    inarytools.insinto("/lib/udev/rules.d", "components/engine/contrib/udev/*.rules")

    #insert contrib in docs
    inarytools.insinto("/usr/share/doc/docker", "components/cli/contrib")

    inarytools.dobin("components/engine/contrib/check-config.sh")

    inarytools.dodoc("VERSION", "README.md","CONTRIBUTING.md", "CHANGELOG.md")
Ejemplo n.º 15
0
def installLibcHeaders(excludes=None):
    headers_tmp = os.path.join(get.installDIR(), 'tmp-headers')
    headers_dir = os.path.join(get.installDIR(), 'usr/include')

    make_cmd = "O={0} INSTALL_HDR_PATH={0}/install".format(headers_tmp)

    # Cleanup temporary header directory
    shelltools.system("rm -rf {}".format(headers_tmp))

    # Create directories
    shelltools.makedirs(headers_tmp)
    shelltools.makedirs(headers_dir)

    ###################Workaround begins here ...
    # Workaround information -- http://patches.openembedded.org/patch/33433/
    cpy_src = "{}/linux-*/arch/x86/include/generated".format(get.workDIR())
    cpy_tgt = "{}/arch/x86/include".format(headers_tmp)
    shelltools.makedirs(cpy_tgt)

    copy_cmd = "cp -Rv {0} {1} ".format(cpy_src, cpy_tgt)

    shelltools.system(copy_cmd)
    #######################Workaround ends here ...

    # make defconfig and install the headers
    autotools.make("{} defconfig".format(make_cmd))
    autotools.rawInstall(make_cmd, "headers_install")

    oldwd = os.getcwd()

    shelltools.cd(os.path.join(headers_tmp, "install", "include"))
    shelltools.system("find . -name '.' -o -name '.*' -prune -o -print | \
                       cpio -pVd --preserve-modification-time {}".format(
        headers_dir))

    # Remove sound/ directory which is installed by alsa-headers
    shelltools.system("rm -rf {}/sound".format(headers_dir))

    # Remove possible excludes given by actions.py
    if excludes:
        shelltools.system("rm -rf {}".format(" ".join([
            "{0}/{1}".format(headers_dir, exc.strip("/")) for exc in excludes
        ])))

    shelltools.cd(oldwd)

    # Remove tmp directory
    shelltools.system("rm -rf {}".format(headers_tmp))
Ejemplo n.º 16
0
def setup():
    shelltools.cd(get.workDIR())
    for f, l in [("dietlibc-github-c3f1cf67fcc186bb859e64a085bf98aaa6182a82.patch", 1)]:
        shelltools.move(f, WorkDir)
        shelltools.cd(WorkDir)
        shelltools.system("patch --remove-empty-files --no-backup-if-mismatch -p%d -i %s" % (l, f))
        shelltools.cd("..")

    shelltools.cd(WorkDir)
    inarytools.dosed("Makefile", "^prefix\?=.*", "prefix=/usr/lib/dietlibc")
    inarytools.dosed("Makefile", "^(BINDIR=)[^\/]+(.*)", r"\1/usr\2")
    inarytools.dosed("Makefile", "^(MAN1DIR=)[^\/]+(.*)", r"\1/usr/share\2")
    inarytools.dosed("dietfeatures.h", "#define (WANT_LARGEFILE_BACKCOMPAT|WANT_VALGRIND_SUPPORT)", deleteLine=True)
    if not WITHSSP:
        inarytools.dosed("dietfeatures.h", "^(#define WANT_SSP)$", r"// \1")
        inarytools.dosed("dietfeatures.h", ".*(#define WANT_STACKGAP).*", r"\1")
Ejemplo n.º 17
0
def install():
    cmaketools.install("DESTDIR={} benchdir_root=\"/usr/share/mysql\"".format(
        get.installDIR()))

    # Config
    inarytools.insinto(
        "/usr/bin",
        "{}/mariadb-10.5.3/scripts/mysql_config".format(get.workDIR()))
    # Data dir
    inarytools.dodir("/var/lib/mysql")

    # Documents
    inarytools.dodoc("COPYING", "INSTALL-SOURCE", "README.md", "VERSION")

    # Remove not needed files
    inarytools.remove("/usr/share/man/man1/mysql-test-run.pl.1")
Ejemplo n.º 18
0
def setup():
    sql_ver = "3.30.1.2"
    shelltools.unlinkDir("{}/tcl{}/pkgs/sqlite{}".format(
        get.workDIR(), get.srcVERSION(), sql_ver))
    shelltools.cd("unix")

    autotools.autoreconf("-fi")
    if get.buildTYPE() == "emul32":
        option = "--enable-32bit"
    else:
        option = "--enable-64bit"
    autotools.configure("--with-encoding=utf-8 \
                         --enable-threads \
                         --enable-man-compression=gzip \
                         --mandir=/usr/share/man \
                         --enable-man-symlinks \
                         --enable-shared \
                         {}".format(option))
Ejemplo n.º 19
0
def setup():
    inarytools.cflags.add("-fPIC", "-D_GNU_SOURCE")
    shelltools.copytree("%s/dhcp" % get.workDIR(), "pppd/plugins")
    inarytools.dosed("pppd/plugins/dhcp/Makefile.linux", "^(CFLAGS=.+)\s-O2",
                     "\\1 %s" % get.CFLAGS())

    # Enable atm
    inarytools.dosed("pppd/Makefile.linux", "^#(HAVE_LIBATM=yes)", "\\1")
    # Enable pam
    inarytools.dosed("pppd/Makefile.linux", "^#(USE_PAM=y)", "\\1")
    # Enable CBCP
    inarytools.dosed("pppd/Makefile.linux", "^#(CBCP=y)", "\\1")
    # Enable IPv6
    inarytools.dosed("pppd/Makefile.linux", "^#(HAVE_INET6)", "\\1")
    # Enable dhcp
    inarytools.dosed("pppd/plugins/Makefile.linux", "^(SUBDIRS\s:=.+)",
                     "\\1 dhcp")

    autotools.configure()
Ejemplo n.º 20
0
def setup():

    shelltools.copy("../unifont*.bdf", "./unifont.bdf")
    shelltools.export("GRUB_CONTRIB",
                      "%s/grub-2.04/grub-extras" % (get.workDIR()))

    inarytools.cflags.remove("-fstack-protector",
                             "-fasynchronous-unwind-tables", "-fexceptions",
                             "-fPIC")
    inarytools.cflags.sub("\s?(-O[\ds]|-D_FORTIFY_SOURCE=\d)\s?", " ")

    shelltools.system("./linguas.sh")
    shelltools.system("./autogen.sh")
    autotools.configure("--disable-werror \
                         --with-grubdir=grub2 \
                         --program-transform-name='s,grub,grub2,'\
                         --program-prefix= \
                         --enable-grub-mkfont \
	                     --enable-grub-mount \
                         --with-platform=pc \
                         --target='i386' \
                         --htmldir='/usr/share/doc/grub2/html' ")

    shelltools.copytree("../grub-%s" % (get.srcVERSION().replace("_", "~")),
                        "../grub-%s-efi" % get.srcVERSION())
    shelltools.cd("../grub-%s-efi" % get.srcVERSION())
    shelltools.system("./autogen.sh")
    autotools.configure("--disable-werror \
                         --with-grubdir=grub2 \
                         --program-transform-name='s,grub,grub2,'\
                         --program-prefix= \
                         --enable-grub-mkfont \
                         --enable-grub-mount \
                         --with-platform=efi \
                         --target=x86_64  \
                         --htmldir='/usr/share/doc/grub2/html' ")

    shelltools.cd("..")
Ejemplo n.º 21
0
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import shelltools
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import qt
from inary.actionsapi import get

import os

WorkDir = "qtbase-everywhere-src-%s" % get.srcVERSION().replace('_','-').replace('pre1', 'tp')

qtbase = qt.prefix
absoluteWorkDir = "%s/%s" % (get.workDIR(), WorkDir)

#Temporary bindir to avoid qt4 conflicts
bindirQt5="/usr/lib/qt5/bin"

def setup():
    checkdeletepath="%s/qtbase/src/3rdparty"  % absoluteWorkDir
    for dir in ('libjpeg', 'freetype', 'libpng', 'zlib', "xcb", "sqlite"):
        if os.path.exists(checkdeletepath+dir):
            shelltools.unlinkDir(checkdeletepath+dir)

    filteredCFLAGS = get.CFLAGS().replace("-g3", "-g")
    filteredCXXFLAGS = get.CXXFLAGS().replace("-g3", "-g")

    vars = {"SULIN_CC" :       get.CC() + (" -m32" if get.buildTYPE() == "emul32" else ""),
            "SULIN_CXX":       get.CXX() + (" -m32" if get.buildTYPE() == "emul32" else ""),
Ejemplo n.º 22
0
def build():
    shelltools.export('HOME', get.workDIR())
    autotools.make()
Ejemplo n.º 23
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get

shelltools.export("HOME", get.workDIR())

args = 'BRANDING="Sulin" \
            MKBASHCOMP=yes \
            MKSELINUX=no \
            MKTERMCAP=ncurses \
            MKZSHCOMP=yes\
            PKG_PREFIX=""\
            LIBDIR=/usr/lib \
            SHLIBDIR=/usr/lib \
            LIBEXECDIR=/usr/libexec/openrc \
            BINDIR=/usr/bin \
            SBINDIR=/sbin \
            INCLUDEDIR=/usr/include \
            SYSCONFDIR=/etc'


def build():
    autotools.make("%s" % args)
Ejemplo n.º 24
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import get
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools

# to avoid sandbox violations during make test
shelltools.export("ODBCINI", get.workDIR())
shelltools.export("ODBCSYSINI", get.workDIR())

def setup():
    autotools.autoreconf("-vfi")
    autotools.configure("--with-apr=/usr \
                         --includedir=/usr/include/apr-1 \
                         --with-ldap \
                         --without-gdbm \
                         --with-sqlite3 \
                         --with-pgsql \
                         --with-odbc=/usr/bin/odbc_config \
                         --with-mysql \
                         --without-freetds \
                         --with-berkeley-db \
                         --without-sqlite2")
    
    #inarytools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
Ejemplo n.º 25
0
def build():
    shelltools.cd("%s/runc/src/github.com/opencontainers/runc" % get.workDIR())

    build_runc = "GOPATH=%s/runc make" % get.workDIR()

    shelltools.system(build_runc)
Ejemplo n.º 26
0
def install():
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    inarytools.dosed("%s/usr/bin/apu-1-config" % get.installDIR(), get.workDIR(), "")

    inarytools.dodoc("CHANGES", "NOTICE")
Ejemplo n.º 27
0
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import libtools
from inary.actionsapi import shelltools
from inary.actionsapi import get

WorkDir = "cdparanoia-III-10.2"
flags = "%s -I%s/%s/interface -Wno-pointer-sign -Wno-unused -Werror-implicit-function-declaration" % (
    get.CFLAGS(), get.workDIR(), WorkDir)


def setup():
    #shelltools.cd("cdparanoia-III-10.2")
    #shelltools.move("configure.guess", "config.guess")
    #shelltools.move("configure.sub", "config.sub")

    autotools.autoreconf("-vfi")
    libtools.gnuconfig_update()
    libtools.libtoolize("--force --install")
    autotools.configure()


def build():
    autotools.make('OPT="%s" -j1' % flags)
Ejemplo n.º 28
0
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt

from inary.actionsapi import inarytools
from inary.actionsapi import autotools
from inary.actionsapi import shelltools
from inary.actionsapi import get

shelltools.export("AUTO_GOPATH", "1")
shelltools.export("IAMSTATIC", "false")
shelltools.export("DOCKER_GITCOMMIT","633a0ea")
shelltools.export("VERSION", "19.03.5")
shelltools.export("GOROOT","/usr/lib/go")

shelltools.export("GOPATH", "%s" % get.workDIR())
shelltools.export("CGO_CFLAGS", "-I/usr/include")
shelltools.export("CGO_LDFLAGS", "-L/usr/lib")
shelltools.export("DOCKER_BUILDTAGS","apparmor seccomp")

NoStrip=["/"]

def setup():
    shelltools.makedirs("components/cli/src/github.com/docker")
    shelltools.cd("components/cli/src/github.com/docker")
    shelltools.system("ln -s ../../../../cli . ")

def build():
    shelltools.cd("%s" % get.workDIR())
    shelltools.cd("docker-ce-%s/components/engine" % get.srcVERSION())
    shelltools.system("hack/make.sh dynbinary-daemon")
Ejemplo n.º 29
0
def install():
    inarytools.insinto(
        "/usr/share/texmf", "%s/%s-%s/doc/TEX/tex" %
        (get.workDIR(), get.srcNAME(), get.srcVERSION()))
    autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    inarytools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "TODO")
Ejemplo n.º 30
0
def install():
    shelltools.system('cp -prfv {}/mint-artwork-cinnamon-5.7/ "{}/"'.format(get.workDIR(),get.installDIR()))
    shelltools.system('rm -rf {}/debian'.format(get.installDIR()))