2021-08-13 18:53:18 +08:00
|
|
|
#!/bin/bash -ex
|
|
|
|
|
|
|
|
TARGET=`basename $(pwd)`
|
|
|
|
|
|
|
|
|
|
|
|
PACKAGE=$(echo $TARGET | cut -d'_' -f1)
|
|
|
|
VERSION=$(echo $TARGET | cut -d'_' -f2)
|
|
|
|
DISTRO=$(echo $TARGET | cut -d'_' -f3)
|
|
|
|
|
|
|
|
#
|
|
|
|
# Clear staging directory for build
|
|
|
|
rm -rf staging
|
|
|
|
|
|
|
|
#
|
|
|
|
# Create build directories for markign by fpm
|
|
|
|
DIRS=""
|
|
|
|
for dir in $DIRS; do
|
|
|
|
mkdir -p staging$dir
|
|
|
|
DIRECTORIES="$DIRECTORIES --directories $dir"
|
|
|
|
done
|
|
|
|
|
|
|
|
##
|
|
|
|
|
|
|
|
mkdir -p staging/usr/local/bigbluebutton/core
|
|
|
|
cp -r scripts staging/usr/local/bigbluebutton/core
|
|
|
|
|
|
|
|
#mkdir -p staging/var/bigbluebutton
|
|
|
|
#cp -r playback staging/var/bigbluebutton
|
|
|
|
|
2022-03-06 11:51:27 +08:00
|
|
|
mkdir -p staging/usr/share/bigbluebutton/nginx
|
|
|
|
cp staging/usr/local/bigbluebutton/core/scripts/podcast.nginx staging/usr/share/bigbluebutton/nginx
|
2021-08-13 18:53:18 +08:00
|
|
|
|
|
|
|
##
|
|
|
|
|
|
|
|
. ./opts-$DISTRO.sh
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build package
|
|
|
|
fpm -s dir -C ./staging -n $PACKAGE \
|
|
|
|
--version $VERSION --epoch $EPOCH \
|
|
|
|
--post-install before-install.sh \
|
|
|
|
--after-install after-install.sh \
|
2023-08-11 02:21:54 +08:00
|
|
|
--description "BigBlueButton podcast recording format" \
|
2021-08-13 18:53:18 +08:00
|
|
|
$DIRECTORIES \
|
2022-04-26 03:04:38 +08:00
|
|
|
$OPTS \
|
|
|
|
-d 'yq (>= 3)' -d 'yq (<< 4)'
|
2021-08-13 18:53:18 +08:00
|
|
|
|
|
|
|
|