コード例 #1
0
def setup():
    shelltools.unlink("missing")
    
    shelltools.export("WANT_AUTOMAKE", "1.6")
    
    autotools.automake("--add-missing")
    autotools.configure("--prefix=/ --enable-zlib")
コード例 #2
0
ファイル: actions.py プロジェクト: aaydin/pardususer.de
def setup():
    shelltools.cd("%s/" %get.workDIR())
    shelltools.system("unzip -j jai-1_1_3-lib.zip")
    shelltools.unlink("*.exe")
    shelltools.system("echo %s > PisiPackageRelease" %get.srcRELEASE())
    shelltools.chmod("*", 0755)
    shelltools.chmod("./mapsources/*", 0755)
コード例 #3
0
ファイル: actions.py プロジェクト: alihanozturk/kuller
def install():
    for bin in ["src/main/festival", "src/main/festival_client", "bin/festival_server_control",
                "bin/text2wave", "lib/etc/unknown_Linux/audsp", "examples/saytime"]:
        pisitools.dobin(bin)

    pisitools.insinto("/usr/lib", "src/lib/*.so*")
    pisitools.insinto("/usr/include/festival", "src/include/*.h")
    pisitools.insinto("/usr/share/festival/lib", "lib/*")
    pisitools.insinto("/usr/share/festival/lib/etc", "lib/etc/email_filter")
    pisitools.insinto("/usr/share/festival/config", "config/*")

    pisitools.domove("/usr/share/festival/lib/festival.el", "/usr/share/emacs/site-lisp")

    pisitools.dodir("/usr/share/festival/voices-multisyn")
    pisitools.dodir("/var/log/festival")
    pisitools.dodir("/var/run/festival")

    pisitools.remove("/usr/share/festival/lib/siteinit.scm")
    pisitools.removeDir("/usr/share/festival/lib/etc")

    pisitools.insinto("/usr/share/doc/%s/examples" % get.srcTAG(), "examples/*")
    pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README", "LICENSE")

    for root,dirs,files in os.walk(get.installDIR()):
        for name in files:
            if "Makefile" in name:
                shelltools.unlink(os.path.join(root, name))
コード例 #4
0
def fixCompiledPy():
    ''' cleans *.py[co] from packages '''
    for root, dirs, files in os.walk("%s/usr/lib/%s/" % (get.installDIR(), get.curPYTHON())):
        for compiledFile in files:
            if compiledFile.endswith(".pyc") or compiledFile.endswith(".pyo"):
                if can_access_file("%s/%s" % (root,compiledFile)):
                    unlink("%s/%s" % (root,compiledFile))
コード例 #5
0
ファイル: actions.py プロジェクト: blue-devil/kuller
def install():
    for directory in ["data","lib","modules","plugins","scripts"]:
        pisitools.insinto("/usr/lib/metasploit",directory)

    for executable in ["msfcli","msfconsole","msfd", "msfencode","msfopcode","msfpayload","msfpescan","msfweb"]:
        pisitools.insinto("/usr/lib/metasploit",executable)

    for executable in shelltools.ls("msf*"):
        pisitools.dosym("/usr/bin/metasploit", "/usr/bin/%s" % executable)

    # Cleanup crap
    pisitools.removeDir("/usr/lib/metasploit/data/meterpreter")
    pisitools.removeDir("/usr/lib/metasploit/data/msfgui")
    pisitools.removeDir("/usr/lib/metasploit/data/templates")
    pisitools.remove("/usr/bin/msfgui")

    # .exe, .dll and .svn crap
    for root, dirs, files in os.walk(get.installDIR()):
        for name in dirs:
            if name == ".svn":
                shelltools.unlinkDir(os.path.join(root, name))
        for name in files:
            if name.endswith(".dll") or name.endswith(".exe"):
                shelltools.unlink(os.path.join(root, name))

    # msfweb disabled until Rails is packaged
    pisitools.remove("/usr/bin/msfweb")
    pisitools.remove("/usr/lib/metasploit/msfweb")
    pisitools.removeDir("/usr/lib/metasploit/data/msfweb")

    pisitools.dodoc("documentation/*.txt","documentation/*.pdf","documentation/ChangeLog","documentation/COPYING")
コード例 #6
0
ファイル: actions.py プロジェクト: alihanozturk/kuller
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")
コード例 #7
0
ファイル: actions.py プロジェクト: blue-devil/kuller
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")
コード例 #8
0
ファイル: actions.py プロジェクト: hasanakgoz/2013
def install():
    installdir = get.installDIR() + datadir
    pisitools.dodir(datadir)
    pisitools.dodir("%s/applications" % datadir)

    shelltools.copytree("%s/playonlinux" % get.workDIR(), "%s/" % installdir)

    pisitools.dobin("%s/playonlinux/playonlinux" % installdir)

    pisitools.domo("%s/playonlinux/lang/po/tr.po" % installdir, "tr", "pol.mo")

    #    pisitools.domove("usr/share/locale/tr/LC_MESSAGES", "/usr/share/playonlinux/lang/locale/tr")

    pisitools.dodoc("%s/playonlinux/LICENCE" % installdir, "%s/playonlinux/CHANGELOG" % installdir)

    shelltools.move(
        "%s/etc/PlayOnLinux.desktop" % (get.installDIR() + "/usr/share/playonlinux"),
        "%s/usr/share/applications/PlayOnLinux.desktop" % get.installDIR(),
    )

    shelltools.unlink("%s/usr/bin/playonlinux" % get.installDIR())

    shelltools.sym(
        "%s/usr/share/playonlinux/playonlinux" % get.installDIR(), "%s/usr/bin/playonlinux" % get.installDIR()
    )
