Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 64 lines (54 sloc) 1.687 kb
#!/usr/bin/make -f
PYTHON2 ?= $(shell pyversions -vr)
# copy good script for upstart capable system or not
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
PREPINITSRC='debian/thumbor.ubuntu.upstart'
PREPINITDST='debian/thumbor.upstart'
else
PREPINITSRC='debian/thumbor.debian.init'
PREPINITDST='debian/thumbor.init'
endif
build build-arch: debsetup.py
python$(PYTHON2) debsetup.py build
# Create a special setup.py which skips the tornado and Pillow dependencies.
# This is necessary to work around broken packaging for those two packages on
# Ubuntu.
debsetup.py: setup.py
sed -e '/install_requires/,/\]/ { /\(tornado\|Pillow\|python-magic\)/d }' $^ > $@
build-indep:
@echo Nothing to do
binary: binary-arch
binary-indep:
@echo Nothing to do
binary-arch: build-arch
dh_testroot
dh_prep
python$(PYTHON2) debsetup.py install --root=$(CURDIR)/debian/tmp --install-layout=deb
install -d -o root -g root -m 755 debian/thumbor/etc debian/thumbor/etc/init/
install -p -o root -g root -m 644 debian/thumbor.conf debian/thumbor/etc
install -p -o root -g root -m 644 debian/thumbor-worker.upstart debian/thumbor/etc/init/thumbor-worker.conf
rm -f debian/thumbor.upstart debian/thumbor.init
cp $(PREPINITSRC) $(PREPINITDST)
dh_install --exclude=.c
dh_python2
dh_strip
dh_shlibdeps
dh_installdirs
dh_installdocs README.mkd
$(PREPINIT)
dh_installinit --restart-after-upgrade
dh_installchangelogs
dh_lintian
dh_compress
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
clean:
dh_clean
rm -f debian/thumbor.upstart debian/thumbor.init
rm -f debsetup.py
rm -rf build
rm -rf *.egg-info
find . -name \*.pyc -exec rm {} \;
Jump to Line
Something went wrong with that request. Please try again.