def setup(): shelltools.export("CFLAGS","%s -DRUNTIME_CPUDETECT" % get.CFLAGS()) # to keep the source tarball small, write svn version by hand shelltools.unlink("version.sh") shelltools.echo("version.sh", '#!/bin/bash\necho "#define FFMPEG_VERSION \\\"SVN-r%s\\\"" > version.h' % version) shelltools.chmod("version.sh", 0755) # CPU thing is just used for CMOV detection autotools.rawConfigure("--cpu=i686 \ --prefix=/usr \ --mandir=/usr/share/man \ --enable-gpl \ --enable-swscale \ --enable-pthreads \ --enable-postproc \ --enable-x11grab \ --enable-liba52 \ --enable-libx264 \ --enable-libxvid \ --enable-libfaad \ --enable-libfaac \ --enable-libvorbis \ --enable-libmp3lame \ --enable-libamr-nb \ --enable-libamr-wb \ --enable-libdc1394 \ --enable-libtheora \ --enable-libgsm \ --enable-shared \ --disable-stripping \ --disable-static \ --disable-debug")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Prepare chroot jail for d in ("dev", "etc/bind", "etc/pki/dnssec-keys", "lib/bind", "var/tmp", "var/log", "var/run/named", "var/named"): pisitools.dodir("%s/%s" % (CHROOT, d)) # At least drop a file in it shelltools.echo("%s%s/README" % (get.installDIR(), CHROOT), "Chroot jail for named") # Create directories pisitools.dodir("/var/run/named") for d in ("pri", "sec", "slaves", "data", "dynamic"): pisitools.dodir("%s/%s" % (BINDDIR, d)) # Create symlinks for src, dest in [ ("named.ca", "%s/root.cache" % BINDDIR), ("%s/pri" % BINDDIR, "/etc/bind/pri"), ("%s/sec" % BINDDIR, "/etc/bind/sec"), ]: pisitools.dosym(src, dest) # Documentation pisitools.dodoc("CHANGES", "COPYRIGHT", "FAQ", "README") pisitools.dodoc("doc/misc/*", "contrib/scripts/named-bootconf.sh", "contrib/scripts/nanny.pl") pisitools.dohtml("doc/arm/*") pisitools.remove("/usr/share/doc/%s/Makefile*" % get.srcNAME())
def install(): autotools.install() pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING") shelltools.echo("%s/etc/wgetrc" % get.installDIR(), "ca-directory=/etc/ssl/certs")
def setup(): shelltools.echo("config.layout", config_layout()) pisitools.dosed("config.layout", "version", get.srcNAME()) for d in ["apr", "apr-util", "pcre"]: shelltools.unlinkDir("srclib/%s" % d) autotools.rawConfigure('--with-mpm=prefork \ --enable-layout=Pardus \ --with-ssl=/usr \ --enable-ssl=shared \ %s \ --with-z=/usr \ --with-port=80 \ --with-program-name=apache2 \ --with-apr=/usr/bin/apr-1-config \ --with-apr-util=/usr/bin/apu-1-config \ --with-suexec-safepath="/usr/bin:/bin" \ --with-suexec-logfile=/var/log/apache2/suexec_log \ --with-suexec-bin=/usr/sbin/suexec2 \ --with-suexec-userdir="public_html" \ --with-suexec-caller=apache \ --with-suexec-docroot=/var/www \ --with-suexec-uidmin=1000 \ --with-suexec-gidmin=100 \ --with-suexec-umask=077 \ --enable-suexec=shared \ --enable-pie \ --with-pcre=/usr/bin/pcre-config' % modules_config()) pisitools.dosed("include/ap_config_auto.h", "apache2\.conf", "httpd.conf")
def install(): # Setup files in /etc pisitools.dodir("/etc") shelltools.move("etc/", "%s/etc" % get.installDIR()) shelltools.chmod("%s/etc/shadow" % get.installDIR(), 0600) shelltools.echo("%s/etc/pardus-release" % get.installDIR(), "Pardus 2007") # Install some files to /usr/share/baselayout instead of /etc to keep from overwriting the user's settings, for file in ("passwd", "shadow", "group", "fstab", "hosts", "ld.so.conf", "resolv.conf", "inittab.live"): pisitools.domove("/etc/%s" % file, "/usr/share/baselayout") # Install baselayout documentation pisitools.doman("man/*.*") # Install baselayout utilities shelltools.cd("src/") autotools.rawInstall("DESTDIR=\"%s\"" % get.installDIR()) pisitools.dosbin("update-grub", "/sbin") # Create needed directories !!! create_directories()
def setup(): shelltools.echo("src/feature.h", "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"") options = "--with-features=huge \ --enable-multibyte \ --enable-perlinterp \ --enable-pythoninterp \ --enable-rubyinterp \ --enable-gui=no \ --with-tlib=ncurses \ --prefix=/usr \ --localstatedir=/var/lib/vim \ --with-features=big \ --disable-acl \ --with-compiledby=limelinux \ --enable-gpm \ --enable-acl \ --enable-cscope \ --disable-netbeans \ --enable-perlinterp \ --disable-luainterp \ --with-x=no \ --with-modified-by=limelinux" if get.buildTYPE() == "gui": options += " --enable-gui=gtk2 \ --with-vim-name=gvim \ --with-view-name=gview \ --with-x=yes" autotools.configure(options)
def install(): autotools.install() # default root certs location shelltools.echo("%s/etc/wgetrc" % get.installDIR(), "ca_certificate=/etc/ssl/certs/ca-certificates.crt") pisitools.dodoc("AUTHORS", "COPYING", "ChangeLog*", "NEWS", "README", "MAILING-LIST")
def install(): autotools.rawInstall("BUILDROOT=%s" % get.installDIR() ) pisitools.removeDir("/usr/share/cups/banners") pisitools.removeDir("/usr/share/cups/data/testprint") shelltools.echo("%s/etc/cups/client.conf" % get.installDIR(), "ServerName /var/run/cups/cups.sock")
def install(): shelltools.cd(NCURSESW) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) LIB = "/usr/lib32" if get.buildTYPE() == "_emul32" else "/usr/lib" print LIB for lib in ["ncurses", "form", "panel", "menu"]: shelltools.echo("lib%s.so" % lib, "INPUT(-l%sw)" % lib) pisitools.dolib_so("lib%s.so" % lib, destinationDirectory = LIB) pisitools.dosym("lib%sw.a" % lib, "%s/lib%s.a" % (LIB, lib)) pisitools.dosym("libncurses++w.a", "%s/libncurses++.a" % LIB) for lib in ["ncurses", "ncurses++", "form", "panel", "menu"]: pisitools.dosym("%sw.pc" % lib, "%s/pkgconfig/%s.pc" % (LIB, lib)) shelltools.echo("libcursesw.so", "INPUT(-lncursesw)") pisitools.dolib_so("libcursesw.so", destinationDirectory = LIB) pisitools.dosym("libncurses.so", "%s/libcurses.so" % LIB) pisitools.dosym("libncursesw.a", "%s/libcursesw.a" % LIB) pisitools.dosym("libncurses.a", "%s/libcurses.a" % LIB) shelltools.cd("../%s" % NCURSES) for lib in ["ncurses", "form", "panel", "menu"]: pisitools.dolib_so("lib/lib%s.so.%s" % (lib, get.srcVERSION()), destinationDirectory = LIB) pisitools.dosym("lib%s.so.%s" % (lib, get.srcVERSION()), "%s/lib%s.so.5" % (LIB, lib)) if get.buildTYPE() == "_emul32": pisitools.removeDir("/_emul32") return shelltools.cd(WORKDIR) shelltools.system("grep -B 100 '$Id' README > license.txt") pisitools.dodoc("ANNOUNCE", "NEWS", "README*", "TO-DO", "license.txt")
def build(): shelltools.echo("Config", "TC_CONFIG_ATM:=n") autotools.make("CC=\"%s\" \ AR=\"%s\" \ SUBDIRS=\"lib ip tc misc netem\" \ " % (get.CC(), get.AR()))
def setup(): # TODO: do we need that ? shelltools.export("CXXFLAGS", get.CXXFLAGS().replace("-D_FORTIFY_SOURCE=2", "")) shelltools.export("CFLAGS", get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", "")) pisitools.dosed("runtime/tools/mve.awk", "#!/usr/bin/nawk -f", "#!/usr/bin/awk -f") # define the place for the global (g)vimrc file (set to /etc/vim/vimrc) shelltools.echo("src/feature.h", "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"") # our binary ctags file is names as exuberant-ctags pisitools.dosed("runtime/doc/syntax.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/doc/tagsrch.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/doc/usr_29.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/menu.vim", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("src/configure.in", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") # TODO: do we need that ? pisitools.dosed("src/configure.in", r"libc\.h", "") # TODO: we could need that #autotools.make("-C src autoconf") # TODO: * We should use "big" feature instead of "huge". # * Investigate impacts on current use options = "--with-features=huge \ --enable-multibyte \ --enable-perlinterp \ --enable-pythoninterp \ --enable-rubyinterp \ --enable-gui=no \ --with-tlib=ncurses \ --prefix=/usr \ --localstatedir=/var/lib/vim \ --with-features=big \ --disable-acl \ --with-compiledby=PisiLinux \ --enable-gpm \ --enable-acl \ --enable-cscope \ --disable-netbeans \ --enable-perlinterp \ --disable-luainterp \ --with-modified-by=PisiLinux" if get.buildTYPE() == "gui": options += " --enable-gui=gtk2 \ --with-vim-name=gvim \ --with-view-name=gview \ --with-x=yes" autotools.configure(options)
def install(): kerneltools.install() # Install kernel headers needed for out-of-tree module compilation kerneltools.installHeaders() kerneltools.installLibcHeaders() # Generate some module lists to use within mkinitramfs shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix())) #mkinitcpio default config pisitools.dodir("/etc/mkinitcpio.d") shelltools.touch("linux.preset") shelltools.echo("linux.preset", 'ALL_config="/etc/mkinitcpio.conf"\n'+ 'ALL_kver="/boot/kernel-%s"\n'% get.srcVERSION() + 'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() + 'default_options="-S autodetect"\n') pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
def install(): autotools.rawInstall("DBDIR=/var/lib/dhcpcd LIBEXECDIR=/lib/dhcpcd DESTDIR=%s" % get.installDIR()) # Set Options in /etc/dhcpcd.conf Disable ip4vall shelltools.echo("%s/etc/dhcpcd.conf" % get.installDIR(), "noipv4ll") pisitools.dodoc("README")
def install(): pisitools.insinto(docdir, "*") pisitools.removeDir("%s/_sources" % docdir) pisitools.dodir("/etc/env.d") shelltools.echo("%s/etc/env.d/50python-docs" % get.installDIR(), "PYTHONDOCS=%s/library" % docdir)
def install(): kerneltools.install() # Install kernel headers needed for out-of-tree module compilation kerneltools.installHeaders() kerneltools.installLibcHeaders() # Generate some module lists to use within mkinitramfs shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix())) #mkinitcpio default config pisitools.dodir("/etc/mkinitcpio.d") shelltools.touch("linux.preset") shelltools.echo("linux.preset", "# mkinitcpio preset file for the 'linux' package\n" + 'ALL_config="/etc/mkinitcpio.conf"\n'+ 'ALL_kver="/boot/kernel-%s"\n\n'% get.srcVERSION() + "PRESETS=('default' 'fallback') \n\n" + '#default_config="/etc/mkinitcpio.conf"\n' + 'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() + '#default_options=""\n\n' + '#fallback_config="/etc/mkinitcpio.conf"\n'+ 'fallback_image="/boot/initramfs-%s-fallback.img"\n'% get.srcVERSION() + 'fallback_options="-S autodetect"\n') pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
def install(): shelltools.cd("build") # Do the 'make install' from the build directory autotools.rawInstall('prefix=/usr \ bindir="%s" \ includedir="%s/include" \ datadir="%s" \ mandir="%s/man" \ infodir="%s/info" \ DESTDIR="%s" \ LIBPATH="%s"' % (BINPATH, LIBPATH, DATAPATH, DATAPATH, DATAPATH, get.installDIR(), LIBPATH), "install-target-libstdc++-v3") confdirbase = ldconfig["system"][0].rsplit("/", 1)[0] pisitools.dodir(confdirbase) # we'll move this into a directory we can put at the end of ld.so.conf # other than the normal versioned directory, so that it doesnt conflict # with gcc 3.3.3 pisitools.domove("/%s/lib*.so.*" % LIBPATH, "/usr/lib/libstdc++-v3/") shelltools.echo("%s/%s" % (get.installDIR(), ldconfig["system"][0]), ldconfig["system"][1]) if multilib: pisitools.domove("/%s/32/lib*.so.*" % LIBPATH, "/usr/lib32/libstdc++-v3/") shelltools.echo("%s/%s" % (get.installDIR(), ldconfig["multilib"][0]), ldconfig["multilib"][1]) # somehow /usr/share is left in farm, but not on my system for i in ["/usr/lib/gcc-lib", "/usr/share/gcc-data", "/usr/share"]: if shelltools.isDirectory("%s/%s" % (get.installDIR(), i)): pisitools.removeDir(i)
def setup(): shelltools.echo("docs/gtk-doc.make", "EXTRA_DIST=") autotools.autoreconf("-fi") libtools.libtoolize("--force") options = " ac_cv_header_sys_capability_h=yes \ --bindir=/bin \ --sbindir=/sbin \ --docdir=/usr/share/doc/udev \ --libdir=/usr/lib \ --libexecdir=/lib/udev \ --with-distro=other \ --with-firmware-path=/lib/firmware/updates:/lib/firmware \ --with-html-dir=/usr/share/doc/udev/html \ --with-rootlibdir=/lib \ --with-rootprefix= \ --disable-coredump \ --disable-hostnamed \ --disable-ima \ --disable-libcryptsetup \ --disable-localed \ --disable-logind \ --disable-nls \ --disable-quotacheck \ --disable-readahead \ --enable-split-usr \ --disable-timedated \ --disable-xz \ --enable-gudev \ --disable-selinux \ --disable-static \ --disable-introspection" autotools.configure(options)
def setup(): shelltools.system("sh NVIDIA-Linux-x86_64-%s.run -x --target tmp" % get.srcVERSION()) shelltools.move("tmp/*", ".") #5.5 patch icin shelltools.move("tmp/.manifest", ".") shelltools.system( "patch -p1 < NVIDIA-Linux-x86_64-430.64-work-around-mga-bug-25890.patch" ) shelltools.system( "patch -p1 < NVIDIA-Linux-x86_64-430.64-kernel-5.5.patch") shelltools.system("patch -p1 < kernel-5.6.patch") # Our libc is TLS enabled so use TLS library #shelltools.unlink("*-tls.so*") #shelltools.move("tls/*", ".") # xorg-server provides libwfb.so #shelltools.unlink("libnvidia-wfb.so.*") shelltools.echo("ld.so.conf", nvlibdir) shelltools.echo("XvMCConfig", "%s/libXvMCNVIDIA.so" % nvlibdir) # dkms shelltools.copytree("kernel", "kernel-dkms") shelltools.unlink("kernel-dkms/dkms.conf") shelltools.move("dkms.conf", "kernel-dkms/") pisitools.dosed("kernel-dkms/Makefile", "CC \?= cc", "CC = /usr/bin/cc") pisitools.dosed("kernel-dkms/dkms.conf", "%VERSION%", version)
def setup(): shelltools.export("CFLAGS","") # Use FFmpeg's CFLAGS # Setup version.h shelltools.unlink("version.sh") shelltools.echo("version.sh",'echo "#define FFMPEG_VERSION \\"SVN-r%s\\"" > version.h' % Revision) shelltools.chmod("version.sh") # CPU thing is just used for CMOV detection autotools.rawConfigure("--cpu=i686 \ --prefix=/usr \ --mandir=/usr/share/man \ --enable-gpl \ --enable-pthreads \ --enable-pp \ --enable-liba52 \ --enable-x264 \ --enable-xvid \ --enable-libfaad \ --enable-libfaac \ --enable-libvorbis \ --enable-libmp3lame \ --enable-libogg \ --enable-libamr-nb \ --enable-libamr-wb \ --enable-dc1394 \ --enable-libtheora \ --enable-shared \ --enable-x11grab \ --enable-libgsm \ --disable-static \ --disable-debug")
def setup(): options = "--disable-dependency-tracking \ --disable-static \ --disable-rpath \ --disable-jack \ --disable-solaris \ --disable-adrian-aec \ --enable-largefile \ --with-system-user=pulse \ --with-system-group=pulse \ --with-access-group=pulse-access \ --with-database=tdb" if get.buildTYPE() == "emul32": options += " --libdir=/usr/lib32 \ --libexecdir=/usr/lib32 \ --disable-gconf \ --disable-gtk2 \ --disable-jack \ --disable-bluez \ --disable-asyncns \ --disable-lirc \ --disable-x11 \ --disable-oss-output \ --disable-oss-wrapper \ --disable-solaris \ --disable-manpages \ --disable-samplerate \ --disable-default-build-tests" shelltools.echo(".tarball-version", get.srcVERSION()) #shelltools.system("NOCONFIGURE=1 ./bootstrap.sh") autotools.configure(options) pisitools.dosed("libtool", "CC(\s-shared\s)", r"CC -Wl,-O1,--as-needed\1")
def install(): pisitools.insinto("/", "root/*") def chmod(path, mode): shelltools.chmod("%s%s" % (get.installDIR(), path), mode) shelltools.echo("%s/etc/pardus-release" % get.installDIR(), "Pardus 2011") # Install baselayout documentation pisitools.doman("man/*.*") # Install baselayout utilities shelltools.cd("src/") autotools.rawInstall('DESTDIR="%s"' % get.installDIR()) # NOTE: We should not need this these days #chmod("/mnt/floppy", 0700) # FIXME: Check these if we switch to systemd chmod("/tmp", 01777) chmod("/var/lock", 0755) chmod("/var/tmp", 01777) chmod("/usr/share/baselayout/shadow", 0600) # FHS compatibility symlinks stuff pisitools.dosym("/var/tmp", "/usr/tmp") pisitools.dosym("share/man", "/usr/local/man") if get.ARCH() == "x86_64": # Directories for 32bit libraries pisitools.dodir("/lib32") pisitools.dodir("/usr/lib32") # Hack for binary blobs built on multi-lib systems pisitools.dosym("lib", "/lib64")
def install(): shelltools.cd(NCURSESW) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) LIB = "/usr/lib32" if get.buildTYPE() == "_emul32" else "/usr/lib" print LIB for lib in ["ncurses", "form", "panel", "menu"]: shelltools.echo("lib%s.so" % lib, "INPUT(-l%sw)" % lib) pisitools.dolib_so("lib%s.so" % lib, destinationDirectory=LIB) pisitools.dosym("lib%sw.a" % lib, "%s/lib%s.a" % (LIB, lib)) pisitools.dosym("libncurses++w.a", "%s/libncurses++.a" % LIB) for lib in ["ncurses", "ncurses++", "form", "panel", "menu"]: pisitools.dosym("%sw.pc" % lib, "%s/pkgconfig/%s.pc" % (LIB, lib)) shelltools.echo("libcursesw.so", "INPUT(-lncursesw)") pisitools.dolib_so("libcursesw.so", destinationDirectory=LIB) pisitools.dosym("libncurses.so", "%s/libcurses.so" % LIB) pisitools.dosym("libncursesw.a", "%s/libcursesw.a" % LIB) pisitools.dosym("libncurses.a", "%s/libcurses.a" % LIB) shelltools.cd("../%s" % NCURSES) for lib in ["ncurses", "form", "panel", "menu"]: pisitools.dolib_so("lib/lib%s.so.%s" % (lib, get.srcVERSION()), destinationDirectory=LIB) pisitools.dosym("lib%s.so.%s" % (lib, get.srcVERSION()), "%s/lib%s.so.5" % (LIB, lib)) if get.buildTYPE() == "_emul32": pisitools.removeDir("/_emul32") return shelltools.cd(WORKDIR) shelltools.system("grep -B 100 '$Id' README > license.txt") pisitools.dodoc("ANNOUNCE", "NEWS", "README*", "TO-DO", "license.txt")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Prepare chroot jail for d in ("dev", "etc/bind", "etc/pki/dnssec-keys", "lib/bind", "var/tmp", "var/log", "var/run/named", "var/named"): pisitools.dodir("%s/%s" % (CHROOT, d)) # At least drop a file in it shelltools.echo("%s%s/README" % (get.installDIR(), CHROOT), "Chroot jail for named") # Create directories pisitools.dodir("/var/run/named") for d in ("pri", "sec", "slaves", "data", "dynamic"): pisitools.dodir("%s/%s" % (BINDDIR, d)) # Create symlinks for src, dest in [("named.ca", "%s/root.cache" % BINDDIR), ("%s/pri" % BINDDIR, "/etc/bind/pri"), ("%s/sec" % BINDDIR, "/etc/bind/sec")]: pisitools.dosym(src, dest) # Documentation pisitools.dodoc("CHANGES", "COPYRIGHT", "FAQ", "README") pisitools.dodoc("doc/misc/*", "contrib/named-bootconf/named-bootconf.sh", "contrib/nanny/nanny.pl") pisitools.dohtml("doc/arm/*") pisitools.remove("/usr/share/doc/%s/Makefile*" % get.srcNAME())
def setup(): shelltools.echo("config.layout", config_layout()) pisitools.dosed("config.layout", "version", get.srcNAME()) for d in ["apr","apr-util","pcre"]: shelltools.unlinkDir("srclib/%s" % d) autotools.rawConfigure('--with-mpm=prefork \ --enable-layout=Pardus \ --with-ssl=/usr \ --enable-ssl=shared \ %s \ --with-z=/usr \ --with-port=80 \ --with-program-name=apache2 \ --with-apr=/usr/bin/apr-1-config \ --with-apr-util=/usr/bin/apu-1-config \ --with-suexec-safepath="/usr/bin:/bin" \ --with-suexec-logfile=/var/log/apache2/suexec_log \ --with-suexec-bin=/usr/sbin/suexec2 \ --with-suexec-userdir="public_html" \ --with-suexec-caller=apache \ --with-suexec-docroot=/var/www \ --with-suexec-uidmin=1000 \ --with-suexec-gidmin=100 \ --with-suexec-umask=077 \ --enable-suexec=shared \ --enable-pie \ --with-pcre=/usr/bin/pcre-config' % modules_config()) pisitools.dosed("include/ap_config_auto.h", "apache2\.conf", "httpd.conf")
def setup(): shelltools.system("sh NVIDIA-Linux-%s-%s.run -x --target tmp" % (arch, get.srcVERSION())) shelltools.move("tmp/*", ".") #5.5 patch icin shelltools.move("tmp/.manifest", ".") #shelltools.system("patch -p1 < kernel-5.5.patch") #shelltools.system("patch -p1 < kernel-5.6.patch") #shelltools.system("patch -p1 < unfuck-340.108-build-fix.patch") shelltools.system("patch -p1 < kernel-5.7.patch") shelltools.system("patch -p1 < kernel-5.8.patch") # Our libc is TLS enabled so use TLS library shelltools.unlink("*-tls.so*") shelltools.move("tls/*", ".") # xorg-server provides libwfb.so shelltools.unlink("libnvidia-wfb.so.*") shelltools.echo("ld.so.conf", nvlibdir) shelltools.echo("XvMCConfig", "%s/libXvMCNVIDIA.so" % nvlibdir) # dkms shelltools.copytree("kernel", "kernel-dkms") shelltools.unlink("kernel-dkms/dkms.conf") shelltools.move("dkms.conf", "kernel-dkms/") pisitools.dosed("kernel-dkms/dkms.conf", "%VERSION%", version) pisitools.dosed("kernel-dkms/Makefile", "(src\s\?=\s)\.", r"\1/usr/src/nvidia-%s" % version) pisitools.dosed("kernel-dkms/uvm/Makefile", "(src\s\?=\s)\.", r"\1/usr/src/nvidia-%s/uvm" % version)
def build(): shelltools.echo("Makefile.extra", "BUILT_SOURCES: $(BUILT_SOURCES)") autotools.make("-f Makefile -f Makefile.extra") targets = " systemd-udevd \ udevadm \ libudev.la \ libsystemd-daemon.la \ ata_id \ cdrom_id \ collect \ scsi_id \ v4l_id \ accelerometer \ mtd_probe \ libgudev-1.0.la" targets += "\ man/sd_is_fifo.3 \ man/sd_notify.3 \ man/sd_listen_fds.3 \ man/sd-daemon.3 \ man/udev.7 \ man/udevadm.8 \ man/systemd-udevd.8 \ " if not get.buildTYPE() == "emul32" else "" autotools.make(targets) autotools.make("-C docs/libudev") autotools.make("-C docs/gudev")
def setup(): shelltools.system("sh NVIDIA-Linux-%s-%s.run -x --target tmp" % (arch, get.srcVERSION())) shelltools.move("tmp/*", ".") # Our libc is TLS enabled so use TLS library shelltools.unlink("*-tls.so*") shelltools.move("tls/*", ".") # xorg-server provides libwfb.so shelltools.unlink("libnvidia-wfb.so.*") shelltools.echo("ld.so.conf", nvlibdir) shelltools.echo("XvMCConfig", "%s/libXvMCNVIDIA.so" % nvlibdir) shelltools.system("patch -p0 < kernel-4.11.patch") shelltools.system("patch -p1 < kernel-5.1.patch") shelltools.system("patch -p0 < kernel-5.3.patch") shelltools.system("patch -p0 < nv_patch_340.107_linux_kernel_5.0") shelltools.system("patch -p1 < kmem_cache_create_usercopy.patch") shelltools.system("patch -p1 < unregister_procfs_on_failure.patch") shelltools.system("rm -f kernel/Makefile") shelltools.system("rm -f kernel/uvm/Makefile") shelltools.system("cp Makefile-kernel kernel/Makefile") shelltools.system("cp Makefile-uvm kernel/uvm/Makefile")
def install(): shelltools.cd(xorgserver) autotools.rawInstall("DESTDIR=%s" % get.installDIR()) shelltools.cd("../%s/" % mesa) autotools.rawInstall("INSTALL_DIR=%s/usr DRI_DRIVER_INSTALL_DIR=%s/usr/lib/xorg/modules/dri INCLUDE_DIR=%s/usr/include" % (get.installDIR(), get.installDIR(), get.installDIR())) # Create glxinfo/gears shelltools.cd("progs/xdemos/") autotools.make("glxinfo") autotools.make("glxgears") pisitools.insinto("/usr/bin", "glxinfo") pisitools.insinto("/usr/bin", "glxgears") # Don't install private headers pisitools.remove("/usr/include/GL/GLw*P.h") # Create needed symlinks pisitools.dosym("libGLU.so.1.3.070003", "/usr/lib/libGLU.so.1.3") pisitools.dosym("libGLw.so.1.0.0", "/usr/lib/libGLw.so.1.0") # Moving libGL and friends for dynamic switching pisitools.domove("/usr/lib/libGL.so.1.2", "/usr/lib/xorg/std/lib") pisitools.domove("/usr/lib/xorg/modules/extensions/libglx.so", "/usr/lib/xorg/std/extensions") pisitools.domove("/usr/lib/xorg/modules/libwfb.so", "/usr/lib/xorg/std") for file in ("gl.h", "glx.h", "glext.h", "glxext.h"): pisitools.domove("/usr/include/GL/%s" % file, "/usr/lib/xorg/std/include") # Default cursor theme pisitools.dodir("/usr/share/cursors/xorg-x11/default") shelltools.echo("%s/usr/share/cursors/xorg-x11/default/index.theme" % get.installDIR(), "[Icon Theme]\nInherits=Jimmac")
def install(): kerneltools.install() # add objtool for external module building and enabled VALIDATION_STACK option pisitools.insinto("/usr/src/linux-headers-%s/tools/objtool" % get.srcVERSION(), "%s/tools/objtool/objtool" % get.curDIR()) # Install kernel headers needed for out-of-tree module compilation kerneltools.installHeaders() kerneltools.installLibcHeaders() # Generate some module lists to use within mkinitramfs shelltools.system("./generate-module-list %s/lib/modules/%s" % (get.installDIR(), kerneltools.__getSuffix())) #mkinitcpio default config pisitools.dodir("/etc/mkinitcpio.d") shelltools.touch("linux.preset") shelltools.echo("linux.preset", "# mkinitcpio preset file for the 'linux' package\n" + 'ALL_config="/etc/mkinitcpio.conf"\n'+ 'ALL_kver="/boot/kernel-%s"\n\n'% get.srcVERSION() + "PRESETS=('default' 'fallback') \n\n" + '#default_config="/etc/mkinitcpio.conf"\n' + 'default_image="/boot/initramfs-%s.img"\n'% get.srcVERSION() + '#default_options=""\n\n' + '#fallback_config="/etc/mkinitcpio.conf"\n'+ 'fallback_image="/boot/initramfs-%s-fallback.img"\n'% get.srcVERSION() + 'fallback_options="-S autodetect"\n') pisitools.insinto("/etc/mkinitcpio.d", "linux.preset")
def setup(): # Google API key shelltools.echo("google_api_key", "AIzaSyBINKL31ZYd8W5byPuwTXYK6cEyoceGh6Y") pisitools.dosed(".mozconfig", "%%PWD%%", get.curDIR()) pisitools.dosed(".mozconfig", "%%FILE%%", "google_api_key") pisitools.dosed(".mozconfig", "##JOBCOUNT##", get.makeJOBS()) # LOCALE shelltools.system("rm -rf langpack-ff/*/browser/defaults") if not shelltools.isDirectory(xpidir): shelltools.makedirs(xpidir) for locale in locales: shelltools.system( "wget -c -P %s http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%s/linux-%s/xpi/%s.xpi" % (xpidir, ver, arch, locale)) #shelltools.makedirs("langpack-ff/langpack-%[email protected]" % locale) shelltools.makedirs("langpack-ff") #shelltools.system("unzip -uo %s/%s.xpi -d langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) shelltools.system( "cp %s/%s.xpi langpack-ff/langpack-%[email protected]" % (xpidir, locale, locale)) print "Replacing browser.properties for %s locale" % locale #shelltools.copy("browserconfig.properties", "langpack-ff/langpack-%[email protected]/browser/chrome/%s/locale/branding/" % (locale, locale)) shelltools.copy("browserconfig.properties", "browser/branding/official/locales/") shelltools.makedirs(ObjDir) shelltools.cd(ObjDir) shelltools.system( "../configure --prefix=/usr --libdir=/usr/lib --disable-strip --disable-install-strip" )
def setup(): pisitools.dosed("runtime/tools/mve.awk", "#!/usr/bin/nawk -f", "#!/usr/bin/awk -f") shelltools.echo("src/feature.h", "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"") pisitools.dosed("runtime/doc/syntax.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/doc/tagsrch.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/doc/usr_29.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/menu.vim", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("src/configure.in", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("src/configure.in", " libc\.h ", " ") pisitools.dosed("src/Makefile", " auto.config.mk:", ":") pisitools.remove("src/auto/configure") shelltools.export("WANT_AUTOCONF", "2.5") autotools.make("-C src autoconf") autotools.configure("--with-features=huge \ --enable-multibyte \ --enable-perlinterp \ --enable-pythoninterp \ --enable-gui=yes \ --with-tlib=ncurses \ --disable-acl \ --disable-selinux \ --with-x")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) pisitools.dodoc("README", \ "FAQ", \ "AUTHORS", \ "ChangeLog", \ "NEWS", \ "TEMPLATE_HEADER", \ "TODO", \ "doc/databases.txt", \ "doc/empty.conf", \ "doc/hard.conf", \ "doc/initng.txt") # sync with baselayout defaults pisitools.dosed("%s/etc/initng/default.runlevel" % get.installDIR(), "daemon/xdm", "daemon/kdm") shelltools.echo("%s/etc/initng/default.runlevel" % get.installDIR(), "daemon/comar") shelltools.echo("%s/etc/initng/default.runlevel" % get.installDIR(), "daemon/local") shelltools.echo("%s/etc/initng/default.runlevel" % get.installDIR(), "daemon/hald") shelltools.echo("%s/etc/initng/default.runlevel" % get.installDIR(), "daemon/syslogd") shelltools.echo("%s/etc/initng/default.runlevel" % get.installDIR(), "daemon/klogd")
def install(): autotools.install("docdir=%s/usr/share/doc/%s" % (get.installDIR(), get.srcTAG())) pisitools.dodir("/var/lib/lock/sane") shelltools.echo("%s/etc/sane.d/dll.conf" % get.installDIR(), "\n# Added for hplip backends\nhpaio\n")
def install(): def do_chmod(path, mode): path = "%s/%s" % (get.installDIR(), path) shelltools.chmod (path, mode=mode) # Install everything pisitools.insinto("/", "root/*") for dire in ["/tmp", "/var/tmp", "/dev", "/usr/lib64", "/lib64", "/proc", "/sys", "/run/lock", "/root", "/home", "/run"]: pisitools.dodir (dire) # Adjust permissions do_chmod("/tmp", 01777) do_chmod("/var/tmp", 01777) do_chmod("/run/lock", 0775) do_chmod("/usr/share/baselayout/shadow", 0600) do_chmod("/dev", 0755) do_chmod("/proc", 0555) do_chmod("/sys", 0755) do_chmod("/home", 0755) do_chmod("/run", 0755) pisitools.dosym("../run", "/var/run") pisitools.dosym("../run/lock", "/var/lock") pisitools.dosym("lib64", "/lib") pisitools.dosym("lib64", "/usr/lib") pisitools.dosym ("/proc/self/mounts", "/etc/mtab") # Write out a default .profile.. temporary shelltools.echo ("%s/etc/skel/.profile" % get.installDIR(), "source /etc/profile") shelltools.echo ("%s/etc/skel/.bashrc" % get.installDIR(), "source /etc/profile")
def setup(): shelltools.system("sh NVIDIA-Linux-%s-%s.run -x --target tmp" % (arch, get.srcVERSION())) shelltools.move("tmp/*", ".") #5.5 patch icin shelltools.move("tmp/.manifest", ".") shelltools.system("patch -p1 < kernel-5.5.patch") shelltools.system("patch -p1 < kernel-5.6.patch") #if get.buildTYPE() != 'emul32': #shelltools.system("patch -p1 < linux-5.1.patch") # Our libc is TLS enabled so use TLS library #shelltools.unlink("*-tls.so*") #shelltools.move("tls/*", ".") # xorg-server provides libwfb.so shelltools.unlink("libnvidia-wfb.so.*") shelltools.echo("ld.so.conf", nvlibdir) shelltools.echo("XvMCConfig", "%s/libXvMCNVIDIA.so" % nvlibdir) # dkms shelltools.copytree("kernel", "kernel-dkms") shelltools.unlink("kernel-dkms/dkms.conf") shelltools.move("dkms.conf", "kernel-dkms/") pisitools.dosed("kernel-dkms/Makefile", "CC \?= cc", "CC = /usr/bin/cc") pisitools.dosed("kernel-dkms/dkms.conf", "%VERSION%", version)
def setup(): # Fixup version shelltools.echo(".version", get.srcVERSION().split("_")[0]) # Disable emacs scripts shelltools.export("EMACS", "no") shelltools.move("autoconf.texi", "autoconf213.texi") autotools.configure("--infodir=/usr/share/info --program-suffix=-2.13")
def setup(): # Fixup version shelltools.echo(".version", get.srcVERSION().split("_")[0]) # Disable emacs scripts shelltools.export("EMACS", "no") crosstools.configure()
def install(): autotools.install() major = ".".join(get.srcVERSION().split(".")[:2]) pisitools.dodir("/etc/env.d") shelltools.echo("%s/etc/env.d/50guile" % get.installDIR(), 'GUILE_LOAD_PATH="/usr/share/guile/%s"' % major) pisitools.dodoc("AUTHORS", "ChangeLog", "HACKING", "NEWS", "README", "THANKS")
def setup(): pisitools.dosed("client/scripts/linux", "/etc/dhclient-exit-hooks", "/etc/dhcp/dhclient-exit-hooks") pisitools.dosed("client/scripts/linux", "/etc/dhclient-enter-hooks", "/etc/dhcp/dhclient-enter-hooks") shelltools.echo("site.conf", site_conf % (get.CC(), get.LDFLAGS())) autotools.rawConfigure("--copts -DPARANOIA")
def install(): pisitools.insinto(docdir, "*") pisitools.removeDir("%s/_sources" % docdir) fixperms(os.path.join(get.installDIR(), docdir.lstrip("/"))) pisitools.dodir("/etc/env.d") shelltools.echo("%s/etc/env.d/50python-docs" % get.installDIR(), "PYTHONDOCS=%s/library" % docdir)
def install(): autotools.install("docdir=%s/usr/share/doc/%s" % (get.installDIR(), get.srcTAG())) pisitools.dodir("/var/lib/lock/sane") # we add hplip backend here not to let it turn into newconfig all the time shelltools.echo("%s/etc/sane.d/dll.conf" % get.installDIR(), "\n# Added for hplip backends\nhpaio\n")
def setup(): autotools.autoreconf("-fi") shelltools.system("sed -i -e 's@{ACLOCAL_FLAGS}@{ACLOCAL_FLAGS} -I m4@g' Makefile.am") shelltools.echo("AC_CONFIG_MACRO_DIR([m4])", "configure.ac") shelltools.system("NOCONFIGURE=1 ./autogen.sh") autotools.configure("--disable-static ") pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
def install(): autotools.rawInstall("BUILDROOT=%s" % get.installDIR()) pisitools.removeDir("/usr/share/cups/banners") pisitools.removeDir("/usr/share/cups/data/testprint") shelltools.echo("%s/etc/cups/client.conf" % get.installDIR(), "ServerName /var/run/cups/cups.sock")
def setup(): shelltools.echo("po/LINGUAS", "tr") autotools.autoreconf("-fi") autotools.configure("--disable-static\ --without-authdlg") pisitools.dosed("libtool", " -shared ", " -Wl,--as-needed -shared ")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR(), "install") shelltools.chmod("%s/etc/ssh/sshd_config" % get.installDIR(), 0600) # special request by merensan shelltools.echo("%s/etc/ssh/ssh_config" % get.installDIR(), "ServerAliveInterval 5") pisitools.dodoc("ChangeLog", "CREDITS", "OVERVIEW", "README*", "TODO", "sshd_config")
def setup(): #shelltools.export("CXXFLAGS", get.CXXFLAGS().replace("-D_FORTIFY_SOURCE=2", "")) #shelltools.export("CFLAGS", get.CFLAGS().replace("-D_FORTIFY_SOURCE=2", "")) pisitools.dosed("runtime/tools/mve.awk", "#!/usr/bin/nawk -f", "#!/usr/bin/awk -f") shelltools.echo("src/feature.h", "#define SYS_VIMRC_FILE \"/etc/vim/vimrc\"") pisitools.dosed("runtime/doc/syntax.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/doc/tagsrch.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/doc/usr_29.txt", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("runtime/menu.vim", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("src/configure.in", "(ctags(\"| [-*.]|\\s+/))", "exuberant-\\1") pisitools.dosed("src/configure.in", " libc\.h ", " ") pisitools.dosed("src/Makefile", " auto.config.mk:", ":") autotools.make("-C src autoconf") #fix sun-jdk sandbox error shelltools.export("MANPATH", "/usr/share/man") cache = [ "ac_cv_sizeof_wchar_t=4", "vim_cv_getcwd_broken=no", "vim_cv_memmove_handles_overlap=yes", "vim_cv_stat_ignores_slash=no", "vim_cv_terminfo=yes", "vim_cv_tgent=zero", "vim_cv_toupper_broken=no", "vim_cv_tty_group=world", "ac_cv_sizeof_int=4", "ac_cv_small_wchar_t=no" \ "vim_cv_getcwd_broken=no" \ "vim_cv_memmove_handles_overlap=yes" \ "vim_cv_stat_ignores_slash=no" \ "vim_cv_terminfo=yes" \ "vim_cv_tgent=non-zero" \ "vim_cv_toupper_broken=no" \ "vim_cv_tty_group=world", ] configure_args="--with-features=huge \ --enable-multibyte \ --enable-perlinterp \ --enable-pythoninterp \ --with-tlib=ncurses \ --disable-acl \ --with-compiledby=http://bugs.pardus.org.tr \ --with-modified-by=http://bugs.pardus.org.tr" shelltools.copytree("%s/vim72" % get.workDIR(),"build-gui") autotools.configure("%s\ --enable-gui=no" % configure_args, cache=cache, cacheFile="src/auto/config.cache") # Build gui shelltools.cd("build-gui") autotools.configure("%s\ --with-vim-name=vim-gtk \ --enable-gui=yes \ --with-x" % configure_args, cache=cache, cacheFile="src/auto/config.cache")
def testEcho(self): from pisi.actionsapi.shelltools import echo echo('tests/echo-file','eco subject') self.assertEqual(os.path.exists('tests/echo-file'),True) self.assertEqual(open('tests/echo-file').readlines()[0].strip(), 'eco subject') echo('tests/echo-file', 'subject eco') self.assertEqual(open('tests/echo-file').readlines()[1].strip(), 'subject eco') os.remove('tests/echo-file')
def testShelltoolsEcho(self): from pisi.actionsapi.shelltools import echo echo('tests/actionsapitests/echo-file', 'hububat fiyatları') self.assertEqual(os.path.exists('tests/actionsapitests/echo-file'), True) self.assertEqual(open('tests/actionsapitests/echo-file').readlines()[0].strip(), "hububat fiyatları") echo('tests/actionsapitests/echo-file', 'fiyat hububatları') self.assertEqual(open('tests/actionsapitests/echo-file').readlines()[1].strip(), "fiyat hububatları") os.remove('tests/actionsapitests/echo-file')
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Set Options in /etc/dhcpcd.conf Disable ip4vall shelltools.echo("%s/etc/dhcpcd.conf" % get.installDIR(), "noipv4ll") # Remove hooks install the compat one pisitools.remove("/usr/lib/dhcpcd/dhcpcd-hooks/*") pisitools.insinto("/usr/lib/dhcpcd/dhcpcd-hooks", "dhcpcd-hooks/50-dhcpcd-compat") pisitools.dodoc("README")
def install(): autotools.rawInstall("DESTDIR=%s" % get.installDIR()) # Consider invalid UTF-8 filenames as locale-specific. # WARN: we should probably move to suggesting G_FILENAME_ENC pisitools.dodir("/etc/env.d") shelltools.echo("%s/etc/env.d/50glib2" % get.installDIR(), "G_BROKEN_FILENAMES=1") pisitools.dodoc("AUTHORS", "ChangeLog*", "README*", "INSTALL", "NEWS*")