two seperate packaging dirs now

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2023-01-26 07:13:09 -06:00
parent d58bf6e257
commit ef178cee04
2 changed files with 10 additions and 15 deletions

9
.gitignore vendored
View File

@ -1,8 +1,3 @@
*.deb
mattermost*tar.gz
files/opt
DEBIAN/
files/DEBIAN
control.tar.xz
data.tar.xz
*tar.gz
files/

View File

@ -28,15 +28,15 @@ download:
@echo
@echo
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:
mkdir -p files/opt/
cd files/opt/ && tar xfz ../../mattermost-${VERSION}-linux-amd64.tar.gz
mkdir -p ../files/opt/
cd ../files/opt/ && tar xfz ../../mattermost-${VERSION}-linux-amd64.tar.gz
# update the bash-completion script
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
DEBIAN:
@ -52,12 +52,12 @@ control:
echo Version: ${VERSION}.${MINOR} >>DEBIAN/control
md5sum:
cd files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../DEBIAN/md5sums
cd ../files/ && find -type f -exec md5sum '{}' \; |sort -k2 >../DEBIAN/md5sums
build:
mv DEBIAN files/
dpkg-deb --build files mattermost_${VERSION}.${MINOR}_amd64.deb
dpkg-deb --info mattermost_${VERSION}.${MINOR}_amd64.deb
mv DEBIAN ../files/
cd ../files && dpkg-deb --build files 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
tar-ar: control