コード例 #9
0
ファイル: pythonmodules.py プロジェクト: Tayyib/uludag
def fixCompiledPy(lookInto = '/usr/lib/%s/' % get.curPYTHON()):
    ''' cleans *.py[co] from packages '''
    for root, dirs, files in os.walk('%s/%s' % (get.installDIR(),lookInto)):
        for compiledFile in files:
            if compiledFile.endswith('.pyc') or compiledFile.endswith('.pyo'):
                if can_access_file('%s/%s' % (root,compiledFile)):
                    unlink('%s/%s' % (root,compiledFile))
コード例 #10
0
ファイル: actions.py プロジェクト: Erick-Pardus/PisiLinux
def setup():
    shelltools.unlink("acinclude.m4")
    autotools.autoreconf("-fi")
    autotools.configure("--disable-gtk-doc \
                         --disable-static \
                         --enable-sql \
                         --with-unixodbc=/usr")
コード例 #11
0
ファイル: actions.py プロジェクト: alihanozturk/kuller
def install():
    xbmcDir = "/usr/share/xbmc"

    pisitools.dodir(xbmcDir)
    for fl in ["xbmc.bin", "xbmc-xrandr"]:
        shelltools.copy(fl, "%s/usr/share/xbmc/" % get.installDIR())
    pisitools.dodir("/usr/bin")
    shelltools.copy("tools/Linux/xbmc.sh", "%s/usr/bin/xbmc" % get.installDIR())
    shelltools.chmod("%s/usr/bin/xbmc" % get.installDIR())

    #copy data files
    for dir in ["language", "media", "screensavers", "scripts", "skin", "sounds", "userdata", "visualisations", "system"]:
        shelltools.copytree(dir, "%s/usr/share/xbmc" % get.installDIR())

    #install web server
    pisitools.dodir("/usr/share/xbmc/web")
    shelltools.system("/usr/bin/unzip -oq web/Project_Mayhem_III_webserver_v1.0.zip -d %s/usr/share/xbmc/web" % get.installDIR())

    #remove .so and .dlls
    shelltools.unlinkDir("%s/usr/share/xbmc/system/players" % get.installDIR())
    shelltools.unlinkDir("%s/usr/share/xbmc/system/cdrip" % get.installDIR())
    for root, dirs, files in os.walk(get.installDIR()):
        for name in files:
            lname = name.lower()
            if lname.endswith(".so") or lname.endswith(".dll") or lname.endswith(".a"):
                shelltools.unlink(os.path.join(root, name))

    pisitools.dodoc("*.txt", "README.linux", "LICENSE.GPL")
コード例 #12
0
ファイル: actions.py プロジェクト: Pardus-Linux/Packages
def setup():
    options = "--disable-static \
               --disable-sqlite \
               --enable-flac \
               --enable-alsa \
               --enable-largefile \
               --disable-gcc-pipe \
               --disable-jack \
               --disable-octave \
               --disable-gcc-werror \
               --disable-dependency-tracking"

    pisitools.dosed("examples/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS")
    pisitools.dosed("tests/Makefile.am", "noinst_PROGRAMS", "check_PROGRAMS")

    shelltools.unlink("M4/libtool.m4")

    for i in shelltools.ls("M4/lt*.m4"):
        shelltools.unlink(i)

    if get.buildTYPE() == "emul32":
        options += " --prefix=/emul32 \
                     --libdir=/usr/lib32"
        shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
        shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())

    autotools.autoreconf("-fi -I M4")
    autotools.configure(options)

    pisitools.dosed("doc/Makefile", "^htmldocdir.*", "htmldocdir = /usr/share/doc/%s/html" % get.srcNAME())
コード例 #13
0
ファイル: actions.py プロジェクト: blue-devil/kuller
def build():
    shelltools.cd("VEX/")
    shelltools.unlink("pub/libvex_guest_offsets.h")
    autotools.make("pub/libvex_guest_offsets.h")

    shelltools.cd("../")
    autotools.make()
コード例 #14
0
ファイル: actions.py プロジェクト: alihanozturk/kuller
def setup():
    shelltools.unlinkDir("examples/Demo")
    shelltools.unlinkDir("examples/14.Win32Window")

    for files in ["examples/buildAllExamples.sh", "examples/BuildAllExamples.sln",
                  "examples/BuildAllExamples_v7.sln", "examples/whereAreTheBinaries.txt", "bin/Linux/readme.txt"]:
        shelltools.unlink(files)
