File: rules

package info (click to toggle)
yum 3.4.3-2~bpo7%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 5,568 kB
  • sloc: python: 31,746; sh: 892; makefile: 254
file content (84 lines) | stat: -rwxr-xr-x 2,059 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/make -f

#export DH_VERBOSE=1

configure: configure-stamp
configure-stamp:
	dh_testdir
	# Add here commands to configure the package.
	
	touch configure-stamp

#Architecture 
build-arch: build
build: build-indep
build-indep: build-indep-stamp
build-indep-stamp: configure-stamp 

	# Add here commands to compile the indep part of the package.
	#$(MAKE) doc
	$(MAKE) 
	touch build-indep-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-indep-stamp

	# Delete po/yum.pot so it doesn't polute the diff.gz
	#rm -f po/yum.pot

	# Add here commands to clean up after the build process.
	[ ! -f Makefile ] || $(MAKE) clean

	dh_clean 

install: install-indep
install-indep:
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs -i

	$(MAKE) install DESTDIR=$(CURDIR)/debian/yum

	# Remove all traces of yum-cron and yum-updatesd from the package.
	rm -rf $(CURDIR)/debian/yum/etc/rc.d
	rm -rf $(CURDIR)/debian/yum/etc/yum/yum-updatesd.conf
	rm -rf $(CURDIR)/debian/yum/etc/dbus-1
	rm -rf $(CURDIR)/debian/yum/etc/cron.daily
	rm -rf $(CURDIR)/debian/yum/etc/sysconfig
	rm -f $(CURDIR)/debian/yum/usr/sbin/yum-updatesd
	rm -f $(CURDIR)/debian/yum/usr/share/man/man*/yum-updatesd*
	rm -f $(CURDIR)/debian/yum/usr/share/yum-cli/yumupd.py*
	rmdir $(CURDIR)/debian/yum/usr/sbin
	if [ -d $(CURDIR)/debian/yum/usr/lib/python2.7/site-packages ] ; then \
		mv $(CURDIR)/debian/yum/usr/lib/python2.7/site-packages $(CURDIR)/debian/yum/usr/lib/python2.7/dist-packages ; \
	fi

binary-common:
	dh_testdir
	dh_testroot
	dh_installchangelogs ChangeLog
	dh_installdocs
	dh_installexamples
	dh_installman
	dh_link
	dh_strip
	dh_compress 
	dh_fixperms
	dh_python2 --skip-private
	dh_python2 /usr/share/yum-cli
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

# Build architecture independant packages using the common target.
binary-indep: build-indep install-indep
	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common

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