2008-12-30 00:57:07 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2015-07-24 17:23:32 +02:00
|
|
|
DH_WITH=--with autotools-dev,autoreconf
|
|
|
|
|
|
|
|
clean:
|
|
|
|
[ ! -f Makefile ] || make clean-demo
|
|
|
|
dh clean $(DH_WITH)
|
|
|
|
|
2012-03-24 21:12:55 +01:00
|
|
|
%:
|
2015-07-24 17:23:32 +02:00
|
|
|
dh $@ $(DH_WITH)
|
2008-12-30 00:57:07 +01:00
|
|
|
|
2012-04-11 00:28:53 +02:00
|
|
|
# elf-2012.04.10: Since Debian manages package dependencies we can
|
|
|
|
# force linkage of ssl s.t. the dependency is properly kept
|
|
|
|
# up-to-date. This is much better than attempting to
|
|
|
|
# force the right version of ssl to be present
|
|
|
|
# s.t. the runtime loader can find them.
|
|
|
|
override_dh_auto_configure:
|
|
|
|
dh_auto_configure -- --disable-runtime-loading
|
2012-04-07 19:53:29 +02:00
|
|
|
|
2015-05-15 15:49:32 +02:00
|
|
|
AVAILABLE=debian/shellinabox/etc/shellinabox/options-available
|
|
|
|
ENABLED=debian/shellinabox/etc/shellinabox/options-enabled
|
2012-03-24 21:12:55 +01:00
|
|
|
override_dh_install:
|
2012-03-25 01:26:39 +01:00
|
|
|
dh_install
|
2015-05-15 15:49:32 +02:00
|
|
|
install -D -m644 shellinabox/black-on-white.css "$(AVAILABLE)/00+Black on White.css"
|
2015-05-27 15:00:49 +02:00
|
|
|
install -D -m644 shellinabox/white-on-black.css "$(AVAILABLE)/00_White On Black.css"
|
2015-05-15 15:49:32 +02:00
|
|
|
install -D -m644 shellinabox/color.css "$(AVAILABLE)/01+Color Terminal.css"
|
|
|
|
install -D -m644 shellinabox/monochrome.css "$(AVAILABLE)/01_Monochrome.css"
|
|
|
|
install -D -m644 debian/README.available "$(AVAILABLE)/README"
|
|
|
|
install -D -m644 debian/README.enabled "$(ENABLED)/README"
|
|
|
|
|
|
|
|
# info duplicated in debian/copyright
|
|
|
|
# and /usr/share/common-licenses/GPL-2
|
|
|
|
rm debian/shellinabox/usr/share/doc/shellinabox/COPYING
|
|
|
|
rm debian/shellinabox/usr/share/doc/shellinabox/GPL-2
|