|
|
@ -28,15 +28,15 @@ download:
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
@echo
|
|
|
|
sleep 3
|
|
|
|
sleep 3
|
|
|
|
wget -c https://releases.mattermost.com/${VERSION}/mattermost-${VERSION}-linux-amd64.tar.gz
|
|
|
|
cd .. && wget -c https://releases.mattermost.com/${VERSION}/mattermost-${VERSION}-linux-amd64.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
extract:
|
|
|
|
extract:
|
|
|
|
mkdir -p files/opt/
|
|
|
|
mkdir -p ../files/opt/
|
|
|
|
cd files/opt/ && tar xfz ../../mattermost-${VERSION}-linux-amd64.tar.gz
|
|
|
|
cd ../files/opt/ && tar xfz ../../mattermost-${VERSION}-linux-amd64.tar.gz
|
|
|
|
|
|
|
|
|
|
|
|
# update the bash-completion script
|
|
|
|
# update the bash-completion script
|
|
|
|
bash-completion:
|
|
|
|
bash-completion:
|
|
|
|
mattermost completion bash > files/etc/bash_completion.d/mattermost
|
|
|
|
cd ../ && mattermost completion bash > files/etc/bash_completion.d/mattermost
|
|
|
|
|
|
|
|
|
|
|
|
# makes the DEBIAN/ directory
|
|
|
|
# makes the DEBIAN/ directory
|
|
|
|
DEBIAN:
|
|
|
|
DEBIAN:
|
|
|
@ -52,12 +52,12 @@ control:
|
|
|
|
echo Version: ${VERSION}.${MINOR} >>DEBIAN/control
|
|
|
|
echo Version: ${VERSION}.${MINOR} >>DEBIAN/control
|
|
|
|
|
|
|
|
|
|
|
|
md5sum:
|
|
|
|
md5sum:
|
|
|
|
cd files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../DEBIAN/md5sums
|
|
|
|
cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../DEBIAN/md5sums
|
|
|
|
|
|
|
|
|
|
|
|
build:
|
|
|
|
build:
|
|
|
|
mv DEBIAN files/
|
|
|
|
mv DEBIAN ../files/
|
|
|
|
dpkg-deb --build files mattermost_${VERSION}.${MINOR}_amd64.deb
|
|
|
|
cd ../files && dpkg-deb --build files mattermost_${VERSION}.${MINOR}_amd64.deb
|
|
|
|
dpkg-deb --info mattermost_${VERSION}.${MINOR}_amd64.deb
|
|
|
|
cd ../files && dpkg-deb --info mattermost_${VERSION}.${MINOR}_amd64.deb
|
|
|
|
|
|
|
|
|
|
|
|
# how to make a debian package "raw" just using tar and ar
|
|
|
|
# how to make a debian package "raw" just using tar and ar
|
|
|
|
tar-ar: control
|
|
|
|
tar-ar: control
|