LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File debian.rules of Package wicd (Project system:wicd)

#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export DH_COMPAT=4

include /usr/share/quilt/quilt.make

build: build-stamp
build-stamp: $(QUILT_STAMPFN)
	dh build --before dh_auto_configure
	python setup.py configure --no-install-docs --lib=/usr/share/wicd --share=/usr/share/wicd --wicdgroup=netdev
	python setup.py build
	dh build --after dh_auto_build
	touch $@

clean: unpatch
	dh clean --before dh_auto_clean
	python setup.py clean
	dh clean --after dh_auto_clean
	find . \( -name "*.pyc" -o -name "*.pyo" \) -delete
	find ./init/ \( -name "wicd" -o -name "rc.wicd" \) -delete
	-rm -rf build/

	dh_clean wpath.py install.log os wicd/wpath.py \
		man/*.8 man/*.5 scripts/* other/*.sh \
		other/postinst other/55wicd

install: build
	dh install --before dh_auto_install
	python setup.py install --root=$(CURDIR)/debian/wicd --install-lib=/usr/share/wicd 
	find $(CURDIR)/debian/wicd -name "*.png" -exec chmod 644 {} \;
	find $(CURDIR)/debian/wicd/etc/wicd/ -type f -exec chmod 644 {} \;
	find $(CURDIR)/debian/wicd \( -name "*.glade" -o -name "*.conf" -o -name "*.desktop" \) -exec chmod 644 {} \;
	-rm -rf $(CURDIR)/debian/wicd/var/run

	dh install --after dh_auto_install --before dh_installinit
	dh_pysupport -i
	dh_installinit -i
	dh install --after dh_installinit

binary-indep: build install
	dh binary-indep 

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install