1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2024-11-22 02:17:26 +00:00
mailinabox/ppa/Makefile

31 lines
843 B
Makefile
Raw Normal View History

all:
# Clean.
2015-05-23 16:55:55 +00:00
rm -rf /tmp/build
# Prepare to build source packages.
sudo apt-get install -y git dpkg-dev devscripts dput
2015-05-23 16:55:55 +00:00
mkdir -p /tmp/build
# POSTGREY
# Download our fork of the Debian postgrey package.
2015-05-23 16:55:55 +00:00
git clone https://github.com/mail-in-a-box/postgrey /tmp/build/postgrey
# Download the corresponding upstream package.
2015-05-23 16:55:55 +00:00
wget -O /tmp/build/postgrey_1.35.orig.tar.gz http://postgrey.schweikert.ch/pub/postgrey-1.35.tar.gz
# Build the source package.
sudo apt-get build-dep -y postgrey
2015-05-23 16:55:55 +00:00
(cd /tmp/build/postgrey; dpkg-source -b .)
(cd /tmp/build/postgrey; dpkg-buildpackage -S -us -uc -nc)
# Sign the packages.
2015-05-23 16:55:55 +00:00
debsign /tmp/build/postgrey_1.35-1miab1_source.changes
# Upload to PPA.
2015-05-23 16:55:55 +00:00
dput ppa:mail-in-a-box/ppa /tmp/build/postgrey_1.35-1miab1_source.changes
# Clear the intermediate files.
2015-05-23 16:55:55 +00:00
rm -rf /tmp/build/postgrey