File: rules

package info (click to toggle)
hal 0.4.7-3sarge1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,544 kB
  • ctags: 4
  • sloc: sh: 149; makefile: 28
file content (44 lines) | stat: -rwxr-xr-x 1,589 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
#!/usr/bin/make -f

DEB_TAR_SRCDIR=hal-0.4.7

include /usr/share/cdbs/1/rules/tarball.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/simple-patchsys.mk

DEB_PYTHON_COMPILE_VERSION = 2.3
DEB_CONFIGURE_EXTRA_FLAGS := --with-hal-user=hal  \
                             --with-hal-group=hal \
                             --enable-hotplug-map  \
                             --with-pid-file=/var/run/hal/hald.pid \
                             --enable-pcmcia-support \
                             --with-stab-file=/var/run/stab \
                             --enable-fstab-sync

binary-predeb/hal-device-manager::
	dh_python -phal-device-manager

common-install-impl::
	# start/stop hal together with dbus
	install -d $(DEB_DESTDIR)/etc/dbus-1/event.d
	install -m 755 debian/hal.init.dbus \
		$(DEB_DESTDIR)/etc/dbus-1/event.d/20hal
	
	# helper scripts and settings for when running with dropped priviledges
	install -m 755 -D debian/hal-unmount.dev \
		$(DEB_DESTDIR)/etc/dev.d/block/hal-unmount.dev
	install -m 755 -D debian/hal.udev.device-removable.sh \
	  $(DEB_DESTDIR)/etc/udev/scripts/device-removable.sh
	install -m 644 -D debian/hal.udev.rules \
	  $(DEB_DESTDIR)/etc/udev/hal.rules
	
	# /etc/hal/fdi is the preferred configuration location in debian
	rmdir $(DEB_DESTDIR)/usr/share/hal/fdi/95userpolicy

	# sony_dsc.fdi only causes troubles
	rm -f $(DEB_DESTDIR)/usr/share/hal/fdi/20freedesktop/sony_dsc.fdi

	# remove the fstab-sync symlink
	rm -f $(DEB_DESTDIR)/etc/hal/device.d/50-fstab-sync.hal