works for alsa
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/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("--sbindir=/sbin \
|
||||
--disable-alsaconf")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
|
||||
pisitools.dodoc("ChangeLog", "README", "TODO", "seq/aconnect/README.aconnect", "seq/aseqnet/README.aseqnet")
|
||||
@@ -0,0 +1,20 @@
|
||||
from comar.service import *
|
||||
import os
|
||||
|
||||
serviceType = "local"
|
||||
serviceDefault = "on"
|
||||
serviceDesc = _({"en": "Store/Restore Mixer Levels",
|
||||
"tr": "Karıştırıcı Seviyeleri Yönetimi"})
|
||||
|
||||
@synchronized
|
||||
def start():
|
||||
# Store mixer levels
|
||||
os.system("/sbin/alsactl restore")
|
||||
|
||||
@synchronized
|
||||
def stop():
|
||||
# Store mixer levels
|
||||
os.system("/sbin/alsactl store")
|
||||
|
||||
def status():
|
||||
return True
|
||||
@@ -0,0 +1,17 @@
|
||||
CTL{reset}="mixer"
|
||||
CTL{name}="PC Speaker Playback Volume",CTL{do_search}=="1", \
|
||||
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="0"
|
||||
CTL{name}="PC Speaker Playback Switch",CTL{do_search}=="1", \
|
||||
CTL{values}="off"
|
||||
|
||||
CTL{reset}="mixer"
|
||||
CTL{name}="PC Beep Playback Volume",CTL{do_search}=="1", \
|
||||
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="0"
|
||||
CTL{name}="PC Beep Playback Switch",CTL{do_search}=="1", \
|
||||
CTL{values}="off"
|
||||
|
||||
CTL{reset}="mixer"
|
||||
CTL{name}="Beep Playback Volume",CTL{do_search}=="1", \
|
||||
CTL{values}="$env{pvolume}",RESULT!="0",CTL{values}="0"
|
||||
CTL{name}="Beep Playback Switch",CTL{do_search}=="1", \
|
||||
CTL{values}="off"
|
||||
@@ -0,0 +1,15 @@
|
||||
#
|
||||
# ALSA library configuration file for alsactl tool
|
||||
# (/usr/share/alsa tree is not necessary for alsactl)
|
||||
#
|
||||
|
||||
ctl.hw {
|
||||
@args [ CARD ]
|
||||
@args.CARD {
|
||||
type string
|
||||
default "0"
|
||||
}
|
||||
type hw
|
||||
card $CARD
|
||||
}
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
exec /sbin/alsactl -E ALSA_CONFIG_PATH=/etc/alsa/alsactl.conf init
|
||||
@@ -0,0 +1,28 @@
|
||||
.TH ALSAUNMUTE 1 "21 April 2010"
|
||||
.SH NAME
|
||||
alsaunmute \- a simple script to initialize ALSA sound devices
|
||||
|
||||
.SH DESCRIPTION
|
||||
\fBalsaunmute\fP is a shell script which runs the \fBalsactl(1)\fP
|
||||
utility with \fIinit\fP argument (see the script for details).
|
||||
|
||||
.SH OPTIONS
|
||||
None
|
||||
|
||||
.SS
|
||||
Example:
|
||||
\fBalsaunmute\fR
|
||||
|
||||
.SH SEE ALSO
|
||||
\fB
|
||||
alsactl(1),
|
||||
alsamixer(1),
|
||||
amixer(1)
|
||||
\fP
|
||||
|
||||
.SH BUGS
|
||||
None known.
|
||||
|
||||
.SH AUTHOR
|
||||
\fBalsaunmute\fP is by Jaroslav Kysela <perex@perex.cz>
|
||||
|
||||
@@ -0,0 +1,116 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>alsa-utils</Name>
|
||||
<Homepage>http://www.alsa-project.org/</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>GPLv2</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>Advanced Linux Sound Architecture (ALSA) utilities</Summary>
|
||||
<Description>alsa-utils contains command line utilities for the Advanced Linux Sound Architecture (ALSA).</Description>
|
||||
<Archive sha1sum="8b456e2d8adf538aef3fc2d24aae2377509f9544" type="tarbz2">ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.29.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>xmlto</Dependency>
|
||||
<Dependency>util-linux</Dependency>
|
||||
<Dependency>libxslt</Dependency>
|
||||
<Dependency>ncurses-devel</Dependency>
|
||||
<Dependency>libsamplerate-devel</Dependency>
|
||||
<Dependency>alsa-lib-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>alsa-utils</Name>
|
||||
<RuntimeDependencies>
|
||||
<!--Dependency>dialog</Dependency-->
|
||||
<Dependency>ncurses</Dependency>
|
||||
<Dependency>alsa-lib</Dependency>
|
||||
<Dependency>libsamplerate</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="executable">/sbin</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="data">/var/lib/alsa</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="data">/usr/share/alsa</Path>
|
||||
<Path fileType="data">/lib/udev/rules.d</Path>
|
||||
<Path fileType="data">/usr/share/sounds</Path>
|
||||
<Path fileType="data">/lib/systemd/system</Path>
|
||||
<Path fileType="localedata">/usr/share/locale</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
<AdditionalFile owner="root" permission="0755" target="/usr/bin/alsaunmute">alsaunmute</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/alsa/01beep.conf">01beep.conf</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/etc/alsa/alsactl.conf">alsactl.conf</AdditionalFile>
|
||||
<AdditionalFile owner="root" permission="0644" target="/usr/share/man/man1/alsaunmute.1">alsaunmute.1</AdditionalFile>
|
||||
</AdditionalFiles>
|
||||
<Provides>
|
||||
<COMAR script="service.py" name="alsactl">System.Service</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="8">
|
||||
<Date>2015-03-04</Date>
|
||||
<Version>1.0.29</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Hakan Yıldız</Name>
|
||||
<Email>hknyldz93@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="7">
|
||||
<Date>2014-08-19</Date>
|
||||
<Version>1.0.28</Version>
|
||||
<Comment>Rebuild version 28.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="6">
|
||||
<Date>2014-08-19</Date>
|
||||
<Version>1.0.28</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="5">
|
||||
<Date>2014-05-26</Date>
|
||||
<Version>1.0.27.2</Version>
|
||||
<Comment>Remove systemd part.</Comment>
|
||||
<Name>Serdar Soytetir</Name>
|
||||
<Email>kaptan@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="4">
|
||||
<Date>2014-03-05</Date>
|
||||
<Version>1.0.27.2</Version>
|
||||
<Comment>Rebuild for buildhost</Comment>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="3">
|
||||
<Date>2013-08-22</Date>
|
||||
<Version>1.0.27.2</Version>
|
||||
<Comment>Release bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="2">
|
||||
<Date>2013-07-27</Date>
|
||||
<Version>1.0.27.2</Version>
|
||||
<Comment>Version bump.</Comment>
|
||||
<Name>Marcin Bojara</Name>
|
||||
<Email>marcin@pisilinux.org</Email>
|
||||
</Update>
|
||||
<Update release="1">
|
||||
<Date>2012-10-13</Date>
|
||||
<Version>1.0.26.20121013</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Erdinç Gültekin</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>alsa-utils</Name>
|
||||
<Summary xml:lang="tr">ALSA araçları</Summary>
|
||||
<Description xml:lang="tr">Alsa-utils Linux işletim sistemlerinde ses ve MIDI fonksiyonlarının gerçekleştirilmesini sağlayan gelişmiş Linux ses mimarisidir</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user