gmyth-stream/server/debian/rules
branchtrunk
changeset 853 c738c2ac1968
parent 815 7f290a3a34b1
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gmyth-stream/server/debian/rules	Tue Sep 18 21:01:18 2007 +0100
     1.3 @@ -0,0 +1,52 @@
     1.4 +#!/usr/bin/make -f
     1.5 +# -*- makefile -*-
     1.6 +
     1.7 +# Uncomment this to turn on verbose mode.
     1.8 +#export DH_VERBOSE=1
     1.9 +
    1.10 +PYVER=2.5
    1.11 +PYTHON=python$(PYVER)
    1.12 +
    1.13 +PREFIX=debian/tmp
    1.14 +
    1.15 +build: build-stamp
    1.16 +
    1.17 +build-stamp:
    1.18 +	touch build-stamp
    1.19 +
    1.20 +clean:
    1.21 +	dh_testdir
    1.22 +	dh_testroot
    1.23 +	rm -f build-stamp
    1.24 +	dh_clean
    1.25 +
    1.26 +install: build
    1.27 +	dh_testdir
    1.28 +	dh_testroot
    1.29 +	dh_installdirs
    1.30 +	dh_clean -k
    1.31 +
    1.32 +	@rm -rf build
    1.33 +	@$(PYTHON) setup.py install --prefix=$(PREFIX)/usr --no-compile --install-purelib=$(PREFIX)/usr/share/gms
    1.34 +	install -D -o root -g root -m 755 $(PREFIX)/usr/etc/init.d/gmsd  debian/$(cdbs_curpkg)/etc/init.d/gmsd
    1.35 +	install -D -o root -g root -m 755 $(PREFIX)/usr/etc/gms/server.conf  debian/$(cdbs_curpkg)/etc/gms/server.conf
    1.36 +
    1.37 +	dh_install
    1.38 +
    1.39 +# Build architecture-independent files here.
    1.40 +binary-indep: build install
    1.41 +	dh_testdir
    1.42 +	dh_testroot
    1.43 +	dh_installchangelogs
    1.44 +	dh_installdocs
    1.45 +	dh_strip
    1.46 +	dh_compress
    1.47 +	dh_fixperms
    1.48 +	dh_installdeb
    1.49 +	dh_gencontrol
    1.50 +	dh_md5sums
    1.51 +	dh_builddeb
    1.52 +
    1.53 +binary: binary-indep
    1.54 +.PHONY: clean binary-indep binary install
    1.55 +