def install(): # Install unicode.pf2 using downloaded font source. shelltools.system("./grub-mkfont -o unicode.pf2 unifont.bdf") # Create directory for grub.cfg file inarytools.dodir("/boot/grub2") inarytools.insinto("/boot/grub2", "unicode.pf2") # Insall our theme inarytools.insinto("/usr/share/grub/themes/", "themes/grub2-theme-breeze-5.13.1") #remove -r 0x0-0x7F entries to fix ugly fonts or find a suitable range parameter -r *** shelltools.system( "./grub-mkfont -o DejaVuSans-10.pf2 -r 0x0-0x7F -s 10 /usr/share/fonts/dejavu/DejaVuSans.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-12.pf2 -r 0x0-0x7F -s 12 /usr/share/fonts/dejavu/DejaVuSans.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSans.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-16.pf2 -r 0x0-0x7F -s 16 /usr/share/fonts/dejavu/DejaVuSans.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-Bold-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSans-Bold.ttf" ) shelltools.system( "./grub-mkfont -o DejaVuSans-Mono-14.pf2 -r 0x0-0x7F -s 14 /usr/share/fonts/dejavu/DejaVuSansMono.ttf" ) shelltools.copy( "ascii.pf2", "%s/usr/share/grub/themes/grub2-theme-breeze-5.13.1" % get.installDIR()) # Do not install auto generated dejavu* fonts fonts = [ "DejaVuSans-10.pf2", "DejaVuSans-12.pf2", "DejaVuSans-14.pf2", "DejaVuSans-16.pf2", "DejaVuSans-Mono-14.pf2", "DejaVuSans-Bold-14.pf2" ] for font in fonts: shelltools.copy( font, "%s/usr/share/grub/themes/grub2-theme-breeze-5.13.1" % get.installDIR()) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) inarytools.dodoc("ABOUT-NLS", "AUTHORS", "BUGS", "ChangeLog", "COPYING", "TODO", "README") shelltools.cd("../grub-%s-efi" % get.srcVERSION()) autotools.rawInstall("DESTDIR=%s/efi" % get.installDIR()) shelltools.copytree("/%s/efi/usr/lib/grub/x86_64-efi" % get.installDIR(), "%s/usr/lib/grub/x86_64-efi" % get.installDIR()) inarytools.removeDir("/efi")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.chmod("%s/lib/libacl.so.*.*.*" % get.installDIR(), 0o755) shelltools.copytree("%s/lib/pkgconfig" % get.installDIR(), "%s/usr/lib/pkgconfig" % get.installDIR()) inarytools.removeDir("/lib/pkgconfig") inarytools.dodoc("README")
def install(): shelltools.system("./b2 install threading=multi link=shared") if get.buildTYPE() == "rebuild_python": return inarytools.dobin("b2") inarytools.dosym("b2", "/usr/bin/bjam") shelltools.copytree("tools/boostbook/xsl", "%s/usr/share/boostbook/xsl" % get.installDIR()) shelltools.copytree("tools/boostbook/dtd", "%s/usr/share/boostbook" % get.installDIR())
def setup(): shelltools.cd("..") shelltools.makedirs("build_python") shelltools.copytree("./%s" % WorkDir, "build_python") shelltools.cd(WorkDir) shelltools.cd("..") shelltools.makedirs("build_python3") shelltools.copytree("./%s" % WorkDir, "build_python3") shelltools.cd(WorkDir)
def install(): if get.buildTYPE() == "emul32": shelltools.system("make install DESTDIR=%s/emul32" % get.installDIR()) shelltools.copytree("%s/emul32/usr/lib32" % get.installDIR(), "%s/usr/lib32" % get.installDIR()) inarytools.removeDir("/emul32") return shelltools.system("make install DESTDIR=%s/" % get.installDIR()) inarytools.dodoc("CHANGES", "docs/*.md")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) if get.buildTYPE() == "emul32": shelltools.copytree("%s/lib32/pkgconfig" % get.installDIR(), "%s/usr/lib32/pkgconfig" % get.installDIR()) inarytools.removeDir("/tmp") inarytools.removeDir("/lib32/pkgconfig") return shelltools.copytree("%s/lib/pkgconfig" % get.installDIR(), "%s/usr/lib/pkgconfig" % get.installDIR()) inarytools.removeDir("/lib/pkgconfig")
def install(): shelltools.system( "sed -i '/INSTALL_LIBS/s/libcrypto.a libssl.a//' Makefile") if get.buildTYPE() == "emul32": autotools.make(" install_sw DESTDIR=%s MANDIR=/usr/share/man" % get.installDIR()) else: autotools.rawInstall("DESTDIR=%s MANDIR=/usr/share/man" % get.installDIR()) if get.buildTYPE() == "emul32": #from distutils.dir_util import copy_tree shelltools.copytree("%s/emul32/lib32/" % get.installDIR(), "%s/usr/lib32" % get.installDIR()) path = "%s/usr/lib32/pkgconfig" % get.installDIR() inarytools.dodir("/usr/lib32/openssl") inarytools.domove("/usr/lib32/engines-1.1", "/usr/lib32/openssl") for f in shelltools.ls(path): inarytools.dosed("%s/%s" % (path, f), "^(prefix=\/)_emul32", r"\1usr") inarytools.removeDir("/emul32") return # Rename conflicting manpages inarytools.rename("/usr/share/man/man1/passwd.1", "ssl-passwd.1") inarytools.remove("/usr/share/man/man1/openssl-passwd.1") inarytools.dosym("ssl-passwd.1", "/usr/share/man/man1/openssl-passwd.1") inarytools.rename("/usr/share/man/man1/rand.1", "ssl-rand.1") inarytools.remove("/usr/share/man/man1/openssl-rand.1") inarytools.dosym("ssl-passwd.1", "/usr/share/man/man1/openssl-rand.1") # Move engines to /usr/lib/openssl/engines inarytools.dodir("/usr/lib/openssl") # Certificate stuff inarytools.dobin("tools/c_rehash") # Create needed dirs for cadir in ["misc", "private"]: inarytools.dodir("/etc/ssl/%s" % cadir) inarytools.dohtml("doc/*") inarytools.dodoc("CHANGES*", "FAQ", "LICENSE", "NEWS", "README", "doc/*.txt")
def install(): if get.buildTYPE() == "emul32": shelltools.system("./b2 install threading=multi link=shared") shelltools.system("mv %s/emul32/usr/lib %s/usr/lib32" % (get.installDIR(), get.installDIR())) shelltools.system("rm -rf %s/emul32" % get.installDIR()) return if get.buildTYPE() == "rebuild_python": shelltools.system( "./b2 install --with-python threading=multi link=shared") return shelltools.system("./b2 install threading=multi link=shared") shelltools.system("./b2 install --with-python threading=multi link=shared") inarytools.dobin("b2") inarytools.dosym("b2", "/usr/bin/bjam") shelltools.copytree("tools/boostbook/xsl", "%s/usr/share/boostbook/xsl" % get.installDIR()) shelltools.copytree("tools/boostbook/dtd", "%s/usr/share/boostbook" % get.installDIR())
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()
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("..")
def setup(): autotools.autoreconf("-fi") shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-double" % get.srcVERSION()) shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-long-double" % get.srcVERSION()) shelltools.copytree("../fftw-%s" % get.srcVERSION(), "../fftw-%s-quad" % get.srcVERSION()) autotools.configure("--enable-sse \ --enable-shared \ --disable-static \ --disable-dependency-tracking \ --enable-threads \ --enable-fortran \ --enable-single") shelltools.cd("../fftw-%s-quad" % get.srcVERSION()) autotools.configure("--enable-quad-precision \ --enable-shared \ --disable-static \ --disable-dependency-tracking \ --enable-fortran \ --enable-threads") # The only difference here is that there is no --enable-float shelltools.cd("../fftw-%s-double" % get.srcVERSION()) autotools.configure("--enable-sse2 \ --enable-shared \ --disable-static \ --enable-fortran \ --disable-dependency-tracking \ --enable-threads") # The only difference here is --enable-long-double shelltools.cd("../fftw-%s-long-double" % get.srcVERSION()) autotools.configure("--enable-shared \ --disable-static \ --disable-dependency-tracking \ --enable-threads \ --enable-fortran \ --enable-long-double")
def install(): # Copy to install directory shelltools.copytree("gen/buildroot/", get.installDIR()) inarytools.domove("/usr/bin/isql", "/usr/bin/isql-firebird")