コード例 #15
0
ファイル: actions.py プロジェクト: hasanakgoz/2013
def setup():
    for d in shelltools.ls("./"):
        if shelltools.isDirectory(d):
            fixperms(d)

    dos2unix("mk")

    shelltools.chmod("autogen.sh", 0755)
    shelltools.system("./autogen.sh")

    shelltools.unlink("glest_map_editor")
    dos2unix("../")

    # pisitools.dosed("Jamrules", "^COMPILER_CFLAGS_optimize \+=.*", "COMPILER_CFLAGS_optimize += %s ;" % get.CFLAGS())
    # pisitools.dosed("Jamrules", "^COMPILER_C\+\+FLAGS_optimize \+=.*", "COMPILER_C++FLAGS_optimize += %s ;" % get.CXXFLAGS())
    # pisitools.dosed("Jamrules", "^COMPILER_LFLAGS_optimize \+=.*", "COMPILER_LFLAGS_optimize += %s ;" % get.LDFLAGS())
    # pisitools.dosed("Jamrules", "-O3 -DNDEBUG", "-DNDEBUG")

    pisitools.dosed("glest_game/main/main.cpp", "PARDUS_DATADIR", "/usr/share/glest/")

    autotools.configure(
        "--with-ogg \
                         --with-vorbis \
                         --with-wx-config=disabled_wx \
                         --with-x"
    )
