### Description
add Liquidsoap2.0 files
(port syntax 1.4 to 2.0)
### Testing Notes
I ran libretime on ubuntu 22.04 and liquidsoap2.0
this pr is just the beginning, just 2 files added it's a clean one...
in order to work under 22.04,it requires changes in
1. this pr
1. (https://github.com/libretime/libretime/pull/2789)
1. libretime/propel (https://github.com/libretime/propel1/pull/1) or
change legacy /composer.json
``` "type": "vcs",
- "url": "https://github.com/libretime/propel1"
+ "url": "https://github.com/mp3butcher/propel1"
},
{
"type": "vcs",
@@ -30,7 +30,7 @@
"james-heinrich/getid3": "^1.9",
"league/uri": "^6.7",
"libretime/celery-php": "dev-main",
- "libretime/propel1": "dev-main",
+ "mp3butcher/propel1": "main",
"php-amqplib/php-amqplib": "^3.0",
```
4. and few mods in install
``` case "$ID-$VERSION_ID" in
ubuntu-20.04) is_ubuntu=true && distro="focal" ;;
+ ubuntu-22.04) is_ubuntu=true && distro="jammy" ;;
debian-11) is_debian=true && distro="bullseye" ;;
*)
error "could not determine supported distribution '$ID-$VERSION_ID'
@@ -375,8 +376,12 @@ prepare_packages_install() {
if $is_ubuntu; then
install_packages software-properties-common
- add-apt-repository -y ppa:libretime/libretime
+ +if echo $distro | grep -q 'focal'; then
+ add-apt-repository -y ppa:libretime/libretime
+ fi
+ if echo $distro | grep -q 'jammy'; then
+ apt-get install php-cli php-dev php php-fpm php-pear php-yaml php-gd php-bcmath php-curl
+ fi
DEBIAN_FRONTEND=noninteractive apt-get -q update
fi
}
```
It will require testing changes against ubuntu 20.4 and debian,that's
why i think a testing branch can be wise
---------
Co-authored-by: mp3butcher <mp3butcher@gmail.com>