File: rules

package info (click to toggle)
lua-geoip 0.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 244 kB
  • sloc: ansic: 765; makefile: 10; sh: 10
file content (15 lines) | stat: -rwxr-xr-x 449 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f

#export DH_LUA_OPTS=verbose
export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=lua --with lua

execute_before_dh_auto_test:
	set -e; for lua_version in "5.1" "5.2" "5.3" "5.4"; do \
		mkdir ./$$lua_version-geoip/geoip; \
		cp ./$$lua_version-geoip.country/geoip/country.so ./$$lua_version-geoip/geoip/country.so; \
	done
	ln -sf /usr/share/GeoIP/GeoIP.dat ./GeoIP.dat
	ln -sf /usr/share/GeoIP/GeoIPv6.dat .