コード例 #16
0
ファイル: actions.py プロジェクト: darth-enoch/2013
def install():
    for d in (anthome, os.path.join(anthome, "lib"), os.path.join(anthome, "etc"), os.path.join(anthome, "bin"), javadir, os.path.join(javadir, "ant")):
        pisitools.dodir(d)

    shelltools.cd("build/lib")

    for f in ("ant.jar", "ant-launcher.jar", "ant-bootstrap.jar"):
        pisitools.insinto(javadir, f, f.replace(".jar", "-%s.jar" % get.srcVERSION()))
        pisitools.dosym(os.path.join(javadir, f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(anthome, "lib", f))
        pisitools.dosym(os.path.join(javadir, f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(javadir, f))

    #Install optional JAR files to /usr/share/java/ant
    for f in ("ant-jmf.jar", "ant-junit.jar", "ant-swing.jar"):
        pisitools.insinto(os.path.join(javadir, "ant"), f, f.replace(".jar", "-%s.jar" % get.srcVERSION()))
        pisitools.dosym(os.path.join(javadir, "ant", f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(anthome, "lib", f))
        pisitools.dosym(os.path.join(javadir, "ant", f.replace(".jar", "-%s.jar" % get.srcVERSION())), os.path.join(javadir, "ant", f))


    shelltools.cd("../../src/script")
    for f in glob.glob("*.bat"):
        shelltools.unlink(f)

    for f in glob.glob("*.cmd"):
        shelltools.unlink(f)

    pisitools.dobin("*")
    pisitools.domove("/usr/bin/antRun*", os.path.join(anthome, "bin"))
    shelltools.cd("../../")

    #Install XSLs
    pisitools.insinto(os.path.join(anthome, "etc"), "src/etc/*.xsl")

    pisitools.dodoc("KEYS", "NOTICE", "README", "WHATSNEW", "LICENSE")
コード例 #17
0
ファイル: actions.py プロジェクト: alihanozturk/kuller
def setup():
    shelltools.cd("..")
    for root, dirs, files in os.walk(WorkDir):
        for name in dirs:
            shelltools.chmod(join(root, name), 0755)
        for name in files:
            shelltools.chmod(join(root, name), 0644)

    shelltools.cd(WorkDir)
    # dos2unix("source")
    dos2unix("mk")

    shelltools.cd("mk/linux")
    shelltools.chmod("autogen.sh", 0755)
    shelltools.system("./autogen.sh")

    shelltools.cd("../..")
    shelltools.unlink("mk/linux/glest_map_editor")

    dos2unix("mk")

    # pisitools.dosed("mk/linux/Jamrules", "COMPILER_CFLAGS_optimize \+= -O3 -g3", "COMPILER_CFLAGS_optimize \+= %s" % get.CFLAGS()) 
    # pisitools.dosed("mk/linux/Jamrules", "COMPILER_C\+\+FLAGS_optimize \+= -O3 -g3", "COMPILER_CFLAGS_optimize \+= %s" % get.CXXFLAGS()) 

    shelltools.cd("mk/linux")
    autotools.configure("--with-ogg \
                         --with-vorbis \
                         --with-libOpenAL \
                         --with-x")
コード例 #18
0
ファイル: actions.py プロジェクト: aligulle1/core
def install():
    autotools.rawInstall("-j1 DESTDIR=%s%s" % (get.installDIR(), suffix))
    #autotools.rawInstall("DESTDIR=%s" % get.installDIR())
    
    # emul32 stop here
    if get.buildTYPE() == "emul32":
        shelltools.move("%s%s/lib" % (get.installDIR(), suffix), "%s/lib%s" % (get.installDIR(), suffix))
        shelltools.move("%s%s/usr/lib" % (get.installDIR(), suffix), "%s/usr/lib%s" % (get.installDIR(), suffix))
        #for f in shelltools.ls("%s/usr/lib32/pkgconfig" % get.installDIR()):
        #    pisitools.dosed("%s/usr/lib32/pkgconfig/%s" % (get.installDIR(), f), "emul32", "usr")
        #shelltools.unlinkDir("%s%s" % (get.installDIR(), suffix))
        shelltools.unlink("%s/usr/lib%s/libudev.so" % (get.installDIR(), suffix))
        pisitools.dosym("/lib%s/libudev.so.1.6.0" % suffix, "/usr/lib%s/libudev.so" % suffix)
        shelltools.unlinkDir("%s/usr/lib%s/pkgconfig" % (get.installDIR(), suffix))
        shelltools.unlinkDir("%s/lib%s/udev" % (get.installDIR(), suffix))
        return
    
    #add link
    pisitools.dosym("/sbin/udevadm", "/bin/udevadm")
    
    # Create vol_id and scsi_id symlinks in /sbin probably needed by multipath-tools
    pisitools.dosym("/lib/udev/scsi_id", "/sbin/scsi_id")

    # Create /sbin/systemd-udevd -> /sbin/udevd sysmlink, we need it for MUDUR, do not touch this sysmlink.
    # pisitools.dosym("/lib/systemd/systemd-udevd", "/sbin/systemd-udevd")

    # Create /etc/udev/rules.d for backward compatibility
    pisitools.dodir("/etc/udev/rules.d")
    pisitools.dodir("/run/udev")

    # Add man files
    pisitools.doman("man/*.5", "man/*.7", "man/*.8")

    pisitools.dodoc("README*", "NOTES")
コード例 #19
0
ファイル: actions.py プロジェクト: AlpyDemirok/PisiLinux
def install():
    pisitools.insinto(BASEDIR, "*")
    pisitools.insinto(BASEDIR, ".htaccess")

    # Remove redundant 'empty' and bat files shipped with archive
    for root, dirs, files in os.walk("%s%s" %(get.installDIR(), BASEDIR)):
        for name in files:
            if name == "empty":
                shelltools.unlink(os.path.join(root, name))
    pisitools.remove("%s/cake/console/cake.bat" % BASEDIR)

    pisitools.dosym("%s/cake/console/cake" % BASEDIR, "/usr/bin/cake")

    # Move the tmp dir into /var/tmp
    pisitools.domove("%s/app/tmp/*" % BASEDIR, "/var/tmp/cakephp")
    pisitools.removeDir("%s/app/tmp" % BASEDIR)
    pisitools.dosym("/var/tmp/cakephp", "%s/app/tmp" % BASEDIR)

    # To make access to log files easier
    pisitools.dosym("/var/tmp/cakephp/logs", "/var/log/cakephp")

    pisitools.dodoc("README", "cake/LICENSE.txt", "cake/VERSION.txt")

    # Remove redundant doc files
    for f in ("README", "cake/LICENSE.txt", "cake/VERSION.txt"):
        pisitools.remove("%s/%s" % (BASEDIR, f))
コード例 #20
0
ファイル: actions.py プロジェクト: blue-devil/kuller
def install():
    autotools.rawInstall("DIST_ROOT=%s" % get.installDIR())
    autotools.rawInstall("DIST_ROOT=%s" % get.installDIR(), "install-dev")

    # shared in /lib, static in /usr/lib, ldscript fun too
    pisitools.domove("/usr/lib/lib*.so*", "/lib")

    # remove duplicated so files
    for lib in shelltools.ls("%s/lib/lib*.so.*" % get.installDIR()):
        shelltools.unlink(lib)

    # create needed symlinks
    pisitools.dosym("/lib/libdisk.so", "/lib/libdisk.so.0")
    pisitools.dosym("/lib/libdisk.so", "/lib/libdisk.so.0.0.0")

    pisitools.dosym("/lib/libxcmd.so", "/lib/libxcmd.so.0")
    pisitools.dosym("/lib/libxcmd.so", "/lib/libxcmd.so.0.0.0")

    pisitools.dosym("/lib/libxfs.so", "/lib/libxfs.so.0")
    pisitools.dosym("/lib/libxfs.so", "/lib/libxfs.so.0.0.0")

    pisitools.dosym("/lib/libxlog.so", "/lib/libxlog.so.0")
    pisitools.dosym("/lib/libxlog.so", "/lib/libxlog.so.0.0.0")

    pisitools.dosym("/lib/libhandle.so", "/lib/libhandle.so.1")
    pisitools.dosym("/lib/libhandle.so", "/lib/libhandle.so.1.0.3")

    libtools.gen_usr_ldscript("libhandle.so")
コード例 #21
0
ファイル: actions.py プロジェクト: hasanakgoz/2013
def setup():
    shelltools.unlink("py-compile")
    shelltools.sym("/bin/true", "py-compile")

    autotools.configure(
        "--disable-mime-install \
                         --enable-packager-mode"
    )
コード例 #22
0
ファイル: actions.py プロジェクト: ibrahimkaraguzel/kuller
def setup():
    shelltools.unlink("aclocal.m4")
    shelltools.unlink("libtool.m4")
    autotools.autoreconf("-fi")
    autotools.configure(
        "--enable-cplusplus \
                         --disable-static"
    )
コード例 #23
0
ファイル: actions.py プロジェクト: HamurcuH/playground
def setup():
    # Remove source files
    shelltools.unlink("usbdux/*dux")
    shelltools.unlink("*/*.asm")

    # These + a lot of other firmware are shipped within alsa-firmware
    for fw in ("ess", "korg", "sb16", "yamaha"):
        shelltools.unlinkDir(fw)
コード例 #24
0
ファイル: actions.py プロジェクト: AlpyDemirok/PisiLinux
def setup():
    shelltools.unlink("po/*.po")

    pythonmodules.run("setup.py configure --no-install-init \
                                          --no-install-kde \
                                          --resume=/usr/share/wicd/scripts \
                                          --suspend=/usr/share/wicd/scripts \
                                          --verbose")
コード例 #25
0
ファイル: actions.py プロジェクト: Erick-Pardus/PisiLinux
def fixperms(d):
    for root, dirs, files in os.walk(d):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0755)
        for name in files:
            shelltools.chmod(os.path.join(root, name), 0644)
            if name.startswith("SConscript"):
                shelltools.unlink(os.path.join(root, name))
コード例 #26
0
ファイル: actions.py プロジェクト: alihanozturk/kuller
def fixDirs(d):
    for root, dirs, files in os.walk(d):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0755)
        for name in files:
            shelltools.chmod(os.path.join(root, name), 0644)
            if name == "SConscript":
                shelltools.unlink(os.path.join(root,name))
コード例 #27
0
def fixLocalPod():
    podFiles = [ "%s/usr/lib/perl5/vendor_perl/%s/i686-linux/perllocal.pod" % (get.installDIR(), get.curPERL()),
                "%s/usr/lib/perl5/%s/i686-linux/perllocal.pod" % (get.installDIR(), get.curPERL()),
                "%s/usr/lib/perl5/site_perl/%s/perllocal.pod" % (get.installDIR(), get.curPERL())]

    for podFile in podFiles:
        if can_access_file(podFile):
            unlink(podFile)
コード例 #28
0
ファイル: actions.py プロジェクト: Pardus-Linux/Packages
def build():
    shelltools.unlink("config.sh")

    pisitools.dosed("Makefile", "^PREFIX=/usr/local$", "PREFIX=%s" % get.defaultprefixDIR())
    pisitools.dosed("mylib.ml", "LIBDIR", libdir)
    autotools.make("BINDIR=%s LIBDIR=%s" % \
                    (get.installDIR() + bindir, \
                     get.installDIR() + libdir))
コード例 #29
0
ファイル: actions.py プロジェクト: alihanozturk/PisiLinux
def install():

    autotools.rawInstall("DESTDIR=%s" % get.installDIR())

    pisitools.dodoc("COPYING", "CREDITS", "README")

    shelltools.unlink("man/mailcap.?")
    pisitools.doman("man/*", "debian/mimencode.1", "debian/mimeit.1")
コード例 #30
0
ファイル: perlmodules.py プロジェクト: Tayyib/uludag
def removePacklist():
    ''' cleans .packlist file from perl packages '''
    path = '%s/%s' % (get.installDIR(), "/usr/lib/perl5/vendor_perl/%s/%s-linux-thread-multi/auto/" % (get.curPERL(), get.HOST().split("-")[0]))
    for root, dirs, files in os.walk(path):
        for packFile in files:
            if packFile == ".packlist":
                if can_access_file('%s/%s' % (root, packFile)):
                    unlink('%s/%s' % (root, packFile))
コード例 #31
0
ファイル: actions.py プロジェクト: pars-linux/contrib
def setup():
    shelltools.unlink("CMakeCache.txt")
    shelltools.makedirs("build")
    shelltools.cd("build")

    cmaketools.configure("-DK3D_BUILD_GNOME_MODULE=OFF \
                          -DK3D_BUILD_AQSIS_MODULE=ON \
                          -DK3D_BUILD_PARALLEL=OFF \
                          -DK3D_BUILD_GTS_MODULE=OFF", sourceDir="..")
コード例 #32
0
def setup():
    shelltools.unlink("py-compile")
    shelltools.sym("/bin/true", "%s/py-compile" % get.curDIR())

    autotools.configure("--enable-thread --disable-docs")

    shelltools.touch("%s/style.css" % get.curDIR())
    pisitools.dosed("docs/Makefile", "CSS_FILES = .*",
                    "CSS_FILES = %s/style.css" % get.curDIR())
コード例 #33
0
ファイル: perlmodules.py プロジェクト: zaxebo1/pisi
def removePodfiles(path = 'usr/lib/perl5/'):
    ''' cleans *.pod files from perl packages '''
    full_path = '%s/%s' % (get.installDIR(), path)
    for root, dirs, files in os.walk(full_path):
        for packFile in files:
            if packFile.endswith(".pod"):
                if can_access_file('%s/%s' % (root, packFile)):
                    unlink('%s/%s' % (root, packFile))
                    removeEmptydirs(root)
コード例 #34
0
def build():
    scons.make('CC="%s" \
                CCFLAGS="%s" \
                LINK="%s" \
                LINKFLAGS="%s" \
                shared=1 ' % (get.CC(), get.CFLAGS(), get.CC(), get.LDFLAGS()))

    # Remove static libraries
    shelltools.unlink(get.workDIR() + '/' + get.srcDIR() + '/lib/*.a')
コード例 #35
0
def setup():
    shelltools.unlink("acinclude.m4")
    autotools.autoreconf("-fi")
    autotools.configure("--disable-gtk-doc \
                         --disable-static \
                         --enable-sql \
                         --with-unixodbc=/usr")

    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
コード例 #36
0
ファイル: actions.py プロジェクト: pardus-anka/pardususer.de
def build():
    shelltools.cd("scangearmp")
    # force to use libtool from system
    shelltools.unlink("ltmain.sh")
    shelltools.unlink("libtool")
    shelltools.system("ln -s `which libtool` .")
    # make as usual
    autotools.make()
    shelltools.cd("..")
コード例 #37
0
ファイル: perlmodules.py プロジェクト: zaxebo1/pisi
def removePacklist(path = 'usr/lib/perl5/'):
    ''' cleans .packlist file from perl packages '''
    full_path = '%s/%s' % (get.installDIR(), path)
    for root, dirs, files in os.walk(full_path):
        for packFile in files:
            if packFile == ".packlist":
                if can_access_file('%s/%s' % (root, packFile)):
                    unlink('%s/%s' % (root, packFile))
                    removeEmptydirs(root)
コード例 #38
0
def setup():
    shelltools.unlinkDir("examples/Demo")
    shelltools.unlinkDir("examples/14.Win32Window")

    for files in [
            "examples/buildAllExamples.sh", "examples/BuildAllExamples.sln",
            "examples/BuildAllExamples_v7.sln",
            "examples/whereAreTheBinaries.txt", "bin/Linux/readme.txt"
    ]:
        shelltools.unlink(files)
コード例 #39
0
def setup():
    shelltools.unlink("%s/%s/doc/auctex.info" % (get.workDIR(), get.srcDIR()))

    autotools.configure("EMACS_NAME=emacs EMACS_FLAVOUR=emacs econf --disable-build-dir-test \
                         --with-auto-dir='/var/lib/auctex' \
                         --disable-preview \
                         --with-lispdir='/usr/share/emacs/site-lisp/%s' \
                         --with-packagelispdir='/usr/share/emacs/site-lisp/%s' \
                         --with-packagedatadir='/usr/share/emacs/etc/%s'" \
                         % (get.srcNAME(),get.srcNAME(),get.srcNAME()))
コード例 #40
0
def setup():
    # Clean *.gmo files
    for f in shelltools.ls("%s/po/*.gmo" % get.curDIR()):
        shelltools.unlink(f)

    autotools.configure("--enable-shadowgrp \
                         --without-selinux \
                         --with-audit \
                         --with-libpam \
                         --disable-shared")
コード例 #41
0
def setup():
    #Remove MacOS plugin
    shelltools.unlinkDir("plugins/address_book")
    shelltools.unlinkDir("plugins/growl")
    #Remove Win stuff
    shelltools.unlink("plugins/music/MusicWin*")
    shelltools.unlinkDir("skins/default/winicons")

    autotools.autoreconf("-vfi")
    autotools.configure()
コード例 #42
0
ファイル: actions.py プロジェクト: poyraz76/packages-1
def install():
    for item in Purged:
        shelltools.unlink(item)
    for potential in os.listdir(FirmwareSource):
        # Make sure to backup all licences
        if "LICENSE" in potential or "LICENCE" in potential:
            pisitools.dodoc(potential)
        else:
            if not potential in Blacklisted:
                pisitools.insinto("/lib/firmware", potential)
コード例 #43
0
def fixperms(Dir):
    for root, dirs, files in os.walk(Dir):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0755)
        for name in files:
            # espa? langfiles have strange encodings and borks
            if name.endswith(".lng") and "espa" in name:
                shelltools.unlink(os.path.join(root, name))
            else:
                shelltools.chmod(os.path.join(root, name), 0644)
