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 *.deb
mattermost*tar.gz *tar.gz
files/opt files/
DEBIAN/
files/DEBIAN
control.tar.xz
data.tar.xz

View File

@ -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