File: rules

package info (click to toggle)
kdebase 2%3A980312-8
  • links: PTS
  • area: contrib
  • in suites: hamm
  • size: 16,500 kB
  • ctags: 11,017
  • sloc: cpp: 77,278; ansic: 14,050; makefile: 2,643; sh: 2,151; perl: 844
file content (85 lines) | stat: -rwxr-xr-x 2,508 bytes parent folder | download
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
85
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

build:
	dh_testdir
## prefix is useless and leads to problems, since configure looks for
## $prefix/include only, if it's given
	( CFLAGS="-O2 -g -Wall -DUTMP_SUPPORT -DUTMP='\"/var/run/utmp\"'" \
	  CXXFLAGS="-O2 -g -Wall" \
	  RUN_KAPPFINDER="no" \
	./configure --with-shadow --without-pam \
	--enable-debug --with-install-root=`pwd`/debian/tmp \
	--disable-rpath )

	make

	touch build

clean:
	dh_testdir
	-rm -f build
	-make distclean
	-rm -f `find . -name "*~"`
	-rm -f `find . -name "*.moc"`
	-rm -rf debian/tmp debian/files* core debian/substvars \
		debian/menu debian/*shlibs*

binary-indep:	checkroot build
	$(checkdir)
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch:	checkroot build
	dh_testdir
	dh_testroot
	dh_clean -k
	make install prefix=`pwd`/debian/tmp/usr
	-mv debian/tmp/etc/kde/kdmrc \
			debian/tmp/etc/kde/kdmrc.in
	perl debian/kderules
	cp debian/README.kde debian/tmp/usr/doc/kde
	install -d debian/tmp/etc/init.d
	cp debian/kdm.init.d debian/tmp/etc/init.d/kdm
	install -d debian/tmp/usr/X11R6/bin
	cp debian/kde debian/tmp/usr/X11R6/bin
	install -d debian/tmp/usr/sbin
	cp debian/switchdm debian/tmp/usr/sbin
	install -d debian/tmp/etc/menu-methods
	cp debian/menu-method debian/tmp/etc/menu-methods/kde
	install -d debian/tmp/etc/X11
	rm -rf debian/tmp/usr/share/applnk/debian_menu
	install -d debian/tmp/usr/share/applnk/debian_menu
	cp debian/debian.directory \
	      debian/tmp/usr/share/applnk/debian_menu/.directory
	chmod +x debian/tmp/etc/init.d/kdm debian/tmp/usr/sbin/switchdm \
		debian/tmp/usr/X11R6/bin/kde debian/tmp/etc/menu-methods/kde 
	rm -f debian/tmp/usr/X11R6/bin/startkde
	ln -s kde debian/tmp/usr/X11R6/bin/startkde
	dh_movefiles
	dh_undocumented `cat debian/man-pages`
	dh_installdocs
	dh_installchangelogs
	dh_strip
	dh_compress
	dh_fixperms
#       as less suids as possible!
	chmod 755 debian/tmp/usr/X11R6/bin/klock 
	chown root.shadow debian/tmp/usr/X11R6/bin/*kss
	chmod 2755 debian/tmp/usr/X11R6/bin/*kss
#       security problem
#       chmod 4755 debian/tmp/usr/X11R6/bin/kvt       
	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol	
	dh_md5sums
	dh_builddeb

# Below here is fairly generic really

binary:		binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean checkroot