more closer to closeness
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
64afa33619
commit
b21a1c374a
22
Makefile
22
Makefile
|
@ -1,14 +1,23 @@
|
||||||
|
.PHONY: control
|
||||||
|
|
||||||
VERSION=7.3.0
|
VERSION=7.3.0
|
||||||
MINOR=v6
|
MINOR=v6
|
||||||
|
|
||||||
all:
|
help:
|
||||||
echo "download the current mattermost tarball"
|
@echo
|
||||||
echo then build the package using the files in .debian/
|
@echo "make all # to attempt to download, extract and build the .deb package"
|
||||||
|
@echo "make raw # to build a .deb using 'tar' and 'ar'"
|
||||||
|
@echo
|
||||||
|
|
||||||
|
all: download clean extract build
|
||||||
|
|
||||||
|
raw: download clean extract raw
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf .debian/files/opt/
|
rm -rf .debian/files/opt/
|
||||||
rm -rf files/opt files/DEBIAN/control
|
rm -rf files/opt files/DEBIAN/control
|
||||||
rm -f *.deb
|
rm -f *.deb
|
||||||
|
rm -f control.tar.xz data.tar.xz
|
||||||
|
|
||||||
download:
|
download:
|
||||||
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
|
||||||
|
@ -23,15 +32,18 @@ extract:
|
||||||
bash-completion:
|
bash-completion:
|
||||||
mattermost completion bash > .debian/files/etc/bash_completion.d/mattermost
|
mattermost completion bash > .debian/files/etc/bash_completion.d/mattermost
|
||||||
|
|
||||||
build:
|
control:
|
||||||
mkdir -p files/DEBIAN
|
mkdir -p files/DEBIAN
|
||||||
cp control files/DEBIAN/
|
cp control files/DEBIAN/
|
||||||
echo Version: ${VERSION}.${MINOR} >>files/DEBIAN/control
|
echo Version: ${VERSION}.${MINOR} >>files/DEBIAN/control
|
||||||
|
|
||||||
|
build: control
|
||||||
dpkg-deb --build files mattermost_${VERSION}.${MINOR}_amd64.deb
|
dpkg-deb --build files mattermost_${VERSION}.${MINOR}_amd64.deb
|
||||||
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
|
||||||
raw:
|
raw: control
|
||||||
cd files/DEBIAN && tar --ignore-failed-read -cvJf ../../control.tar.xz preinst md5sums control
|
cd files/DEBIAN && tar --ignore-failed-read -cvJf ../../control.tar.xz preinst md5sums control
|
||||||
cd files && tar -cvJf ../data.tar.xz .
|
cd files && tar -cvJf ../data.tar.xz .
|
||||||
ar rcs mattermost_${VERSION}.${MINOR}_amd64.deb debian-binary control.tar.xz data.tar.xz
|
ar rcs mattermost_${VERSION}.${MINOR}_amd64.deb debian-binary control.tar.xz data.tar.xz
|
||||||
|
dpkg-deb --info mattermost_${VERSION}.${MINOR}_amd64.deb
|
||||||
|
|
Loading…
Reference in New Issue