Skip to content
Browse files

del

  • Loading branch information...
1 parent dbaabcf commit 87870d6b560664c015168fb6a10330ec14e883b7 @circass committed
View
19 pisi/actions.py
@@ -1,19 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Licensed under the GNU General Public License, version 2.
-# See the file http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
-
-from pisi.actionsapi import pythonmodules
-from pisi.actionsapi import pisitools
-from pisi.actionsapi import get
-
-def build():
- pythonmodules.compile()
-
-def install():
- # Install into /usr/lib/pardus so we can protect ourself from python updates
- pythonmodules.install("--install-lib=/usr/lib/pardus")
-
- pisitools.dosym("pisi-cli", "/usr/bin/pisi")
-
- pisitools.insinto("/etc/pisi", "pisi.conf-%s" % get.ARCH(), "pisi.conf")
View
245 pisi/comar/manager.py
@@ -1,245 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2005-2009 TUBITAK/UEKAE
-#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free
-# Software Foundation; either version 2 of the License, or (at your option)
-# any later version.
-#
-# Please read the COPYING file.
-#
-
-# Disable cyclic garbage collector of Python to avoid comar segmentation
-# faults under high load (#11110)
-import gc
-gc.disable()
-
-import os
-import locale
-import string
-
-# FIXME: later this will be Comar's job
-systemlocale = open("/etc/mudur/locale", "r").readline().strip()
-
-# for pisi
-os.environ["LC_ALL"] = systemlocale
-
-# for system error messages
-locale.setlocale(locale.LC_ALL, systemlocale)
-
-try:
- import pisi.api
- import pisi.db
- import pisi.ui
- import pisi.util as util
- import pisi.configfile
- from pisi.version import Version
-except KeyboardInterrupt:
- notify("System.Manager", "cancelled", "")
-
-class UI(pisi.ui.UI):
- def error(self, msg):
- notify("System.Manager", "error", str(msg))
-
- def warning(self, msg):
- notify("System.Manager", "warning", str(msg))
-
- def notify(self, event, **keywords):
- if event == pisi.ui.installing:
- pkgname = keywords["package"].name
- notify("System.Manager", "status", ("installing", pkgname, "", ""))
- elif event == pisi.ui.configuring:
- pkgname = keywords["package"].name
- notify("System.Manager", "status", ("configuring", pkgname, "", ""))
- elif event == pisi.ui.extracting:
- pkgname = keywords["package"].name
- notify("System.Manager", "status", ("extracting", pkgname, "", ""))
- elif event == pisi.ui.updatingrepo:
- reponame = keywords["name"]
- notify("System.Manager", "status", ("updatingrepo", reponame, "", ""))
- elif event == pisi.ui.removing:
- pkgname = keywords["package"].name
- notify("System.Manager", "status", ("removing", pkgname, "", ""))
- elif event == pisi.ui.cached:
- total = str(keywords["total"])
- cached = str(keywords["cached"])
- notify("System.Manager", "status", ("cached", total, cached, ""))
- elif event == pisi.ui.installed:
- notify("System.Manager", "status", ("installed", "", "", ""))
- elif event == pisi.ui.removed:
- notify("System.Manager", "status", ("removed", "", "", ""))
- elif event == pisi.ui.upgraded:
- notify("System.Manager", "status", ("upgraded", "", "", ""))
- elif event == pisi.ui.packagestogo:
- notify("System.Manager", "status", ("order", "", "", ""))
- elif event == pisi.ui.desktopfile:
- filepath = keywords["desktopfile"]
- notify("System.Manager", "status", ("desktopfile", filepath, "", ""))
- else:
- return
-
- def ack(self, msg):
- return True
-
- def confirm(self, msg):
- return True
-
- def display_progress(self, operation, percent, info="", **kw):
- if operation == "fetching":
- file_name = kw["filename"]
- if not file_name.startswith("pisi-index.xml"):
- file_name = pisi.util.parse_package_name(file_name)[0]
- out = (operation, file_name, str(percent), int(kw["rate"]), kw["symbol"], int(kw["downloaded_size"]), int(kw["total_size"]))
- else:
- out = (operation, str(percent), info, 0, 0, 0, 0)
- notify("System.Manager", "progress", out)
-
-def _init_pisi():
- ui = UI()
- try:
- pisi.api.set_userinterface(ui)
- except KeyboardInterrupt:
- cancelled()
-
-def cancelled():
- notify("System.Manager", "cancelled", None)
-
-def started(operation=""):
- notify("System.Manager", "started", operation)
-
-def finished(operation=""):
- if operation in ["System.Manager.setCache", "System.Manager.installPackage", "System.Manager.removePackage", "System.Manager.updatePackage"]:
- __checkCacheLimits()
-
- notify("System.Manager", "finished", operation)
-
-def privileged(func):
- """
- Decorator for synchronizing privileged functions
- """
- def wrapper(*__args,**__kw):
- operation = "System.Manager.%s" % func.func_name
-
- started(operation)
- _init_pisi()
- try:
- func(*__args,**__kw)
- except KeyboardInterrupt:
- cancelled()
- return
- except Exception, e:
- notify("System.Manager", "error", str(e))
- return
- finished(operation)
-
- return wrapper
-
-@privileged
-def installPackage(package=None):
- if package:
- package = package.split(",")
- reinstall = package[0].endswith(".pisi")
- pisi.api.install(package, ignore_file_conflicts=True, reinstall=reinstall)
-
-@privileged
-def reinstallPackage(package=None):
- if package:
- package = package.split(",")
- pisi.api.install(package, ignore_file_conflicts=True, reinstall=True)
-
-@privileged
-def updatePackage(package=None):
- if package is None:
- package = []
- else:
- package = package.split(",")
- pisi.api.upgrade(package)
-
-@privileged
-def removePackage(package=None):
- if package:
- package = package.split(",")
- pisi.api.remove(package)
-
-@privileged
-def updateRepository(repository=None):
- if repository:
- pisi.api.update_repo(repository)
-
-@privileged
-def updateAllRepositories():
- repos = pisi.db.repodb.RepoDB().list_repos()
- for repo in repos:
- try:
- pisi.api.update_repo(repo)
- except pisi.db.repodb.RepoError, e:
- notify("System.Manager", "error", str(e))
-
-@privileged
-def addRepository(name=None,uri=None):
- if name and uri:
- pisi.api.add_repo(name,uri)
-
-@privileged
-def removeRepository(repo=None):
- if repo:
- pisi.api.remove_repo(repo)
-
-@privileged
-def setRepoActivities(repos=None):
- if repos:
- for repo, active in repos.items():
- pisi.api.set_repo_activity(repo, active)
-
-@privileged
-def setRepositories(repos):
- oldRepos = pisi.db.repodb.RepoDB().list_repos(only_active=False)
-
- for repo in oldRepos:
- pisi.api.remove_repo(repo)
-
- for repo in repos:
- pisi.api.add_repo(repo[0], repo[1])
-
-@privileged
-# ex: setConfig("general", "bandwidth_limit", "30")
-def setConfig(category, name, value):
- config = pisi.configfile.ConfigurationFile("/etc/pisi/pisi.conf")
- config.set(category, name, value)
-
- config.write_config()
-
-@privileged
-def setCache(enabled, limit):
- config = pisi.configfile.ConfigurationFile("/etc/pisi/pisi.conf")
- config.set("general", "package_cache", str(enabled))
- config.set("general", "package_cache_limit", str(limit))
-
- config.write_config()
-
-@privileged
-def takeSnapshot():
- pisi.api.snapshot()
-
-@privileged
-def takeBack(operation):
- pisi.api.takeback(operation)
-
-@privileged
-def clearCache(cacheDir, limit):
- pisi.api.clearCache(int(limit) == 0)
-
-def __checkCacheLimits():
- cached_pkgs_dir = "/var/cache/pisi/packages"
- config = pisi.configfile.ConfigurationFile("/etc/pisi/pisi.conf")
- cache = config.get("general", "package_cache")
- if cache == "True":
- limit = config.get("general", "package_cache_limit")
-
- # If PackageCache is used and limit is 0. It means limitless.
- if limit and int(limit) != 0:
- clearCache(cached_pkgs_dir, int(limit) * 1024 * 1024)
- elif cache == "False":
- clearCache(cached_pkgs_dir, 0)
View
9 pisi/comar/package.py
@@ -1,9 +0,0 @@
-#/usr/bin/python
-
-import os
-
-def postInstall(fromVersion, fromRelease, toVersion, toRelease):
- if not os.path.exists("/var/lib/pisi/package"):
- os.system("mkdir /var/lib/pisi/package")
- os.system("mv /var/lib/pisi/* /var/lib/pisi/package/")
- os.system("mv /var/lib/pisi/package/scripts /var/lib/pisi/")
View
14 pisi/files/disable-sandbox-for-emul32-builds.patch
@@ -1,14 +0,0 @@
-Index: pisi-2.4_alpha4/pisi/operations/build.py
-===================================================================
---- pisi-2.4_alpha4.orig/pisi/operations/build.py
-+++ pisi-2.4_alpha4/pisi/operations/build.py
-@@ -686,7 +686,8 @@ class Builder:
-
- if func in self.actionLocals:
- if ctx.get_option('ignore_sandbox') or \
-- not ctx.config.values.build.enablesandbox:
-+ not ctx.config.values.build.enablesandbox or \
-+ "emul32" in self.build_type:
- self.actionLocals[func]()
- else:
- import catbox
View
293 pisi/files/kerneltools.py
@@ -1,293 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2009-2010 TUBITAK/UEKAE
-#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free
-# Software Foundation; either version 2 of the License, or (at your option)
-# any later version.
-#
-# Please read the COPYING file.
-
-# Standard Python Modules
-import os
-import re
-import shutil
-
-import gettext
-__trans = gettext.translation('pisi', fallback=True)
-_ = __trans.ugettext
-
-# Pisi Modules
-import pisi.context as ctx
-
-# ActionsAPI Modules
-import pisi.actionsapi
-import pisi.actionsapi.get as get
-import pisi.actionsapi.autotools as autotools
-import pisi.actionsapi.pisitools as pisitools
-import pisi.actionsapi.shelltools as shelltools
-
-
-class ConfigureError(pisi.actionsapi.Error):
- def __init__(self, value=''):
- pisi.actionsapi.Error.__init__(self, value)
- self.value = value
- ctx.ui.error(value)
-
-# Internal helpers
-
-def __getAllSupportedFlavours():
- if os.path.exists("/etc/kernel"):
- return os.listdir("/etc/kernel")
-
-#################
-# Other helpers #
-#################
-
-def __getFlavour():
- try:
- flavour = get.srcNAME().split("kernel-")[1]
- except IndexError:
- return ""
- else:
- return flavour
-
-def __getModuleFlavour():
- for fl in [_f for _f in __getAllSupportedFlavours() if "-" in _f]:
- try:
- if fl.split("-")[1] == get.srcNAME().split("-")[1]:
- return fl
- except IndexError:
- # the package is not a module, may be a userspace application
- # needing the kernel sources/headers for only reference.
- pass
-
- return "kernel"
-
-def __getKernelARCH():
- """i386 is relevant for our i686 architecture."""
- return get.ARCH().replace("i686", "i386")
-
-def __getSuffix():
- """Read and return the value read from .suffix file."""
- suffix = get.srcVERSION()
- if __getFlavour():
- suffix += "-%s" % __getFlavour()
- return suffix
-
-def __getExtraVersion():
- extraversion = ""
- try:
- # if successful, this is something like:
- # .1 for 2.6.30.1
- # _rc8 for 2.6.30_rc8
- extraversion = re.split("2.[0-9].[0-9]{2}([._].*)", get.srcVERSION())[1]
- except IndexError:
- # e.g. if version == 2.6.30
- pass
-
- # Append pae, default, rt, etc. to the extraversion if available
- if __getFlavour():
- extraversion += "-%s" % __getFlavour()
-
- return extraversion
-
-#######################
-# Configuration stuff #
-#######################
-
-def getKernelVersion(flavour=None):
- # Returns the KVER information to use with external module compilation
- # This is something like 2.6.30_rc7-119 which will be appended to /lib/modules.
- # if flavour==None, it will return the KVER in the /etc/kernel/kernel file else,
- # /etc/kernel/<flavour>.
- # If it fails, it will return the running kernel version.
-
- # Try to detect module flavour
- if not flavour:
- flavour = __getModuleFlavour()
-
- kverfile = os.path.join("/etc/kernel", flavour)
-
- if os.path.exists(kverfile):
- return open(kverfile, "r").read().strip()
- else:
- # Fail
- raise ConfigureError(_("Can't find kernel version information file %s.") % kverfile)
-
-def configure():
- # Copy the relevant configuration file
- shutil.copy("configs/kernel-%s-config" % get.ARCH(), ".config")
-
- # Set EXTRAVERSION
- pisitools.dosed("Makefile", "EXTRAVERSION =.*", "EXTRAVERSION = %s" % __getExtraVersion())
-
- # Configure the kernel interactively if
- # configuration contains new options
- autotools.make("ARCH=%s oldconfig" % __getKernelARCH())
-
- # Check configuration with listnewconfig
- try:
- autotools.make("ARCH=%s listnewconfig" % __getKernelARCH())
- except:
- pass
-
-###################################
-# Building and installation stuff #
-###################################
-
-def dumpVersion():
- # Writes the specific kernel version into /etc/kernel
- destination = os.path.join(get.installDIR(), "etc/kernel/")
- if not os.path.exists(destination):
- os.makedirs(destination)
-
- open(os.path.join(destination, get.srcNAME()), "w").write(__getSuffix())
-
-
-def build(debugSymbols=False):
- extra_config = []
- if debugSymbols:
- # Enable debugging symbols (-g -gdwarf2)
- extra_config.append("CONFIG_DEBUG_INFO=y")
-
- autotools.make("ARCH=%s %s" % (__getKernelARCH(), " ".join(extra_config)))
-
-
-def install():
- suffix = __getSuffix()
-
- # Dump kernel version under /etc/kernel
- dumpVersion()
-
- # Install kernel image
- pisitools.insinto("/boot/", "arch/x86/boot/bzImage", "kernel-%s" % suffix)
-
- # Install the modules
- # mod-fw= avoids firmwares from installing
- # Override DEPMOD= to not call depmod as it will be called
- # during module-init-tools' package handler
- autotools.rawInstall("INSTALL_MOD_PATH=%s/" % get.installDIR(),
- "DEPMOD=/bin/true modules_install mod-fw=")
-
- # Remove symlinks first
- pisitools.remove("/lib/modules/%s/source" % suffix)
- pisitools.remove("/lib/modules/%s/build" % suffix)
-
- # Install Module.symvers and System.map here too
- shutil.copy("Module.symvers", "%s/lib/modules/%s/" % (get.installDIR(), suffix))
- shutil.copy("System.map", "%s/lib/modules/%s/" % (get.installDIR(), suffix))
-
- # Create extra/ and updates/ subdirectories
- for _dir in ("extra", "updates"):
- pisitools.dodir("/lib/modules/%s/%s" % (suffix, _dir))
-
-
-def installHeaders(extraHeaders=None):
- """ Install the files needed to build out-of-tree kernel modules. """
-
- extras = ["drivers/media/dvb/dvb-core",
- "drivers/media/dvb/frontends",
- "drivers/media/video"]
-
- if extraHeaders:
- extras.extend(extraHeaders)
-
- pruned = ["include", "scripts", "Documentation"]
- wanted = ["Makefile*", "Kconfig*", "Kbuild*", "*.sh", "*.pl", "*.lds"]
-
- suffix = __getSuffix()
- headersDirectoryName = "usr/src/linux-headers-%s" % suffix
-
- # Get the destination directory for header installation
- destination = os.path.join(get.installDIR(), headersDirectoryName)
- shelltools.makedirs(destination)
-
- # First create the skel
- find_cmd = "find . -path %s -prune -o -type f \( -name %s \) -print" % \
- (
- " -prune -o -path ".join(["'./%s/*'" % l for l in pruned]),
- " -o -name ".join(["'%s'" % k for k in wanted])
- ) + " | cpio -pVd --preserve-modification-time %s" % destination
-
- shelltools.system(find_cmd)
-
- # Install additional headers
- for headers in extras:
- shelltools.system("cp -a %s/*.h %s/%s" % (headers, destination, headers))
-
- # Install remaining headers
- shelltools.system("cp -a %s %s" % (" ".join(pruned), destination))
-
- # Cleanup directories
- shelltools.system("rm -rf %s/scripts/*.o" % destination)
- shelltools.system("rm -rf %s/scripts/*/*.o" % destination)
- shelltools.system("rm -rf %s/Documentation/DocBook" % destination)
-
- # Finally copy the include directories found in arch/
- shelltools.system("(find arch -name include -type d -print | \
- xargs -n1 -i: find : -type f) | \
- cpio -pd --preserve-modification-time %s" % destination)
-
- # Copy Modules.symvers and System.map
- shutil.copy("Module.symvers", "%s/" % destination)
- shutil.copy("System.map", "%s/" % destination)
-
- # Copy .config file which will be needed by some external modules
- shutil.copy(".config", "%s/" % destination)
-
- # Settle the correct build symlink to this headers
- pisitools.dosym("/%s" % headersDirectoryName, "/lib/modules/%s/build" % suffix)
- pisitools.dosym("build", "/lib/modules/%s/source" % suffix)
-
-
-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=%s INSTALL_HDR_PATH=%s/install" % (headers_tmp, headers_tmp)
-
- # Cleanup temporary header directory
- shelltools.system("rm -rf %s" % headers_tmp)
-
- # Create directories
- shelltools.makedirs(headers_tmp)
- shelltools.makedirs(headers_dir)
-
-
-
- #mkdir -p $kerneldir/arch/${ARCH}/include/generated/
- #cp -fR arch/${ARCH}/include/generated/* $kerneldir/arch/${ARCH}/include/generated/ get.ARCH()
-
- #Look http://patches.openembedded.org/patch/33433/
- cpy_src="%s/linux-*.*.*/arch/x86/include/generated" % (get.workDIR())
- cpy_tgt="%s/arch/x86/include" % (headers_tmp)
- shelltools.makedirs(cpy_tgt)
-
- copy_cmd ="cp -Rv %s %s " % (cpy_src, cpy_tgt)
-
- shelltools.system(copy_cmd)
-
- # make defconfig and install the headers
- autotools.make("%s defconfig" % 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 %s" % headers_dir)
-
- # Remove sound/ directory which is installed by alsa-headers
- shelltools.system("rm -rf %s/sound" % headers_dir)
-
- # Remove possible excludes given by actions.py
- if excludes:
- shelltools.system("rm -rf %s" % " ".join(["%s/%s" % (headers_dir, exc.strip("/")) for exc in excludes]))
-
- shelltools.cd(oldwd)
-
- # Remove tmp directory
- shelltools.system("rm -rf %s" % headers_tmp)
View
194 pisi/files/mirrors.conf
@@ -1,194 +0,0 @@
-apache http://www.eu.apache.org/dist/
-apache http://www.apache.org/dist/
-apache http://apache.planetmirror.com.au/dist/
-apache http://gd.tuwien.ac.at/infosys/servers/http/apache/dist/
-apache http://apache.fastorama.com/dist/
-apache http://mir2.ovh.net/ftp.apache.org/dist/
-apache ftp://ftp.planetmirror.com/pub/apache/dist/
-apache ftp://gd.tuwien.ac.at/pub/infosys/servers/http/apache/dist/
-apache ftp://ftp.fastorama.com/mirrors/ftp.apache.org/dist/
-berlios http://download.berlios.de/
-berlios http://download2.berlios.de/
-cpan http://search.cpan.org/CPAN/
-cpan http://cpan.ulak.net.tr/
-cpan http://www.perl.com/CPAN/
-cpan http://mirrors.jtlnet.com/CPAN/
-cpan ftp://ftp.ncsu.edu/pub/mirror/CPAN/
-cpan ftp://ftp.duke.edu/pub/perl/
-gnome http://ftp.gnome.org/pub/GNOME/sources
-gnome http://ftp.rpmfind.net/linux/gnome.org/sources/
-gnome http://ftp.unina.it/pub/linux/GNOME/sources/
-gnome http://ftp.acc.umu.se/pub/GNOME/sources/
-gnome http://ftp.belnet.be/mirror/ftp.gnome.org/sources/
-gnome ftp://ftp.cse.buffalo.edu/pub/Gnome/sources/
-gnu http://ftp.gnu.org/gnu/
-gnu ftp://ftp.gnu.org/gnu/
-gnu http://ftp.club.cc.cmu.edu/pub/gnu/
-gnu http://mirrors.usc.edu/pub/gnu/
-gnu http://mirrors.kernel.org/gnu/
-gnu ftp://ftp.club.cc.cmu.edu/gnu/
-gnu ftp://aeneas.mit.edu/pub/gnu/
-gnu ftp://ftp.cse.ohio-state.edu/mirror/gnu/
-gnu ftp://ftp.cs.tu-berlin.de/pub/gnu/
-gnu ftp://mirrors.kernel.org/gnu/
-gnu ftp://ftp.cs.ubc.ca/pub/gnu/
-gnu ftp://ftp.math.uni-bremen.de/pub/gnu/
-gnu ftp://ftp.informatik.rwth-aachen.de/pub/gnu/
-gnu ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.gnu.org/
-gnu ftp://ftp.mirror.ac.uk/sites/ftp.gnu.org/gnu/
-gnu ftp://sunsite.cnlab-switch.ch/mirror/gnu/
-gnu http://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.gnu.org/
-gnu ftp://ftp.stacken.kth.se/pub/gnu/
-gnu ftp://ftp.isy.liu.se/pub/gnu/
-gnu ftp://ftp.task.gda.pl/pub/gnu/
-gnu ftp://ftp.nluug.nl/pub/gnu/
-gnu ftp://ftp.funet.fi/pub/gnu/prep/
-gnu ftp://sunsite.icm.edu.pl/pub/gnu/
-gnu ftp://ftp.freenet.de/pub/mirrors.ibiblio.org/pub/mirrors/gnu/ftp/gnu/
-gnu ftp://ftp.mirror.nl/pub/mirror/gnu/
-gnu ftp://ftp.esat.net/pub/gnu/
-gnu ftp://ftp.mcc.ac.uk/pub/gnu/
-gnu ftp://ftp.cise.ufl.edu/pub/mirrors/GNU/
-gnu ftp://ftp.uninett.no/pub/gnu/
-gnu ftp://ftp.duth.gr/pub/gnu/
-gnu ftp://sunsite.dk/mirrors/gnu/
-gnu http://mirrors.sunsite.dk/gnu/
-gnu ftp://ftp.etsimo.uniovi.es/pub/gnu/
-gnu ftp://ftp.sunet.se/pub/gnu/
-gnu http://ftp.roedu.net/mirrors/gnu.org/
-gnu ftp://ftp.forthnet.gr/pub/gnu/
-gnu ftp://ftp.univie.ac.at/packages/gnu/
-gnu ftp://core.ring.gr.jp/pub/GNU/
-gnu ftp://ftp.cs.cuhk.edu.hk/pub/gnu/gnu/
-gnu ftp://tron.um.u-tokyo.ac.jp/pub/GNU/
-gnu http://ftp.azc.uam.mx/mirrors/gnu/
-gnu ftp://ftp.kaist.ac.kr/gnu/
-gnu ftp://ftp.chg.ru/pub/gnu/
-gnu ftp://ftp.inf.utfsm.cl/pub/gnu/
-gnu ftp://ftp.arnes.si/software/gnu/
-gnu ftp://gnu.cs.lewisu.edu/gnu/
-gnu http://ftp.wayne.edu/pub/gnu/
-gnu ftp://ftp.wayne.edu/pub/gnu/
-gnu http://kambing.vlsm.org/gnu/
-gnu http://gd.tuwien.ac.at/gnu/gnusrc/
-kde ftp://mirror.comu.edu.tr/kde/
-kde ftp://ftp.kde.org/pub/kde/
-kde http://chernabog.cc.vt.edu/pub/projects/kde/
-kde http://ftp.gtlib.cc.gatech.edu/pub/kde/
-kde ftp://chernabog.cc.vt.edu/pub/projects/kde/
-kde ftp://ftp.gtlib.cc.gatech.edu/pub/kde/
-kde ftp://carroll.aset.psu.edu/pub/kde/
-kde ftp://ftp.oregonstate.edu/pub/kde/
-kde ftp://ftp.ussg.iu.edu/pub/kde/
-kde http://mirrors.isc.org/pub/kde/
-kde http://ftp.belnet.be/packages/kde/
-kde http://ftp.fi.muni.cz/pub/kde/
-kde http://ftp.funet.fi/pub/mirrors/ftp.kde.org/pub/kde/
-kde http://ftp.funet.fi/pub/mirrors/ftp.kde.org/pub/kde/
-kde http://ftp.rhnet.is/pub/kde/
-kde http://ftp-stud.fht-esslingen.de/Mirrors/ftp.kde.org/pub/kde/
-kde http://ftp.tiscali.nl/kde/
-kde http://mirrors.isc.org/pub/kde/
-kde http://sunsite.icm.edu.pl/pub/unix/kde/
-kde ftp://ftp.belnet.be/packages/kde/
-kde ftp://ftp.estpak.ee/pub/kde/
-kde ftp://ftp.fu-berlin.de/pub/unix/X11/gui/kde/
-kde ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/ftp.kde.org/pub/kde/
-kde http://ftp.du.se/pub/mirrors/kde/
-kde ftp://ftp.du.se/pub/mirrors/kde/
-kde ftp://ftp.funet.fi/pub/mirrors/ftp.kde.org/pub/kde/
-kde ftp://ftp.mirrorservice.org/sites/ftp.kde.org/pub/kde/
-kde ftp://ftp.rhnet.is/pub/kde/
-kde ftp://ftp.sunet.se/pub/kde/
-kde ftp://ftp.tu-chemnitz.de/pub/X11/kde/
-kde ftp://ftp.tuniv.szczecin.pl/pub/kde/
-kde http://ftp.esat.net/mirrors/ftp.kde.org/pub/kde/
-kde http://ftp.kde.org.yu/kde/
-kde http://ftp.ring.gr.jp/pub/X/kde/
-kde http://ftp.tuniv.szczecin.pl/pub/kde/
-kde http://ftp.unina.it/pub/Linux/kde/
-kde http://mi.mirror.garr.it/mirrors/KDE/
-kde http://mirrors.dotsrc.org/kde/
-kde ftp://ftp.duth.gr/pub/kde/
-kde ftp://ftp.kde.org.yu/kde/
-kde ftp://ftp.pbone.net/mirror/ftp.kde.org/pub/kde/
-kde ftp://ftp.rz.uni-wuerzburg.de/pub/unix/kde/
-kde ftp://ftp.unina.it/pub/Linux/kde/
-kde ftp://mirrors.dotsrc.org/kde/
-kde ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/kde/
-kde http://ftp.duth.gr/pub/kde/
-kde http://ftp.hol.gr/mirror/kde/
-kde http://ftp.sunet.se/pub/kde/
-kde http://ring.asahi-net.or.jp/pub/X/kde/
-kde ftp://ftp.esat.net/mirrors/ftp.kde.org/pub/kde/
-kde ftp://ftp.no.kde.org/pub/kde/
-kde ftp://ftp.tiscali.nl/pub/mirrors/kde/
-kde http://ftp.heanet.ie/mirrors/ftp.kde.org/
-kde http://ftp.scarlet.be/pub/kde/
-kde ftp://ftp.solnet.ch/mirror/KDE/
-kde ftp://ftp.heanet.ie/mirrors/ftp.kde.org/
-kde ftp://ftp.iasi.roedu.net/pub/mirrors/ftp.kde.org/
-kde ftp://ftp.xcp.kiev.ua/ftp.kde.org/
-kde ftp://ring.asahi-net.or.jp/pub/X/kde/
-kde http://ftp.yz.yamagata-u.ac.jp/pub/X11/wm/kde/
-kde ftp://ftp.scarlet.be/pub/kde/
-kde ftp://sunsite.icm.edu.pl/pub/unix/kde/
-kde http://www.mirrorservice.org/sites/ftp.kde.org/pub/kde/
-kde ftp://ftp.hol.gr/pub/mirror/kde/
-kde http://gd.tuwien.ac.at/kde/
-kde ftp://ftp.ntua.gr/pub/X11/kde/
-kde http://ftp.ntua.gr/pub/X11/kde/
-kde ftp://ftp.fi.muni.cz/pub/kde/
-kde ftp://ftp.planetmirror.com/pub/kde/
-kde http://public.planetmirror.com/pub/kde/
-kde ftp://ftp.yz.yamagata-u.ac.jp/pub/X11/wm/kde/
-kde ftp://ftp.ring.gr.jp/pub/X/kde/
-kde ftp://kde.paralax.org/kde/
-kde http://ftp.kddlabs.co.jp/pub/X11/kde/
-kde ftp://ftp.kddlabs.co.jp/pub/X11/kde/
-kde ftp://ftp.nectec.or.th/pub/linux-softwares/KDE/
-kde ftp://ftp.chg.ru/pub/kde/
-kde http://ftp.chg.ru/pub/kde/
-kde http://ftp.gwdg.de/pub/x11/kde/
-kde ftp://gd.tuwien.ac.at/kde/
-kde ftp://ftp.gwdg.de/pub/x11/kde/
-kde http://gd.tuwien.ac.at/kde/
-kde ftp://ftp.sayclub.com/pub/X/KDE/
-kde http://ftp.sayclub.com/pub/X/KDE/
-sourceforge http://heanet.dl.sourceforge.net/
-sourceforge http://hivelocity.dl.sourceforge.net/
-sourceforge http://garr.dl.sourceforge.net/
-sourceforge http://biznetnetworks.dl.sourceforge.net/
-sourceforge http://internap.dl.sourceforge.net/
-sourceforge http://internode.dl.sourceforge.net/
-sourceforge http://iweb.dl.sourceforge.net/
-sourceforge http://jaist.dl.sourceforge.net/
-sourceforge http://kent.dl.sourceforge.net/
-sourceforge http://mesh.dl.sourceforge.net/
-sourceforge http://nchc.dl.sourceforge.net/
-sourceforge http://nfsi.dl.sourceforge.net/
-sourceforge http://ovh.dl.sourceforge.net/
-sourceforge http://puzzle.dl.sourceforge.net/
-sourceforge http://softlayer.dl.sourceforge.net/
-sourceforge http://sunet.dl.sourceforge.net/
-sourceforge http://superb-east.dl.sourceforge.net/
-sourceforge http://superb-west.dl.sourceforge.net/
-sourceforge http://surfnet.dl.sourceforge.net/
-sourceforge http://switch.dl.sourceforge.net/
-sourceforge http://transact.dl.sourceforge.net/
-sourceforge http://ufpr.dl.sourceforge.net/
-sourceforge http://voxel.dl.sourceforge.net/
-sourceforge http://waix.dl.sourceforge.net/
-sourceforge http://easynews.dl.sourceforge.net/
-sourceforge http://optusnet.dl.sourceforge.net/
-sourceforge http://dfn.dl.sourceforge.net/
-sourceforge http://freefr.dl.sourceforge.net/
-xorg http://ftp.x.org/pub/
-xorg http://xorg.freedesktop.org/archive/
-xorg http://mirror.sg.depaul.edu/pub/x.org/
-xorg http://x.paracoda.com/pub/
-xorg http://x.hostingzero.com/
-xfce http://mocha.xfce.org/archive/
-xfce http://www.p0llux.be/xfce/
-xfce http://www.tx-us.xfce.org/archive/
-xfce http://www.ca-us.xfce.org/archive/
View
49 pisi/files/pisi.conf-i686
@@ -1,49 +0,0 @@
-[build]
-build_host = localhost
-# buildhelper = None
-commonflags = -mtune=atom -march=i686 -O2 -pipe -fomit-frame-pointer -fstack-protector -D_FORTIFY_SOURCE=2 -ggdb3 -funwind-tables -fasynchronous-unwind-tables
-cflags = %(commonflags)s
-cxxflags = %(commonflags)s
-host = i686-pc-linux-gnu
-cc = %(host)s-gcc
-cxx = %(host)s-g++
-compressionlevel = 1
-enableSandbox = True
-fallback = ftp://ftp.pardus.org.tr/pub/source/2011
-generateDebug = False
-jobs = -j5
-ldflags = -Wl,-O1 -Wl,-z,relro -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common
-ignored_build_types = emul32
-
-[directories]
-cache_root_dir = /var/cache/pisi
-archives_dir = %(cache_root_dir)s/archives
-cached_packages_dir = %(cache_root_dir)s/packages
-compiled_packages_dir = %(cache_root_dir)s/packages
-debug_packages_dir = %(cache_root_dir)s/packages-debug
-lib_dir = /var/lib/pisi
-history_dir = %(lib_dir)s/history
-index_dir = %(lib_dir)s/index
-info_dir = %(lib_dir)s/info
-kde_dir = /usr
-lock_dir = /var/lock/subsys
-log_dir = /var/log
-packages_dir = %(lib_dir)s/package
-qt_dir = /usr
-tmp_dir = /var/pisi
-
-[general]
-architecture = i686
-autoclean = False
-bandwidth_limit = 0
-destinationdirectory = /
-distribution = Pardus
-distribution_release = 2011
-distribution_id = p11
-# ftp_proxy = None
-# http_proxy = None
-# https_proxy = None
-ignore_delta = False
-ignore_safety = False
-package_cache = False
-package_cache_limit = 0
View
49 pisi/files/pisi.conf-x86_64
@@ -1,49 +0,0 @@
-[build]
-build_host = localhost
-# buildhelper = None
-commonflags = -mtune=generic -march=x86-64 -O2 -pipe -fomit-frame-pointer -fstack-protector -D_FORTIFY_SOURCE=2 -ggdb3 -funwind-tables -fasynchronous-unwind-tables
-cflags = %(commonflags)s
-cxxflags = %(commonflags)s
-host = x86_64-pc-linux-gnu
-cc = %(host)s-gcc
-cxx = %(host)s-g++
-compressionlevel = 1
-enableSandbox = True
-fallback = ftp://ftp.pardus.org.tr/pub/source/2011
-generateDebug = False
-jobs = -j5
-ldflags = -Wl,-O1 -Wl,-z,relro -Wl,--hash-style=gnu -Wl,--as-needed -Wl,--sort-common
-ignored_build_types = pae
-
-[directories]
-cache_root_dir = /var/cache/pisi
-archives_dir = %(cache_root_dir)s/archives
-cached_packages_dir = %(cache_root_dir)s/packages
-compiled_packages_dir = %(cache_root_dir)s/packages
-debug_packages_dir = %(cache_root_dir)s/packages-debug
-lib_dir = /var/lib/pisi
-history_dir = %(lib_dir)s/history
-index_dir = %(lib_dir)s/index
-info_dir = %(lib_dir)s/info
-kde_dir = /usr
-lock_dir = /var/lock/subsys
-log_dir = /var/log
-packages_dir = %(lib_dir)s/package
-qt_dir = /usr
-tmp_dir = /var/pisi
-
-[general]
-architecture = x86_64
-autoclean = False
-bandwidth_limit = 0
-destinationdirectory = /
-distribution = Pardus
-distribution_release = 2011
-distribution_id = p11
-# ftp_proxy = None
-# http_proxy = None
-# https_proxy = None
-ignore_delta = False
-ignore_safety = False
-package_cache = False
-package_cache_limit = 0
View
8 pisi/files/pisi.xml
@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
- <mime-type type="application/x-pisi">
- <comment>PiSi package</comment>
- <comment xml:lang="tr">PiSi paketi</comment>
- <glob pattern="*.pisi"/>
- </mime-type>
-</mime-info>
View
139 pisi/files/pkgconfig.py
@@ -1,139 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2011 TUBITAK/UEKAE
-#
-# This program is free software; you can redistribute it and/or modify it under
-# the terms of the GNU General Public License as published by the Free
-# Software Foundation; either version 2 of the License, or (at your option)
-# any later version.
-#
-# Please read the COPYING file.
-
-# Standart Python Modules
-import subprocess
-
-import gettext
-__trans = gettext.translation('pisi', fallback=True)
-_ = __trans.ugettext
-
-# PiSi Modules
-import pisi.context as ctx
-import pisi.actionsapi
-
-class PkgconfigError(pisi.actionsapi.Error):
- def __init__(self, value=''):
- pisi.actionsapi.Error.__init__(self, value)
- self.value = value
- ctx.ui.error(value)
-
-def getVariableForLibrary(library, variable):
- # Returns a specific variable provided in the library .pc file
- try:
- proc = subprocess.Popen(["pkg-config",
- "--variable=%s" % variable,
- "%s" % library],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- return_code = proc.wait()
- except OSError, exception:
- if exception.errno == 2:
- raise PkgconfigError(_("pkg-config is not installed on your system."))
- else:
- if return_code == 0 and proc.stdout:
- return proc.stdout.read().strip()
- else:
- # Command failed
- raise PkgconfigError(proc.stderr.read().strip())
-
-def getLibraryVersion(library):
- """Returns the module version provided in the library .pc file."""
- try:
- proc = subprocess.Popen(["pkg-config",
- "--modversion",
- library],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- return_code = proc.wait()
- except OSError, exception:
- if exception.errno == 2:
- raise PkgconfigError(_("pkg-config is not installed on your system."))
- else:
- if return_code == 0 and proc.stdout:
- return proc.stdout.read().strip()
- else:
- # Command failed
- raise PkgconfigError(proc.stderr.read().strip())
-
-def getLibraryCFLAGS(library):
- """Returns compiler flags for compiling with this library.
- Ex: -I/usr/include/nss"""
- try:
- proc = subprocess.Popen(["pkg-config",
- "--cflags",
- "%s" % library],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- return_code = proc.wait()
- except OSError, exception:
- if exception.errno == 2:
- raise PkgconfigError(_("pkg-config is not installed on your system."))
- else:
- if return_code == 0 and proc.stdout:
- return proc.stdout.read().strip()
- else:
- # Command failed
- raise PkgconfigError(proc.stderr.read().strip())
-
-def getLibraryLIBADD(library):
- """Returns linker flags for linking with this library.
- Ex: -lpng14"""
- try:
- proc = subprocess.Popen(["pkg-config",
- "--libs",
- "%s" % library],
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- return_code = proc.wait()
- except OSError, exception:
- if exception.errno == 2:
- raise PkgconfigError(_("pkg-config is not installed on your system."))
- else:
- if return_code == 0 and proc.stdout:
- return proc.stdout.read().strip()
- else:
- # Command failed
- raise PkgconfigError(proc.stderr.read().strip())
-
-def runManualCommand(*args):
- """Runs the given command and returns the output."""
- cmd = ["pkg-config"]
- cmd.extend(args)
- try:
- proc = subprocess.Popen(cmd,
- stdout=subprocess.PIPE,
- stderr=subprocess.PIPE)
- return_code = proc.wait()
- except OSError, exception:
- if exception.errno == 2:
- raise PkgconfigError(_("pkg-config is not installed on your system."))
- else:
- if return_code == 0 and proc.stdout:
- return proc.stdout.read().strip()
- else:
- # Command failed
- raise PkgconfigError(proc.stderr.read().strip())
-
-
-def libraryExists(library):
- """Returns True if the library provides a .pc file."""
- result = None
- try:
- result = subprocess.call(["pkg-config",
- "--exists",
- "%s" % library])
- except OSError, exception:
- if exception.errno == 2:
- raise PkgconfigError(_("pkg-config is not installed on your system."))
- else:
- return result == 0
-
View
42 pisi/files/sandbox.conf
@@ -1,42 +0,0 @@
-# This file contains valid path list for pisi sandbox
-# and used in the build process to constrain actions.py inside
-# the build directories
-
-# Paths like /tmp allow writing to /tmp2/lala
-# while /tmp/ only allows inside the /tmp directory
-# ~ at the beginning of the path is replaced by pisi user's home directory
-
-# Each package has its build directory (/var/pisi/pkgname) allowed by default
-# And ccache directory is automatically added when that feature is enabled
-# Any other extra path should be configured here
-
-# Generic system paths needed by almost all programs
-/tmp/
-/var/tmp/
-/var/run/utmp
-/dev/tty
-/dev/pts/
-/dev/pty
-/dev/null
-/dev/zero
-/dev/ptmx
-/dev/shm/
-/dev/full
-/proc/
-# stupid autoconf family needs /usr/lib/conftest* and /usr/lib/cf* for some conftest,
-# http://sources.gentoo.org/viewcvs.py/portage/trunk/sandbox/files/sandbox/sandbox.c also permits these
-/usr/lib/conftest
-/usr/lib/cf
-# every qt/KDE application check these
-~/.qt/.qt_plugins_3.3rc.lock
-~/.qt/qt_plugins_3.3rc.tmp
-~/.qt/.qtrc.lock
-~/.qt/.qt_designerrc.lock
-/usr/qt/3/etc/settings/.qt_plugins_3.3rc.lock
-/usr/qt/3/etc/settings/qt_plugins_3.3rc.tmp
-/usr/qt/3/etc/settings/qt_plugins_3.3rc
-/usr/qt/3/etc/settings/.qtrc.lock
-/usr/qt/3/etc/settings/.qt_designerrc.lock
-
-# FontConfig cache directory
-/var/cache/fontconfig
View
1,712 pisi/pspec.xml
0 additions, 1,712 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
9 pisi/translations.xml
@@ -1,9 +0,0 @@
-<?xml version="1.0" ?>
-<PISI>
- <Source>
- <Name>pisi</Name>
- <Summary xml:lang="tr">PİSİ Pardus'un paket yönetim sistemidir</Summary>
- <Description xml:lang="tr">PİSİ Python'da yazılmış modern bir paket yöneticisidir. Bazı ana özellikleri: Paket kaynakları XML ve python kullanılarak yazılır, bütün işlevleri kullanması kolay bir API ile sağlar ve düşük ve yüksek seviyeli paket yönetim işlevlerini birleştirir. </Description>
- <Description xml:lang="fr">PISI est gestionnaire de paquets moderne implémenté en Python.Ces principales fonctionnalités sont les suivantes : - Les paquets sources sont écrits en XML et en python - Implemente tout les fonctions à travers une API simple d'utilisation - Intègre aussi bien les fonctionnalités de bas niveaux que de haut niveau de gestion de paquets.</Description>
- </Source>
-</PISI>

0 comments on commit 87870d6

Please sign in to comment.
Something went wrong with that request. Please try again.