create core package
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/copyleft/gpl.txt.
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.configure("--sysconfdir=/etc \
|
||||
--with-zlib \
|
||||
--with-xz")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def check():
|
||||
autotools.make("check")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
if get.buildTYPE() == "emul32": return
|
||||
|
||||
pisitools.dosym("modprobe.d.5.gz","/usr/share/man/man5/modprobe.conf.5.gz")
|
||||
for sym in ["modinfo","insmod","rmmod","depmod","modprobe"]:
|
||||
pisitools.dosym("../usr/bin/kmod","/sbin/%s" % sym)
|
||||
pisitools.dosym("../usr/bin/kmod","/bin/lsmod")
|
||||
pisitools.makedirs("%s/etc/depmod.d" % get.installDIR())
|
||||
pisitools.makedirs("%s/etc/modprobe.d" % get.installDIR())
|
||||
pisitools.dodoc("NEWS", "README", "TODO", "COPYING")
|
||||
@@ -0,0 +1,247 @@
|
||||
import os
|
||||
import subprocess
|
||||
|
||||
from pardus.fileutils import FileLock
|
||||
|
||||
# Config
|
||||
|
||||
DIRECTORY_BLACKLIST = "/etc/modprobe.d"
|
||||
MODULES_DIR = "/lib/modules"
|
||||
MODULES_CONF = "/etc/modprobe.conf"
|
||||
MODULES_CONF_DIR = "/etc/modules.d"
|
||||
MODULES_AUTOLOAD = "/etc/modules.autoload.d/kernel-%s"
|
||||
MODULES_BLACKLIST = "/etc/modprobe.d/blacklist-compat"
|
||||
MODULES_COMAR_BLACKLIST = "/etc/modprobe.d/blacklist-comar"
|
||||
|
||||
TIMEOUT = 5.0
|
||||
|
||||
# l10n
|
||||
|
||||
FAIL_TIMEOUT = _({
|
||||
"en": "Request timed out. Try again later.",
|
||||
"tr": "Talep zaman aşımına uğradı. Daha sonra tekrar deneyin.",
|
||||
})
|
||||
|
||||
FAIL_VERSION = _({
|
||||
"en": "Invalid kernel version.",
|
||||
"tr": "Geçersiz çekirdek sürümü.",
|
||||
})
|
||||
|
||||
FAIL_PROBE = _({
|
||||
"en": "Unable to load module %s: %s",
|
||||
"tr": "%s modülü yüklenemedi: %s",
|
||||
})
|
||||
|
||||
FAIL_RMMOD = _({
|
||||
"en": "Unable to unload module %s: %s",
|
||||
"tr": "%s modülü kaldırılamadı: %s",
|
||||
})
|
||||
|
||||
FAIL_UPDATE = _({
|
||||
"en": "Unable to update modprobe.conf: %s",
|
||||
"tr": "modprobe.conf güncellenemedi: %s",
|
||||
})
|
||||
|
||||
# Utils
|
||||
|
||||
def majorVersion(kernel_version):
|
||||
"""Parses kernel version and returns major revision."""
|
||||
version = kernel_version.split(".")
|
||||
if len(version) < 2:
|
||||
fail(FAIL_VERSION)
|
||||
return ".".join(version[0:2])
|
||||
|
||||
class Lock:
|
||||
def __init__(self, _file, shared=False):
|
||||
lockfile = os.path.join(os.path.dirname(_file), ".%s" % os.path.basename(_file))
|
||||
try:
|
||||
self.lock = FileLock(_file)
|
||||
self.lock.lock(timeout=TIMEOUT, shared=shared)
|
||||
except IOError:
|
||||
fail(FAIL_TIMEOUT)
|
||||
|
||||
def release(self):
|
||||
self.lock.unlock()
|
||||
|
||||
def listConfig(_file, prefix=None):
|
||||
"""Parses given module configuration file and returns modules as a list."""
|
||||
lock = Lock(_file, shared=True)
|
||||
lines = []
|
||||
for line in file(_file):
|
||||
line = line.strip()
|
||||
if line and not line.startswith("#"):
|
||||
lines.append(line)
|
||||
lock.release()
|
||||
lines = [x.split("#")[0].strip() for x in lines]
|
||||
if prefix:
|
||||
lines = [x.replace(prefix, "") for x in lines if x.startswith(prefix)]
|
||||
return lines
|
||||
|
||||
def editConfig(_file, add=[], remove=[], prefix=None):
|
||||
"""Edits given module list file."""
|
||||
lock = Lock(_file, shared=False)
|
||||
newlines = []
|
||||
if os.path.exists(_file):
|
||||
for line in file(_file):
|
||||
module = line.strip()
|
||||
if prefix and prefix in module:
|
||||
module = module.split(prefix)[1]
|
||||
if module in remove:
|
||||
continue
|
||||
if module in add:
|
||||
newlines.append("Added through COMAR")
|
||||
newlines.append(module)
|
||||
add.remove(module)
|
||||
else:
|
||||
newlines.append(module)
|
||||
newlines.extend(add)
|
||||
if prefix:
|
||||
newlines = ["#Added through COMAR\n%s %s\n" % (prefix, x) for x in newlines if not x.startswith("#")]
|
||||
file(_file, "w").write("\n".join(newlines))
|
||||
lock.release()
|
||||
|
||||
# Boot.Modules methods
|
||||
|
||||
def listAvailable():
|
||||
"""Returns a list of available modules on the system."""
|
||||
modules = []
|
||||
kernel_version = os.uname()[2]
|
||||
path = os.path.join(MODULES_DIR, kernel_version)
|
||||
if os.path.exists(path):
|
||||
for root, dirs, files in os.walk(path):
|
||||
for _file in files:
|
||||
if _file.endswith(".ko"):
|
||||
modname = _file[:-3]
|
||||
modules.append(modname)
|
||||
return modules
|
||||
|
||||
def listLoaded():
|
||||
"""Returns loaded modules and their options."""
|
||||
# Get loaded modules
|
||||
modules = {}
|
||||
for module in file("/proc/modules"):
|
||||
modname = module.split()[0]
|
||||
modules[modname] = ""
|
||||
# Get options from modprobe.conf
|
||||
lock = Lock(MODULES_CONF, shared=True)
|
||||
for line in file(MODULES_CONF):
|
||||
line = line.strip()
|
||||
if line.startswith("options"):
|
||||
try:
|
||||
command, modname, arguments = line.split(" ", 2)
|
||||
except ValueError:
|
||||
continue
|
||||
if modname in modules:
|
||||
modules[modname] = arguments
|
||||
lock.release()
|
||||
# Build (module: options) list
|
||||
list_modules = {}
|
||||
for module, options in modules.iteritems():
|
||||
list_modules[module] = options
|
||||
return list_modules
|
||||
|
||||
def setOptions(module, options=""):
|
||||
"""Sets module options."""
|
||||
# Lock modprobe.conf
|
||||
lock = Lock(MODULES_CONF, shared=False)
|
||||
module_found = False
|
||||
# Search for module's config file
|
||||
for _file in os.listdir(MODULES_CONF_DIR):
|
||||
_file = os.path.join(MODULES_CONF_DIR, _file)
|
||||
newlines = []
|
||||
for line in file(_file):
|
||||
line = line.strip()
|
||||
if line.startswith("options %s " % module):
|
||||
if options:
|
||||
newlines.append("options %s %s" % (module, options))
|
||||
module_found = True
|
||||
else:
|
||||
newlines.append(line)
|
||||
# Update config file
|
||||
if module_found:
|
||||
file(_file, "w").write("\n".join(newlines))
|
||||
break
|
||||
# Append module config to "/etc/modules.d/other"
|
||||
if not module_found:
|
||||
config_file = os.path.join(MODULES_CONF_DIR, "other")
|
||||
file(config_file, "a").write("options %s %s" % (module, options))
|
||||
# Release lock on modprobe.conf
|
||||
lock.release()
|
||||
# Update modprobe.conf
|
||||
updateModules()
|
||||
|
||||
def load(module, options=""):
|
||||
"""Loads given module with options."""
|
||||
cmd = ["/sbin/modprobe", module]
|
||||
if options:
|
||||
cmd.extend(options.split())
|
||||
pipe = subprocess.Popen(cmd, stderr=subprocess.PIPE)
|
||||
if pipe.wait() != 0:
|
||||
fail(FAIL_PROBE % (module, pipe.stderr.read()))
|
||||
|
||||
def unload(module):
|
||||
"""Unloads given module name."""
|
||||
cmd = ["/sbin/rmmod", module]
|
||||
pipe = subprocess.Popen(cmd, stderr=subprocess.PIPE)
|
||||
if pipe.wait() != 0:
|
||||
fail(FAIL_RMMOD % (module, pipe.stderr.read()))
|
||||
|
||||
def listAutoload(kernel_version):
|
||||
"""Lists specified kernel's autoload list."""
|
||||
major_release = majorVersion(kernel_version)
|
||||
modules_autoload = MODULES_AUTOLOAD % major_release
|
||||
modules = []
|
||||
if os.path.exists(modules_autoload):
|
||||
modules = listConfig(modules_autoload)
|
||||
else:
|
||||
fail(FAIL_VERSION)
|
||||
return modules
|
||||
|
||||
def addAutoload(module, kernel_version):
|
||||
"""Adds module to specified kernel's autoload list."""
|
||||
major_release = majorVersion(kernel_version)
|
||||
modules_autoload = MODULES_AUTOLOAD % major_release
|
||||
editConfig(modules_autoload, add=[module])
|
||||
|
||||
def removeAutoload(module, kernel_version):
|
||||
"""Removes module from specified kernel's autoload list."""
|
||||
major_release = majorVersion(kernel_version)
|
||||
modules_autoload = MODULES_AUTOLOAD % major_release
|
||||
if os.path.exists(modules_autoload):
|
||||
editConfig(modules_autoload, remove=[module])
|
||||
else:
|
||||
fail(FAIL_VERSION)
|
||||
|
||||
def listBlacklist():
|
||||
"""Lists blacklisted modules."""
|
||||
modules = []
|
||||
if os.path.exists(DIRECTORY_BLACKLIST):
|
||||
for f in os.listdir(DIRECTORY_BLACKLIST):
|
||||
modules.extend(listConfig(os.path.join(DIRECTORY_BLACKLIST, f), "blacklist "))
|
||||
|
||||
# Make the list unique as there may be some .newconfig in the directory
|
||||
return list(set(modules))
|
||||
|
||||
def addBlacklist(module):
|
||||
"""Adds a module to blacklist."""
|
||||
editConfig(MODULES_BLACKLIST, add=[module], prefix="blacklist ")
|
||||
|
||||
def removeBlacklist(module):
|
||||
"""Removes module from blacklist."""
|
||||
editConfig(MODULES_BLACKLIST, remove=[module], prefix="blacklist ")
|
||||
|
||||
def updateModules(kernel_version=None):
|
||||
"""Updates modprobe.conf"""
|
||||
# Lock modprobe.conf
|
||||
lock = Lock(MODULES_CONF, shared=False)
|
||||
# Run update-modules
|
||||
pipe = subprocess.Popen(["/sbin/update-modules"], stderr=subprocess.PIPE)
|
||||
reply = pipe.wait()
|
||||
# Release lock on modprobe.conf
|
||||
lock.release()
|
||||
# Return error message on failure
|
||||
if reply != 0:
|
||||
fail(FAIL_UPDATE % pipe.stderr.read())
|
||||
# Run depmod if necessary
|
||||
if kernel_version:
|
||||
subprocess.call(["/sbin/depmod", "-a", kernel_version])
|
||||
@@ -0,0 +1,22 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import piksemel
|
||||
import subprocess
|
||||
|
||||
def domodules(filepath):
|
||||
doc = piksemel.parse(filepath)
|
||||
for item in doc.tags("File"):
|
||||
path = item.getTagData("Path")
|
||||
if path.startswith("lib/modules/"):
|
||||
kernelVersion = path.split("/")[2]
|
||||
subprocess.call(["/sbin/depmod", "-a", kernelVersion])
|
||||
return
|
||||
|
||||
def setupPackage(metapath, filepath):
|
||||
domodules(filepath)
|
||||
|
||||
def cleanupPackage(metapath, filepath):
|
||||
pass
|
||||
|
||||
def postCleanupPackage(metapath, filepath):
|
||||
domodules(filepath)
|
||||
@@ -0,0 +1,14 @@
|
||||
# Blacklist the old firewire stack as it's unmaintained
|
||||
# See https://ieee1394.wiki.kernel.org/index.php/Juju_Migration
|
||||
|
||||
blacklist sbp2
|
||||
blacklist dv1394
|
||||
blacklist raw1394
|
||||
blacklist eth1394
|
||||
blacklist ohci1394
|
||||
blacklist video1394
|
||||
|
||||
# These are coming from the new default stack (CONFIG_FIREWIRE)
|
||||
#blacklist firewire-ohci
|
||||
#blacklist firewire-sbp2
|
||||
#blacklist firewire-net
|
||||
@@ -0,0 +1,33 @@
|
||||
# Framebuffer drivers are generally buggy and poorly-supported, and cause
|
||||
# suspend failures, kernel panics and general mayhem. For this reason we
|
||||
# never load them automatically.
|
||||
blacklist aty128fb
|
||||
blacklist atyfb
|
||||
blacklist radeonfb
|
||||
blacklist cirrusfb
|
||||
blacklist cyber2000fb
|
||||
blacklist cyblafb
|
||||
blacklist gx1fb
|
||||
blacklist hgafb
|
||||
blacklist i2c-matroxfb
|
||||
blacklist i810fb
|
||||
blacklist intelfb
|
||||
blacklist kyrofb
|
||||
blacklist lxfb
|
||||
blacklist matroxfb_base
|
||||
blacklist neofb
|
||||
blacklist nvidiafb
|
||||
blacklist pm2fb
|
||||
blacklist rivafb
|
||||
blacklist s1d13xxxfb
|
||||
blacklist savagefb
|
||||
blacklist sisfb
|
||||
blacklist sstfb
|
||||
blacklist tdfxfb
|
||||
blacklist tridentfb
|
||||
blacklist vesafb
|
||||
blacklist virgefb
|
||||
blacklist vfb
|
||||
blacklist vga16fb
|
||||
blacklist viafb
|
||||
blacklist vt8623fb
|
||||
@@ -0,0 +1,50 @@
|
||||
# Watchdog drivers should not be loaded automatically, but only if a
|
||||
# watchdog daemon is installed.
|
||||
blacklist acquirewdt
|
||||
blacklist advantechwdt
|
||||
blacklist alim1535_wdt
|
||||
blacklist alim7101_wdt
|
||||
blacklist booke_wdt
|
||||
blacklist cpu5wdt
|
||||
blacklist eurotechwdt
|
||||
blacklist i6300esb
|
||||
blacklist i8xx_tco
|
||||
blacklist ib700wdt
|
||||
blacklist ibmasr
|
||||
blacklist indydog
|
||||
blacklist iTCO_wdt
|
||||
blacklist it8712f_wdt
|
||||
blacklist it87_wdt
|
||||
blacklist ixp2000_wdt
|
||||
blacklist ixp4xx_wdt
|
||||
blacklist machzwd
|
||||
blacklist mixcomwd
|
||||
blacklist mpc8xx_wdt
|
||||
blacklist mpcore_wdt
|
||||
blacklist mv64x60_wdt
|
||||
blacklist pc87413_wdt
|
||||
blacklist pcwd
|
||||
blacklist pcwd_pci
|
||||
blacklist pcwd_usb
|
||||
blacklist s3c2410_wdt
|
||||
blacklist sa1100_wdt
|
||||
blacklist sbc60xxwdt
|
||||
blacklist sbc7240_wdt
|
||||
blacklist sb8360
|
||||
blacklist sc1200wdt
|
||||
blacklist sc520_wdt
|
||||
blacklist sch311_wdt
|
||||
blacklist scx200_wdt
|
||||
blacklist shwdt
|
||||
blacklist smsc37b787_wdt
|
||||
blacklist softdog
|
||||
blacklist twl4030_wdt
|
||||
blacklist w83627hf_wdt
|
||||
blacklist w83697hf_wdt
|
||||
blacklist w83697ug_wdt
|
||||
blacklist w83877f_wdt
|
||||
blacklist w83977f_wdt
|
||||
blacklist wafer5823wdt
|
||||
blacklist wdt
|
||||
blacklist wdt_pci
|
||||
blacklist wm8350_wdt
|
||||
@@ -0,0 +1,44 @@
|
||||
# This file lists those modules which we don't want to be loaded by
|
||||
# alias expansion, usually so some other driver will be loaded for the
|
||||
# device instead.
|
||||
#
|
||||
# Syntax: blacklist driver_name
|
||||
#
|
||||
# on a line. Other lines are ignored.
|
||||
#
|
||||
# Merged Ubuntu, Redhat lists together, 02.03.2009
|
||||
# Last updated on 14-06-2010
|
||||
|
||||
# ISDN - see Redhat bugs 154799, 159068
|
||||
# Those are not shipped in Pisi Linux
|
||||
# blacklist hisax
|
||||
# blacklist hisax_fcpcipnp
|
||||
|
||||
# replaced by e100
|
||||
# blacklist eepro100
|
||||
|
||||
# replaced by tulip
|
||||
blacklist de4x5
|
||||
|
||||
# snd_intel8x0m can interfere with snd_intel8x0, doesn't seem to support much
|
||||
# hardware on its own (Ubuntu bug #2011, #6810)
|
||||
blacklist snd_intel8x0m
|
||||
|
||||
# Conflicts with dvb driver (which is better for handling this device)
|
||||
blacklist snd_aw2
|
||||
|
||||
# causes failure to suspend on HP compaq nc6000 (Ubuntu: #10306)
|
||||
blacklist i2c_i801
|
||||
|
||||
# most apps now use garmin usb driver directly (Ubuntu: #114565)
|
||||
blacklist garmin_gps
|
||||
|
||||
# low-quality, just noise when being used for sound playback, causes
|
||||
# hangs at desktop session start (Ubuntu: #246969)
|
||||
blacklist snd_pcsp
|
||||
|
||||
# EDAC driver for amd76x clashes with the agp driver preventing the aperture
|
||||
# from being initialised (Ubuntu: #297750). Blacklist so that the driver
|
||||
# continues to build and is installable for the few cases where its
|
||||
# really needed.
|
||||
blacklist amd76x_edac
|
||||
@@ -0,0 +1,6 @@
|
||||
#
|
||||
# depmod.conf
|
||||
#
|
||||
|
||||
# override default search ordering for kmod packaging
|
||||
search updates extra built-in weak-updates
|
||||
@@ -0,0 +1,170 @@
|
||||
# default modutils aliases
|
||||
alias binfmt-204 binfmt_aout
|
||||
alias binfmt-263 binfmt_aout
|
||||
alias binfmt-264 binfmt_aout
|
||||
alias binfmt-267 binfmt_aout
|
||||
alias binfmt-387 binfmt_aout
|
||||
alias block-major-1-* rd
|
||||
alias block-major-3-* ide-probe-mod
|
||||
alias block-major-8-* sd_mod
|
||||
alias block-major-9-* md
|
||||
alias block-major-11-* sr_mod
|
||||
alias block-major-13-* xd
|
||||
alias block-major-15-* cdu31a
|
||||
alias block-major-16-* gscd
|
||||
alias block-major-17-* optcd
|
||||
alias block-major-18-* sjcd
|
||||
alias block-major-20-* mcdx
|
||||
alias block-major-22-* ide-probe-mod
|
||||
alias block-major-23-* mcd
|
||||
alias block-major-24-* sonycd535
|
||||
alias block-major-25-* sbpcd
|
||||
alias block-major-26-* sbpcd
|
||||
alias block-major-27-* sbpcd
|
||||
alias block-major-29-* aztcd
|
||||
alias block-major-32-* cm206
|
||||
alias block-major-33-* ide-probe-mod
|
||||
alias block-major-34-* ide-probe-mod
|
||||
alias block-major-37-* ide-tape
|
||||
alias block-major-44-* ftl
|
||||
alias block-major-46-* pcd
|
||||
alias block-major-47-* pf
|
||||
alias block-major-56-* ide-probe-mod
|
||||
alias block-major-57-* ide-probe-mod
|
||||
alias block-major-88-* ide-probe-mod
|
||||
alias block-major-89-* ide-probe-mod
|
||||
alias block-major-90-* ide-probe-mod
|
||||
alias block-major-91-* ide-probe-mod
|
||||
alias block-major-93-* nftl
|
||||
alias block-major-113-* viocd
|
||||
alias char-major-4-* serial
|
||||
alias char-major-5-* serial
|
||||
alias char-major-9-* st
|
||||
alias char-major-10-2 msbusmouse
|
||||
alias char-major-10-3 atixlmouse
|
||||
alias char-major-10-135 rtc
|
||||
alias char-major-10-139 openprom
|
||||
alias char-major-10-157 applicom
|
||||
alias char-major-10-175 agpgart
|
||||
alias char-major-10-250 hci_vhci
|
||||
alias char-major-13-* input
|
||||
alias char-major-13-0 joydev
|
||||
alias char-major-13-32 mousedev
|
||||
alias char-major-19-* cyclades
|
||||
alias char-major-20-* cyclades
|
||||
alias char-major-22-* pcxx
|
||||
alias char-major-23-* pcxx
|
||||
alias char-major-27-* zftape
|
||||
alias char-major-34-* scc
|
||||
alias char-major-35-* tclmidi
|
||||
alias char-major-36-* netlink
|
||||
alias char-major-48-* riscom8
|
||||
alias char-major-49-* riscom8
|
||||
alias char-major-57-* esp
|
||||
alias char-major-58-* esp
|
||||
alias char-major-63-* kdebug
|
||||
alias char-major-90-* mtdchar
|
||||
alias char-major-96-* pt
|
||||
alias char-major-97-* pg
|
||||
alias char-major-107-* 3dfx
|
||||
alias char-major-109-* lvm-mod
|
||||
alias char-major-188-* usbserial
|
||||
alias char-major-200-* vxspec
|
||||
alias char-major-206-* osst
|
||||
alias char-major-216-* rfcomm
|
||||
alias dos msdos
|
||||
alias dummy0 dummy
|
||||
alias dummy1 dummy
|
||||
alias iso9660 isofs
|
||||
alias net-pf-1 unix
|
||||
alias net-pf-2 ipv4
|
||||
alias net-pf-17 af_packet
|
||||
alias netalias-2 ip_alias
|
||||
alias irlan0 irlan
|
||||
alias irda-dongle-0 tekram
|
||||
alias irda-dongle-1 esi
|
||||
alias irda-dongle-2 actisys
|
||||
alias irda-dongle-3 actisys
|
||||
alias irda-dongle-4 girbil
|
||||
alias irda-dongle-5 litelink
|
||||
alias irda-dongle-6 airport
|
||||
alias irda-dongle-7 old_belkin
|
||||
alias plip0 plip
|
||||
alias plip1 plip
|
||||
alias tunl0 ipip
|
||||
alias cipcb0 cipcb
|
||||
alias cipcb1 cipcb
|
||||
alias cipcb2 cipcb
|
||||
alias cipcb3 cipcb
|
||||
alias slip0 slip
|
||||
alias slip1 slip
|
||||
alias tty-ldisc-1 slip
|
||||
alias tty-ldisc-3 ppp_async
|
||||
alias tty-ldisc-11 irtty-sir
|
||||
alias tty-ldisc-14 ppp_synctty
|
||||
alias tty-ldisc-15 hci_uart
|
||||
alias ppp-compress-18 ppp_mppe
|
||||
install ppp-compress-21 /bin/true
|
||||
alias ppp-compress-24 ppp_deflate
|
||||
alias ppp-compress-26 ppp_deflate
|
||||
alias parport_lowlevel parport_pc
|
||||
alias usbdevfs usbcore
|
||||
alias xfrm-type-2-50 esp4
|
||||
alias xfrm-type-2-51 ah4
|
||||
alias xfrm-type-2-108 ipcomp
|
||||
alias xfrm-type-10-50 esp6
|
||||
alias xfrm-type-10-51 ah6
|
||||
alias xfrm-type-10-108 ipcomp6
|
||||
alias cipher_null crypto_null
|
||||
alias digest_null crypto_null
|
||||
alias compress_null crypto_null
|
||||
alias sha384 sha512
|
||||
install binfmt-0000 /bin/true
|
||||
install binfmt_misc /sbin/modprobe --first-time --ignore-install binfmt_misc && { /bin/mount -t binfmt_misc none /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || :; }
|
||||
install nfsd /sbin/modprobe --first-time --ignore-install nfsd && { /bin/mount -t nfsd nfsd /proc/fs/nfsd > /dev/null 2>&1 || :; }
|
||||
install sunrpc /sbin/modprobe --first-time --ignore-install sunrpc && { /bin/mount -t rpc_pipefs sunrpc /var/lib/nfs/rpc_pipefs > /dev/null 2>&1 || :; }
|
||||
install char-major-10 /bin/true
|
||||
install char-major-10-1 /bin/true
|
||||
install dummy0 /sbin/modprobe -o dummy0 --ignore-install dummy
|
||||
install dummy1 /sbin/modprobe -o dummy1 --ignore-install dummy
|
||||
install net-pf-19 /bin/true
|
||||
install net-pf-3 /bin/true
|
||||
install net-pf-6 /bin/true
|
||||
install ov518_decomp { /sbin/modprobe ov511; } ; /sbin/modprobe --first-time --ignore-install ov518_decomp
|
||||
install scsi_hostadapter /bin/true
|
||||
install usbmouse /sbin/modprobe --first-time --ignore-install usbmouse && { /sbin/modprobe hid; /bin/true; }
|
||||
remove binfmt_misc { /bin/umount /proc/sys/fs/binfmt_misc > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time --ignore-remove binfmt_misc
|
||||
remove ov518_decomp /sbin/modprobe -r --first-time --ignore-remove ov518_decomp && { /sbin/modprobe -r ov511; /bin/true; }
|
||||
remove usbmouse { /sbin/modprobe -r hid; } ; /sbin/modprobe -r --first-time --ignore-remove usbmouse
|
||||
remove sunrpc { /bin/umount /var/lib/nfs/rpc_pipefs > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --ignore-remove sunrpc
|
||||
remove nfsd { /bin/umount /proc/fs/nfsd > /dev/null 2>&1 || :; } ; /sbin/modprobe -r --first-time --ignore-remove nfsd
|
||||
|
||||
|
||||
alias usb-uhci uhci-hcd
|
||||
alias usb-ohci ohci-hcd
|
||||
alias uhci uhci-hcd
|
||||
|
||||
alias char-major-116-* snd
|
||||
alias sound-service-*-0 snd-mixer-oss
|
||||
alias sound-service-*-1 snd-seq-oss
|
||||
alias sound-service-*-3 snd-pcm-oss
|
||||
alias sound-service-*-8 snd-seq-oss
|
||||
alias sound-service-*-12 snd-pcm-oss
|
||||
|
||||
install sound-slot-* /sbin/modprobe snd-card-${MODPROBE_MODULE##sound[_-]slot[_-]}
|
||||
|
||||
install snd-pcm /sbin/modprobe --ignore-install snd-pcm && /sbin/modprobe snd-pcm-oss && /sbin/modprobe snd-seq-device && /sbin/modprobe snd-seq-oss
|
||||
|
||||
alias nfs4 nfs
|
||||
alias rpc_pipefs sunrpc
|
||||
alias rpc_svc_gss_pipefs sunrpc
|
||||
|
||||
install eth1394 /bin/true
|
||||
|
||||
install snd-emu10k1 /sbin/modprobe --ignore-install snd-emu10k1 && /sbin/modprobe snd-emu10k1-synth
|
||||
|
||||
install parport /sbin/modprobe -i parport; /sbin/modprobe lp; /sbin/modprobe ppdev
|
||||
|
||||
# This should be passed in here as sysctl doesn't
|
||||
# affect module probes.
|
||||
options nf_conntrack acct=1
|
||||
@@ -0,0 +1,190 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>kmod</Name>
|
||||
<Homepage>http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2+</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Linux kernel module management utilities</Summary>
|
||||
<Description>Linux kernel module management utilities</Description>
|
||||
<Archive sha1sum="f59f7dabe32cbf007bcc30731821d5f3ac9a5706" type="tarxz">ftp://ftp.kernel.org/pub/linux/utils/kernel/kmod/kmod-19.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>chrpath</Dependency>
|
||||
<Dependency>libxslt</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>kmod</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>xz</Dependency>
|
||||
<Dependency>zlib</Dependency>
|
||||
<Dependency>glibc</Dependency>
|
||||
<Dependency version="current">libkmod</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="executable">/bin</Path>
|
||||
<Path fileType="executable">/sbin</Path>
|
||||
<Path fileType="manfile">/usr/share/man</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="data">/usr/share/bash-completion/completions/kmod</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<!-- Blacklist files
|
||||
These files are basically grabbed from Ubuntu Jaunty and merged into the current Pardus blacklist ones. -->
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/blacklist.conf">blacklist/blacklist.conf</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/blacklist-firewire.conf">blacklist/blacklist-firewire.conf</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/blacklist-framebuffer.conf">blacklist/blacklist-framebuffer.conf</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/blacklist-watchdog.conf">blacklist/blacklist-watchdog.conf</AdditionalFile>
|
||||
|
||||
<!-- Grabbed from Fedora -->
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/modprobe.d/modprobe.conf">modprobe.conf</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/depmod.d/depmod.conf">depmod.conf</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<!-- FIXME: This backend needs a complete rewrite dude -->
|
||||
<COMAR script="backend.py">Boot.Modules</COMAR>
|
||||
<COMAR script="pakhandler.py">System.PackageHandler</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libkmod-devel</Name>
|
||||
<PartOf>system.devel</PartOf>
|
||||
<RuntimeDependencies>
|
||||
<Dependency version="current">libkmod</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
<Path fileType="library">/usr/lib32/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libkmod</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>xz</Dependency>
|
||||
<Dependency>zlib</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Summary>kmod libraries</Summary>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>libkmod-32bit</Name>
|
||||
<PartOf>emul32</PartOf>
|
||||
<Summary>32bit libraries of libkmod</Summary>
|
||||
<BuildType>emul32</BuildType>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>xz-32bit</Dependency>
|
||||
<Dependency>zlib-32bit</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="13">
|
||||
<Date>2014-11-18</Date>
|
||||
<Version>19</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Yusuf Aydemir</Name>
|
||||
<Email>yusuf.aydemir@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="12">
|
||||
<Date>2014-05-23</Date>
|
||||
<Version>17</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="11">
|
||||
<Date>2014-05-11</Date>
|
||||
<Version>16</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="10">
|
||||
<Date>2014-01-21</Date>
|
||||
<Version>16</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="9">
|
||||
<Date>2013-09-05</Date>
|
||||
<Version>15</Version>
|
||||
<Comment>Add missing method to pakhandler.py</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="8">
|
||||
<Date>2013-08-31</Date>
|
||||
<Version>15</Version>
|
||||
<Comment>Version bump, clean kmod.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2013-08-20</Date>
|
||||
<Version>14</Version>
|
||||
<Comment>rebuild for kernel 3.10.9</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2013-08-11</Date>
|
||||
<Version>14</Version>
|
||||
<Comment>rebuild for kernel 3.10.5</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2013-07-27</Date>
|
||||
<Version>14</Version>
|
||||
<Comment>Move pc files to devel pack, rebuild</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2013-07-04</Date>
|
||||
<Version>14</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-04-14</Date>
|
||||
<Version>13</Version>
|
||||
<Comment>Version bump</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-01-22</Date>
|
||||
<Version>12</Version>
|
||||
<Comment>Version bump, add comar scripts</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-11-15</Date>
|
||||
<Version>11</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>kmod</Name>
|
||||
<Summary xml:lang="tr">Linux kernel modülleri yönetim araçları</Summary>
|
||||
<Description xml:lang="tr">Linux kernel modülleri yönetim araçları</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user