コード例 #44
0
def build():
    #These files will be created by latex command below
    for i in ["beispiel2.tex", "beispiel.tex"]:
        shelltools.unlink(i)

    shelltools.system("latex --interaction=batchmode g-brief.ins")

    for srcfile in shelltools.ls("."):
        if srcfile.endswith("tex"):
            shelltools.system("texi2dvi -q -c --language=latex %s" % srcfile)
コード例 #45
0
def fixperms(d):
    for root, dirs, files in os.walk(d):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0755)
            if name == "CVS":
                shelltools.unlinkDir(os.path.join(root, name))
        for name in files:
            shelltools.chmod(os.path.join(root, name), 0644)
            if name == ".cvsignore" or name.endswith(".dll"):
                shelltools.unlink(os.path.join(root, name))
コード例 #46
0
def build():
    #pisilinux icin grub2 olarak ayarla
    shelltools.system(
        "sed -i -e 's|grub-probe|grub2-probe|g' os-probes/common/50mounted-tests \
                       linux-boot-probes/common/50mounted-tests")
    shelltools.system(
        "sed -i -e 's|grub-mount|grub2-mount|g' os-probes/common/50mounted-tests \
                       linux-boot-probes/common/50mounted-tests common.sh")
    shelltools.unlink("Makefile")
    autotools.make("newns")
