| 1 |
#!/usr/bin/make -f |
| 2 |
# -*- makefile -*- |
| 3 |
# Uncomment this to turn on verbose mode. |
| 4 |
# export DH_VERBOSE=1 |
| 5 |
|
| 6 |
# see FEATURE AREAS in dpkg-buildflags(1) |
| 7 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
|
| 9 |
include /usr/share/dpkg/pkg-info.mk |
| 10 |
|
| 11 |
export IRCLIB=/usr/share/ircII/ |
| 12 |
IRC_PATH="~/.irc:/etc/irc/script/:/usr/share/ircII/script/:/usr/lib/irc/script/" |
| 13 |
default_server=irc.debian.org |
| 14 |
CFLAGS += $(CPPFLAGS) |
| 15 |
|
| 16 |
%: |
| 17 |
dh $@ |
| 18 |
|
| 19 |
override_dh_auto_configure: |
| 20 |
dh_auto_configure -- --enable-ipv6 --prefix=/usr --with-default-server=$(default_server) --with-non-blocking=posix |
| 21 |
|
| 22 |
override_dh_auto_build: |
| 23 |
dh_auto_build -- CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" |
| 24 |
|
| 25 |
override_dh_auto_install: |
| 26 |
mv irc ircII |
| 27 |
|
| 28 |
override_dh_fixperms: |
| 29 |
dh_fixperms |
| 30 |
chmod a-x $(CURDIR)/debian/ircii/usr/share/ircII/script/autoquery |
| 31 |
|
| 32 |
override_dh_install: |
| 33 |
dh_install |
| 34 |
echo "set CLIENT_INFORMATION ircii-debian $(DEB_VERSION)" > debian/ircii/usr/share/ircII/script/version |
| 35 |
|
| 36 |
override_dh_missing: |
| 37 |
dh_missing --fail-missing |