works por deps fixed...

This commit is contained in:
Ertuğrul Erata
2015-06-20 22:07:39 +03:00
parent e5bb900715
commit 35cada22bf
102 changed files with 5695 additions and 10 deletions
@@ -0,0 +1,18 @@
#!/usr/bin/python
import os
libdir = "/usr/lib32/fglrx"
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/usr/sbin/alternatives \
--install /usr/lib32/libGL.so.1.2.0 libGL-32bit %(libdir)s/libGL.so.1.2.0 50 \
--slave /usr/lib32/xorg/modules/volatile xorg-modules-volatile-32bit %(libdir)s/modules"
% {"libdir": libdir})
def preRemove():
# FIXME This is not needed when upgrading package; but pisi does not
# provide a way to learn operation type.
#os.system("/usr/sbin/alternatives --remove libGL-32bit %s/libGL.so.1.2" % libdir)
pass
@@ -0,0 +1,17 @@
#!/usr/bin/python
import os
libdir = "/usr/lib/fglrx"
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/usr/sbin/alternatives \
--install /usr/lib/libGL.so.1.2.0 libGL %(libdir)s/libGL.so.1.2.0 50 \
--slave /usr/lib/xorg/modules/volatile xorg-modules-volatile %(libdir)s/modules"
% {"libdir": libdir})
def preRemove():
# FIXME This is not needed when upgrading package; but pisi does not
# provide a way to learn operation type.
#os.system("/usr/sbin/alternatives --remove libGL %s/libGL.so.1.2" % libdir)
pass
@@ -0,0 +1,21 @@
# -*- coding: utf-8 -*-
serviceType = "local"
serviceDesc = _({"en": "ATI Events Daemon",
"tr": "ATI Olay Servisi"})
serviceConf = "atieventsd"
from comar.service import *
@synchronized
def start():
startService(command="/usr/sbin/atieventsd",
args=config.get("ATIEVENTSDOPTS", ""),
donotify=True)
@synchronized
def stop():
stopService(command="/usr/sbin/atieventsd",
donotify=True)
def status():
return isServiceRunning(command="/usr/sbin/atieventsd")