コード例 #47
0
def setup():
    # Fix udev rule
    pisitools.dosed("hplj10xx.rules", "/etc/hotplug/usb", "/lib/udev")

    # Fix firmware dir
    pisitools.dosed("hplj1000", "FWDIR=.*$", "FWDIR=/lib/firmware")

    # Remove these. They are supported well by Splix.
    shelltools.unlink("foomatic-db/printer/Xerox-Phaser_6110.xml")
    shelltools.unlink("PPD/Xerox-Phaser_6110.ppd")
コード例 #48
0
def removePacklist():
    ''' cleans .packlist file from perl packages '''
    path = '%s/%s' % (get.installDIR(
    ), "/usr/lib/perl5/vendor_perl/%s/%s-linux-thread-multi/auto/" %
                      (get.curPERL(), get.HOST().split("-")[0]))
    for root, dirs, files in os.walk(path):
        for packFile in files:
            if packFile == ".packlist":
                if can_access_file('%s/%s' % (root, packFile)):
                    unlink('%s/%s' % (root, packFile))
コード例 #49
0
def setup():
    shelltools.cd("UrbanTerror/q3ut4/")
    shelltools.system("unzip zpak000_assets.pk3")
    shelltools.system("unzip zpak000.pk3")

    for files in walk("%s/opt/ZeroRadiant/engine-UrbanTerror/q3ut4/maps/" % get.workDIR()):
        shelltools.unlink("%s/opt/ZeroRadiant/engine-UrbanTerror/q3ut4/maps/%s" % (get.workDIR(), files))

    for pk3 in ["zpak000_assets", "zpak000"]:
        shelltools.unlink("%s/UrbanTerror/q3ut4/%s.pk3" % (get.workDIR(), pk3))
