two seperate packaging dirs now
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
d58bf6e257
commit
ef178cee04
|
@ -1,8 +1,3 @@
|
|||
*.deb
|
||||
mattermost*tar.gz
|
||||
files/opt
|
||||
|
||||
DEBIAN/
|
||||
files/DEBIAN
|
||||
control.tar.xz
|
||||
data.tar.xz
|
||||
*tar.gz
|
||||
files/
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue