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
|
#!/usr/bin/make -f
SHELL=/bin/bash -e
#export DH_VERBOSE=1
NOISY=1
include debian/scripts/vars
BUILD_DIR := $(SOURCE_DIR)/$(TAR_DIR)
B := $(BUILD_DIR)
D := $(CURDIR)/debian/hotplug
all: build
unpack: $(STAMP_DIR)/unpack
$(STAMP_DIR)/unpack:
$(MAKE) -f debian/sys-build.mk source.make
touch $@
# used by the maintainer
unpack.nopatch:
$(MAKE) -f debian/sys-build.mk source.build
# used by the maintainer
diff:
$(MAKE) -f debian/sys-build.mk make-diff
clean:
$(MAKE) -f debian/sys-build.mk source.clean
dh_clean
build:
install: $(STAMP_DIR)/install
$(STAMP_DIR)/install: $(STAMP_DIR)/unpack
dh_testdir
dh_clean -k
dh_installdirs
install --mode=755 $B/sbin/hotplug $D/sbin/hotplug
install --mode=755 $B/etc/hotplug.d/default/default.hotplug \
$D/etc/hotplug.d/default/default.hotplug
install --mode=755 $B/etc/hotplug/*.agent $B/etc/hotplug/*.rc \
$B/etc/hotplug/net.ifup \
$B/etc/hotplug/*.permissions extra/*.rc $D/etc/hotplug/
install --mode=644 $B/etc/hotplug/usb.handmap $B/etc/hotplug/blacklist \
$B/etc/hotplug/hotplug.functions $D/etc/hotplug/
install --mode=644 extra/isapnp.aliases $D/etc/modprobe.d/isapnp
dh_installdocs $(addprefix $B/,$(DOCS)) extra/README.modules
dh_installchangelogs $B/ChangeLog
dh_installexamples $B/etc/hotplug/usb.usermap
sed -e 's:sysconfig/usb:default/hotplug.usb:' \
< $B/README > $D/usr/share/doc/hotplug/README
dh_installman $B/hotplug.8
dh_installlogcheck
dh_installinit --no-start --update-rcd-params='start 40 S .'
dh_installinit --no-start \
--update-rcd-params='start 41 S . stop 89 0 6 .' \
--name=hotplug-net
touch $@
binary-indep: $(STAMP_DIR)/install checkroot
dh_testdir
dh_compress
dh_fixperms
dh_installdebconf
dh_installdeb
dh_gencontrol
dh_builddeb
binary: binary-indep
checkroot:
test root = "`whoami`"
.PHONY: binary binary-arch binary-indep unpack configure build clean checkroot
|