コード例 #50
0
ファイル: actions.py プロジェクト: waroi/main
def setup():
    # Remove .c file to be regenerated from .defs file
    shelltools.unlink("src/pynotify.c")
    # suppress c compiler warnings
    pisitools.cflags.add(
        "-Wno-deprecated-declarations -Wno-implicit-function-declaration")
    autotools.autoreconf("-fi")
    autotools.configure()
    # fix unused direct dependency analysis
    pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
コード例 #51
0
def build():
    autotools.make("DESTDIR=%s prefix=/usr" % get.installDIR())

    # gitweb
    shelltools.unlink("gitweb/gitweb.cgi")
    autotools.make('GITWEB_CSS="gitweb/gitweb.css" \
                    GITWEB_LOGO="gitweb/git-logo.png" \
                    GITWEB_FAVICON="gitweb/git-favicon.png" \
                    bindir=/usr/bin \
                    gitweb/gitweb.cgi')
コード例 #52
0
def install():
    shelltools.system("export DISPLAY=")
    shelltools.system("sh GoogleEarthLinux.bin --target . --noexec")
    shelltools.makedirs("googleearth-linux-x86")
    shelltools.move("googleearth-linux-x86.tar",
                    "%s/googleearth-linux-x86/" % get.workDIR())
    shelltools.cd("googleearth-linux-x86")
    shelltools.system("tar -xf googleearth-linux-x86.tar")
    shelltools.unlink("googleearth-linux-x86.tar")
    shelltools.makedirs("%s/usr/lib/googleearth" % get.installDIR())
    shelltools.copy("%s/googleearth-linux-x86/*" % get.workDIR(),
                    "%s/usr/lib/googleearth/" % get.installDIR())

    shelltools.cd("..")
    shelltools.makedirs("googleearth-data")
    shelltools.move("googleearth-data.tar",
                    "%s/googleearth-data/" % get.workDIR())
    shelltools.cd("googleearth-data")
    shelltools.system("tar -xf googleearth-data.tar")
    shelltools.unlink("googleearth-data.tar")
    shelltools.copy("%s/googleearth-data/*" % get.workDIR(),
                    "%s/usr/lib/googleearth/" % get.installDIR())

    shelltools.system("chown -R root %s/usr/lib/googleearth/" %
                      get.installDIR())
    shelltools.system("chgrp -R root %s/usr/lib/googleearth/" %
                      get.installDIR())

    shelltools.cd("..")

    shelltools.makedirs("%s/usr/share/icons/hicolor/16x16/apps" %
                        get.installDIR())
    shelltools.system(
        "convert googleearth-icon.png -resize 16x16 googleearth.png")
    shelltools.move(
        "googleearth.png",
        "%s/usr/share/icons/hicolor/16x16/apps/" % get.installDIR())

    shelltools.makedirs("%s/usr/share/icons/hicolor/32x32/apps" %
                        get.installDIR())
    shelltools.system(
        "convert googleearth-icon.png -resize 32x32 googleearth.png")
    shelltools.move(
        "googleearth.png",
        "%s/usr/share/icons/hicolor/32x32/apps/" % get.installDIR())

    shelltools.makedirs("%s/usr/share/icons/hicolor/48x48/apps" %
                        get.installDIR())
    shelltools.system(
        "convert googleearth-icon.png -resize 48x48 googleearth.png")
    shelltools.move(
        "googleearth.png",
        "%s/usr/share/icons/hicolor/48x48/apps/" % get.installDIR())

    pisitools.dosym("/lib/ld-linux.so.2", "/lib/ld-lsb.so.3")
