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
|
export DH_OPTIONS
include /usr/share/dpkg/default.mk
export DEB_LDFLAGS_MAINT_APPEND=-Wl,--as-needed
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
ifeq ($(DEB_HOST_ARCH_OS), linux)
CONFIGURE_ARGS+=--enable-epoll
else ifeq ($(DEB_HOST_ARCH_OS), kfreebsd)
CONFIGURE_ARGS+=--enable-kqueue
else ifeq ($(DEB_HOST_ARCH_OS), solaris)
CONFIGURE_ARGS+=--enable-ports
else
CONFIGURE_ARGS+=--enable-poll
endif
ifdef DEB_DEBUG
CONFIGURE_ARGS+=--enable-warnings --enable-iodebug
endif
ifneq ($(filter pkg.charybdis.openssl,$(DEB_BUILD_PROFILES)),)
CONFIGURE_ARGS+=--enable-openssl
else ifneq ($(filter pkg.charybdis.gnutls,$(DEB_BUILD_PROFILES)),)
CONFIGURE_ARGS+=--disable-openssl --enable-gnutls
else
CONFIGURE_ARGS+=--disable-openssl --enable-mbedtls
endif
ifdef DEB_NICKLEN
CONFIGURE_ARGS+=--with-nicklen=$(DEB_NICKLEN)
endif
EXTERNAL_BUILD_TIMESTAMP?=$(shell LC_ALL=C date --utc -d @$(SOURCE_DATE_EPOCH))
export EXTERNAL_BUILD_TIMESTAMP
override_dh_auto_configure:
dh_auto_configure -- --prefix=/usr --with-confdir=/etc/charybdis \
${CONFIGURE_ARGS} \
--with-program-prefix=charybdis- \
--enable-fhs-paths \
--libdir=/usr/lib/charybdis/ \
--localstatedir=/var/lib/ \
--with-helpdir=/usr/share/doc/charybdis/help/ \
--with-logdir=/var/log/charybdis/ \
--with-rundir=/var/run/ \
--with-moduledir=/usr/lib/charybdis/modules \
--with-shared-sqlite \
--enable-ipv6
override_dh_auto_install:
dh_auto_install --destdir=debian/charybdis
rmdir $(CURDIR)/debian/charybdis/usr/logs
rm $(CURDIR)/debian/charybdis/usr/lib/charybdis/librb.la
rm $(CURDIR)/debian/charybdis/usr/lib/charybdis/libircd.la
mv $(CURDIR)/debian/charybdis/etc/charybdis/ircd.conf.example $(CURDIR)/debian/charybdis/etc/charybdis/ircd.conf
override_dh_installinit:
dh_installinit -R
%:
dh $@
|