diff options
author | M0Rf30 | 2016-11-22 01:36:39 +0100 |
---|---|---|
committer | M0Rf30 | 2016-11-22 01:36:39 +0100 |
commit | 04857636d2a6b02144e48332d73c0ec04277cfd7 (patch) | |
tree | 8cedad87d57e8da7f3033223253bc91157bce397 /PKGBUILD | |
parent | d11af264a97969cf6fa22769876fa0098d4e5e50 (diff) | |
download | aur-04857636d2a6b02144e48332d73c0ec04277cfd7.tar.gz |
fixed some systemd services issues
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -35,6 +35,7 @@ makedepends=('git' 'python2' 'python2-setuptools') provides=('airtime') replaces=('airtime') backup=('etc/airtime/airtime.conf' + 'etc/airtime/airtime.ini' 'etc/logrotate.d/airtime-liquidsoap' 'etc/logrotate.d/airtime-php') install=airtime.install @@ -49,7 +50,8 @@ 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 '/usr/bin/python' 'python_apps' 'utils' | xargs sed -i "s%/usr/bin/python%/usr/bin/python2%g" + grep -rl '/usr/bin/python' 'python_apps' 'utils' | xargs sed -i "s%/etc/airtime/airtime.conf%/etc/airtime/airtime.ini%g" grep -rl 'www-data' . | xargs sed -i "s%www-data%http%g" patch -Np0 -i ../php-errors.patch } @@ -77,6 +79,7 @@ package() { install -D -m644 "LICENSE_3RD_PARTY" "${pkgdir}/usr/share/licenses/airtime/LICENSE_3RD_PARTY" install -D -m644 "airtime_mvc/build/airtime.example.conf" "${pkgdir}/etc/airtime/airtime.example.conf" + install -D -m644 "airtime_mvc/build/airtime.example.conf" "${pkgdir}/etc/airtime/airtime.ini" msg2 "Replace deprecated # with ; for php comment" find "${pkgdir}/etc/airtime/airtime.example.conf" -name "*.conf" -exec sed -i -re 's/^(\s*)#(.*)/\1;\2/g' {} \; |