This file is indexed.

/usr/share/linux-wlan-ng-firmware/debian/rules is in linux-wlan-ng-firmware 0.2.9+dfsg-5.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 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
86
87
88
89
90
91
92
93
94
95
96
97
#!/usr/bin/make -f

# debug
#export DH_VERBOSE=y
#export TO_NULL=&>/dev/null
#TO_NULL=&>/dev/null
#MAKEFLAGS+=-s --no-print-directory

#export DH_OPTIONS

# used by debian/config-for-lwng that is sourced by ./Configure
# in this way no modules are built and no errors are reported if there are no
# kenrel headers
ENV=BUILD_MODULES=n BUILD_UTILS=y

TARGET_DIR=debian/tmp/etc/wlan/
TARGET_DIR_COPYRIGHT=debian/tmp/usr/share/doc/linux-wlan-ng-firmware-files/

###################### CONFIGURATION ###################################
configure-stamp:
	@echo detected flavours for current arch are: $(flavours)
	# to make the configure script happy we have to provide a real
	# kernel source tree.
	$(ENV) CC=$(CC) ./Configure -d debian/config-for-lwng $(TO_NULL)
	touch configure-stamp


# install stuff that is arch dependent
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	# firmware files	
	mkdir -p $(TARGET_DIR)
	for x in src/prism2/*.hex ; do \
		if [ -f "$$x" ]; then \
			SUFFIX=`echo $$x |  cut -c12-13`;\
			cp $$x $(TARGET_DIR)prism2_$$SUFFIX.hex ; \
		fi; \
	done

	# copyright
	mkdir -p $(TARGET_DIR_COPYRIGHT)
	cp src/prism2/README.firmware $(TARGET_DIR_COPYRIGHT)/copyright 

	# prism2dl
	mkdir -p debian/tmp/sbin
	cp src/prism2/download/prism2dl debian/tmp/sbin/

	if [ -f man/prism2dl.1.no ]; then \
		mv man/prism2dl.1.no man/prism2dl.1; \
	fi

	touch install-stamp

binary-indep:

build-stamp: configure-stamp
	dh_testdir

# prism2dl binary
	$(MAKE) -C src/mkmeta $(TO_NULL)
	$(MAKE) -C src/prism2/download $(TO_NULL)

	touch build-stamp

build: build-stamp

############################ CLEAN ################################

clean:
	dh_clean debian/postinst

# stamps
	$(RM) configure-stamp build-stamp install-stamp 
	
########################## MAIN ##################################

binary-arch: install-stamp
	dh_installdirs
	dh_install
	dh_installchangelogs
	dh_strip 
	dh_fixperms
	dh_shlibdeps
	dh_installdeb
	dh_installman  $(DH_OPTIONS) man/prism2dl.1
	dh_gencontrol
	dh_compress
	dh_md5sums
	dh_builddeb
	
binary: binary-arch 

.PHONY: build clean binary-arch binary