コード例 #53
0
def setup():
    shelltools.unlink("m4/libtool.m4")

    shelltools.export("AUTOPOINT", "true")
    autotools.autoreconf("-fi")

    autotools.configure("--disable-static \
                         --enable-frontend \
                         --enable-gimp=no \
                         --disable-rpath \
                         --disable-ltdl-install")
コード例 #54
0
def install():
    # install /lib/ld-linux.so.1.9.11
    pisitools.dolib_so("ld-linux.so.1*", "/lib")
    shelltools.unlink("ld-linux.so.1*")

    pisitools.remove("/lib/ld-linux.so.1")
    pisitools.dosym("ld-linux.so.1.9.11", "/lib/ld-linux.so.1")

    # install other compatibilty libraries
    pisitools.dolib_so("*.so*")
    libtools.preplib()
コード例 #55
0
def setup():
    shelltools.export("CC", get.CC())
    shelltools.export("LD", get.LD())

    shelltools.unlink("acinclude.m4")
    autotools.autoreconf("-fi")
    libtools.libtoolize("-fic")

    autotools.configure("--enable-nls \
                         --without-included-gettext \
                         --disable-static")
コード例 #56
0
ファイル: actions.py プロジェクト: pars-linux/contrib
def fixperms(d):
    for root, dirs, files in os.walk(d):
        for name in dirs:
            shelltools.chmod(os.path.join(root, name), 0755)
        for name in files:
            if name.endswith(".h") or name.endswith(".ppd"):
                shelltools.chmod(os.path.join(root, name), 0644)
            elif name.endswith(".a") or name.endswith(".la"):
                shelltools.unlink(os.path.join(root, name))
            else:
                shelltools.chmod(os.path.join(root, name), 0755)
コード例 #57
0
def build():
    # Use the bootstrap compiler
    autotools.make("PP=%s/ppc386 compiler_cycle" % sourceDir)

    # Rebuild compiler using the new compiler
    shelltools.copy("compiler/ppc386", "ppc386.new")
    autotools.make("PP=%s/ppc386.new compiler_cycle" % sourceDir)
    shelltools.unlink("ppc386.new")
    shelltools.copy("compiler/ppc386", "ppc386.new")

    autotools.make("PP=%s/ppc386.new all" % sourceDir)
コード例 #58
0
ファイル: actions.py プロジェクト: pars-linux/pardus-1.0
def setup():
    # libmpeg2 comes with a52 but its quiet old, so we link against the system...
    shelltools.unlink("Makefile.a52")
    shelltools.touch("Makefile.a52")

    shelltools.unlinkDir("a52dec-0.7.3/")
    shelltools.makedirs("a52dec-0.7.3")

    shelltools.sym("/usr/include/a52dec", "a52dec-0.7.3/include")

    pisitools.dosed("Makefile", "LIBS = -lm -lpthread", "LIBS = -lm -lpthread -L/usr/lib -la52")
コード例 #59
0
def install():
    pisitools.dobin("2ManDVD")

    shelltools.unlink("*.qm")
    shelltools.system("lrelease-qt4 *.ts")
    pisitools.insinto("/usr/share/2mandvd/locale", "*.qm")

    pisitools.insinto("/usr/share/pixmaps", "Interface/mandvd.png",
                      "2mandvd.png")

    pisitools.dodoc("README.txt")
コード例 #60
0
def setup():
    shelltools.unlink("Readme.rtf")
    for f in ["Readme.txt", "Thanks.txt", "uDevGame Readme.txt", "story.txt"]:
        pisitools.dosed(f, "\n\r", "\n")

    pisitools.dosed("py/runkiki", "python2.2", get.curPYTHON())

    # SWIG hell
    shelltools.cd("SWIG")
    shelltools.system("swig -c++ -python -globals kiki -o KikiPy_wrap.cpp KikiPy.i")
    shelltools.copy("kiki.py", "../py/")