diff options
author | M0Rf30 | 2016-11-04 17:01:32 +0100 |
---|---|---|
committer | M0Rf30 | 2016-11-04 17:01:32 +0100 |
commit | 8d5c407860ca6ab052b3b94c45fc0b90f8cd8c05 (patch) | |
tree | 1cf1e91c6d4d643fad128a3cd52b024da2670e52 | |
download | aur-8d5c407860ca6ab052b3b94c45fc0b90f8cd8c05.tar.gz |
updated
-rw-r--r-- | .SRCINFO | 92 | ||||
-rw-r--r-- | PKGBUILD | 132 | ||||
-rw-r--r-- | airtime-liquidsoap.service | 13 | ||||
-rw-r--r-- | airtime-media-monitor.service | 13 | ||||
-rw-r--r-- | airtime-playout.service | 13 | ||||
-rw-r--r-- | airtime.install | 11 | ||||
-rw-r--r-- | airtime.tmpfiles.conf | 1 |
7 files changed, 275 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..2eda808a9671 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,92 @@ +# Generated by mksrcinfo v8 +# Fri Nov 4 16:00:14 UTC 2016 +pkgbase = airtime + pkgdesc = Open broadcast software for scheduling and station management. + pkgver = 12396.4940c73 + pkgrel = 1 + url = http://www.sourcefabric.org/en/airtime + install = airtime.install + arch = i686 + arch = x86_64 + license = GPL3 + makedepends = git + makedepends = python2 + makedepends = python2-setuptools + depends = php + depends = php-gd + depends = php-pear + depends = zendframework + depends = php-pgsql + depends = php-apcu + depends = php-apcu-bc + depends = python2 + depends = python2-virtualenv + depends = python2-pip + depends = python2-configobj + depends = python2-anyjson + depends = python2-amqplib + depends = python2-argparse + depends = python2-configobj + depends = python2-docopt + depends = python2-kombu + depends = mutagen + depends = python2-poster + depends = python2-pydispatcher + depends = python2-pyinotify + depends = python2-pytz + depends = python2-wsgiref + depends = ocaml-soundtouch + depends = ocaml-taglib + depends = ocaml-ao + depends = ocaml-mad + depends = ocaml-camomile + depends = ecasound + depends = portaudio + depends = libsamplerate + depends = vo-aacenc + depends = patch + depends = mpg123 + depends = vorbisgain + depends = pwgen + depends = vorbis-tools + depends = silan + depends = lsof + depends = libpulse + depends = alsa-utils + depends = liquidsoap + depends = coreutils + depends = sudo + depends = curl + depends = opus + depends = flac + depends = lame + depends = multitail + depends = perl + depends = tar>=1.22 + depends = unzip + depends = gzip>=1.3.12 + optdepends = rabbitmq: localy hosted rabbitmq server + optdepends = postgresql: localy hosted Database server + optdepends = apache: Apache webserver (webserver needed) + optdepends = nginx: Nginx webserver (webserver needed) + provides = airtime + replaces = airtime + backup = etc/airtime/airtime.conf + backup = etc/airtime/airtime.ini + backup = etc/airtime/apache.vhost.tpl + backup = etc/airtime/apache24.vhost.tpl + backup = etc/logrotate.d/airtime-liquidsoap + backup = etc/logrotate.d/airtime-php + source = airtime::git+https://github.com/sourcefabric/airtime.git + source = airtime-media-monitor.service + source = airtime-liquidsoap.service + source = airtime-playout.service + source = airtime.tmpfiles.conf + md5sums = SKIP + md5sums = 4e40e6b0f7fa9ec7eb8e5356bf817bd3 + md5sums = fc4a319d43a96f0003f348c7ddd8aca2 + md5sums = 93f750480f7c49d72cdcdb10cd97c089 + md5sums = d9c15aaa7b1da14acc99e047f58aac66 + +pkgname = airtime + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..30c8388dbb3f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,132 @@ +# Maintainer: M0Rf30 + +pkgname=airtime +pkgver=12396.4940c73 +pkgrel=1 +pkgdesc="Open broadcast software for scheduling and station management." +arch=('i686' 'x86_64') +url="http://www.sourcefabric.org/en/airtime" +license=('GPL3') +depends=('php' 'php-gd' 'php-pear' 'zendframework' 'php-pgsql' 'php-apcu' 'php-apcu-bc' + 'python2' 'python2-virtualenv' 'python2-pip' + 'python2-configobj' 'python2-anyjson' 'python2-amqplib' + 'python2-argparse' 'python2-configobj' 'python2-docopt' + 'python2-kombu' 'mutagen' 'python2-poster' + 'python2-pydispatcher' 'python2-pyinotify' 'python2-pytz' + 'python2-wsgiref' + 'ocaml-soundtouch' 'ocaml-taglib' 'ocaml-ao' 'ocaml-mad' 'ocaml-camomile' + 'ecasound' 'portaudio' 'libsamplerate' 'vo-aacenc' + 'patch' + 'mpg123' 'vorbisgain' 'pwgen' 'vorbis-tools' 'silan' 'lsof' + 'libpulse' 'alsa-utils' + 'liquidsoap' + 'coreutils' 'sudo' + 'curl' + 'opus' 'flac' 'lame' + 'multitail' + 'perl' + 'tar>=1.22' 'unzip' 'gzip>=1.3.12') +optdepends=('rabbitmq: localy hosted rabbitmq server' + 'postgresql: localy hosted Database server' + 'apache: Apache webserver (webserver needed)' + 'nginx: Nginx webserver (webserver needed)') +makedepends=('git' 'python2' 'python2-setuptools') +provides=('airtime') +replaces=('airtime') +backup=('etc/airtime/airtime.conf' + 'etc/airtime/airtime.ini' + 'etc/airtime/apache.vhost.tpl' + 'etc/airtime/apache24.vhost.tpl' + 'etc/logrotate.d/airtime-liquidsoap' + 'etc/logrotate.d/airtime-php') +install=airtime.install +source=("airtime::git+https://github.com/sourcefabric/airtime.git" + 'airtime-media-monitor.service' + 'airtime-liquidsoap.service' + 'airtime-playout.service' + 'airtime.tmpfiles.conf') +branch=2.5.x + +prepare() { + cd "$srcdir/airtime" + grep -rl '/usr/bin/python' 'python_apps' 'utils' | xargs sed -i "s%/usr/bin/python%/usr/bin/python2%g" + grep -rl 'www-data' . | xargs sed -i "s%www-data%http%g" +} + +package() { + cd "$srcdir/airtime" + + web_user=http + + # web frontend + install -d -m755 "${pkgdir}/usr/share/airtime" + cp -r "airtime_mvc" "${pkgdir}/usr/share/airtime" + cp -r "python_apps" "${pkgdir}/usr/share/airtime" + cp -r "utils" "${pkgdir}/usr/share/airtime" + chmod -R 755 "${pkgdir}/usr/share/airtime" + + install -d -m644 "${pkgdir}/usr/share/doc/airtime/examples/" + cp -r "widgets" "${pkgdir}/usr/share/doc/airtime/examples/" + chmod -R 755 "${pkgdir}/usr/share/doc/airtime/examples/" + install -D -m644 "CREDITS" "${pkgdir}/usr/share/doc/airtime/CREDITS" + install -D -m644 "README" "${pkgdir}/usr/share/doc/airtime/README" + install -D -m644 "changelog" "${pkgdir}/usr/share/doc/airtime/changelog" + + install -D -m644 "LICENSE" "${pkgdir}/usr/share/doc/airtime/LICENSE" + install -D -m644 "LICENSE_3RD_PARTY" "${pkgdir}/usr/share/licenses/airtime/LICENSE_3RD_PARTY" + + install -D -m644 "../airtime.tmpfiles.conf" "${pkgdir}/usr/lib/tmpfiles.d/airtime.conf" + install -D -m644 "airtime_mvc/build/airtime-php.logrotate" "${pkgdir}/etc/logrotate.d/airtime-php" + install -D -m644 "python_apps/pypo/liquidsoap/airtime-liquidsoap.logrotate" "${pkgdir}/etc/logrotate.d/airtime-liquidsoap" + + install -d -m777 "${pkgdir}/var/tmp/airtime/show-recorder/" + + install -d -m755 "${pkgdir}/var/log/airtime" + + install -d -m777 "${pkgdir}/var/tmp/airtime" + + install -d -m655 "${pkgdir}/etc/airtime" + install -d -m655 "${pkgdir}/etc/airtime/php" + install -d -m655 "${pkgdir}/etc/airtime/apache" + install -d -m655 "${pkgdir}/etc/airtime/nginx" + + install -D -m 755 "installer/php/airtime.ini" "${pkgdir}/etc/airtime/php/airtime.ini" + install -D -m 755 "installer/apache/airtime-vhost" "${pkgdir}/etc/airtime/apache/apache.vhost.tpl" + install -D -m 755 "installer/apache/airtime-vhost-2.4" "${pkgdir}/etc/airtime/apache/apache24.vhost.tpl" + + install -D -m 755 ../airtime-media-monitor.service "${pkgdir}/usr/lib/systemd/system/airtime-media-monitor.service" + install -D -m 755 ../airtime-liquidsoap.service "${pkgdir}/usr/lib/systemd/system/airtime-liquidsoap.service" + install -D -m 755 ../airtime-playout.service "${pkgdir}/usr/lib/systemd/system/airtime-playout.service" + + # python apps + python2 "python_apps/std_err_override/setup.py" install \ + --root="${pkgdir}/" --optimize=1 --install-scripts=/usr/bin + python2 "python_apps/api_clients/setup.py" install \ + --root="${pkgdir}/" --optimize=1 --install-scripts=/usr/bin + python2 "python_apps/media-monitor/setup.py" install \ + --root="${pkgdir}/" --optimize=1 --install-scripts=/usr/bin + python2 "python_apps/pypo/setup.py" install \ + --root="${pkgdir}/" --optimize=1 --install-scripts=/usr/bin + + chmod -R 777 "${pkgdir}/var/tmp/airtime" + chmod -R 755 "${pkgdir}/var/log/airtime" + + chown -R ${web_user}:${web_user} "${pkgdir}/var/tmp/airtime" + chown -R ${web_user}:${web_user} "${pkgdir}/var/log/airtime" + chown -R ${web_user}:${web_user} "${pkgdir}/etc/airtime" + +msg2 "Cleaning..." + rm -r "${pkgdir}/etc/init" + rm -r "${pkgdir}/etc/init.d" +} + +pkgver() { + cd airtime + echo $(git rev-list --count $branch).$(git rev-parse --short $branch) +} + +md5sums=('SKIP' + '4e40e6b0f7fa9ec7eb8e5356bf817bd3' + 'fc4a319d43a96f0003f348c7ddd8aca2' + '93f750480f7c49d72cdcdb10cd97c089' + 'd9c15aaa7b1da14acc99e047f58aac66') diff --git a/airtime-liquidsoap.service b/airtime-liquidsoap.service new file mode 100644 index 000000000000..0857eaf3e713 --- /dev/null +++ b/airtime-liquidsoap.service @@ -0,0 +1,13 @@ +[Unit] +Description=airtime-liquidsoap daemon +After=local-fs.target remote-fs.target network.target + +[Service] +Type=simple +User=http +Group=http +ExecStart=/usr/bin/airtime-liquidsoap +ExecReload=/usr/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/airtime-media-monitor.service b/airtime-media-monitor.service new file mode 100644 index 000000000000..a5397ae3f228 --- /dev/null +++ b/airtime-media-monitor.service @@ -0,0 +1,13 @@ +[Unit] +Description=airtime-media-monitor daemon +After=local-fs.target remote-fs.target network.target + +[Service] +Type=simple +User=http +Group=http +ExecStart=/usr/bin/airtime-media-monitor +ExecReload=/usr/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/airtime-playout.service b/airtime-playout.service new file mode 100644 index 000000000000..22e4bbcb7faf --- /dev/null +++ b/airtime-playout.service @@ -0,0 +1,13 @@ +[Unit] +Description=airtime-playout daemon +After=local-fs.target remote-fs.target network.target + +[Service] +Type=simple +User=http +Group=http +ExecStart=/usr/bin/airtime-playout +ExecReload=/usr/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target diff --git a/airtime.install b/airtime.install new file mode 100644 index 000000000000..8c92661a4f79 --- /dev/null +++ b/airtime.install @@ -0,0 +1,11 @@ +post_install() { + if type -P systemd-tmpfiles &> /dev/null; then + systemd-tmpfiles --create airtime.conf + fi +} + +post_upgrade() { + if type -P systemd-tmpfiles &> /dev/null; then + systemd-tmpfiles --create airtime.conf + fi +} diff --git a/airtime.tmpfiles.conf b/airtime.tmpfiles.conf new file mode 100644 index 000000000000..d3906c7c3443 --- /dev/null +++ b/airtime.tmpfiles.conf @@ -0,0 +1 @@ +d /run/airtime 0755 http http |