File: rules

package info (click to toggle)
crack 5.0a-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 9,016 kB
  • sloc: ansic: 7,444; perl: 1,375; sh: 1,062; makefile: 218
file content (28 lines) | stat: -rwxr-xr-x 735 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@

override_dh_auto_build:
	debian/Crack.make
	# this is the crypt version, move it to other place
	mv lib/bin/debian/ lib/bin/debian-crypt
	# To build the MD5 version
	mv src/libdes src/libdes.orig
	cd src/util && cp elcid.c elcid.c.orig && cp elcid.c,bsd elcid.c
	debian/Crack.make
	mv lib/bin/debian/ lib/bin/debian-md5
	# Now restore it to the previous situation
	mv src/libdes.orig src/libdes
	cd src/util && cp elcid.c.orig elcid.c

override_dh_auto_clean:
	# This is done just in case
	if [ -d src/libdes.orig ] ; then \
	 mv src/libdes.orig src/libdes ; \
	 cd src/util && cp elcid.c.orig elcid.c ;\
	fi
	dh_auto_clean -- spotless