Compare commits
No commits in common. "ef178cee044cc10b52ca4f18573d9cb46aaddb3c" and "915d0677552bcefedf1074d34fb288987b712f4b" have entirely different histories.
ef178cee04
...
915d067755
|
@ -1,3 +1,8 @@
|
||||||
*.deb
|
*.deb
|
||||||
*tar.gz
|
mattermost*tar.gz
|
||||||
files/
|
files/opt
|
||||||
|
|
||||||
|
DEBIAN/
|
||||||
|
files/DEBIAN
|
||||||
|
control.tar.xz
|
||||||
|
data.tar.xz
|
||||||
|
|
|
@ -28,15 +28,15 @@ download:
|
||||||
@echo
|
@echo
|
||||||
@echo
|
@echo
|
||||||
sleep 3
|
sleep 3
|
||||||
cd .. && wget -c https://releases.mattermost.com/${VERSION}/mattermost-${VERSION}-linux-amd64.tar.gz
|
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:
|
||||||
cd ../ && mattermost completion bash > files/etc/bash_completion.d/mattermost
|
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/
|
||||||
cd ../files && dpkg-deb --build files mattermost_${VERSION}.${MINOR}_amd64.deb
|
dpkg-deb --build files mattermost_${VERSION}.${MINOR}_amd64.deb
|
||||||
cd ../files && dpkg-deb --info mattermost_${VERSION}.${MINOR}_amd64.deb
|
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
|
Loading…
Reference in New Issue