2008-12-30 00:57:07 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
|
|
|
# Sample debian/rules that uses debhelper.
|
|
|
|
# This file was originally written by Joey Hess and Craig Small.
|
|
|
|
# As a special exception, when this file is copied by dh-make into a
|
|
|
|
# dh-make output file, you may use that output file without restriction.
|
|
|
|
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2012-03-24 21:12:55 +01:00
|
|
|
%:
|
2015-05-13 08:56:30 +02:00
|
|
|
dh $@ --with autotools-dev,autoreconf
|
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
|
|
|
|
2012-03-24 21:12:55 +01:00
|
|
|
# elf-2012.03.24: This work should be done in the Makefile install
|
|
|
|
# target instead of debian/rules.
|
2012-04-16 03:01:05 +02:00
|
|
|
DESTDIR=$(CURDIR)/debian/tmp
|
2012-03-24 21:12:55 +01:00
|
|
|
override_dh_install:
|
2008-12-30 00:57:07 +01:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
2012-03-24 21:12:55 +01:00
|
|
|
dh_prep
|
2008-12-30 00:57:07 +01:00
|
|
|
dh_installdirs
|
2012-04-16 03:01:05 +02:00
|
|
|
# We need to install some files for the benefit of Debian that aren't
|
|
|
|
# going into the program instal target. So, we install into
|
|
|
|
# debian/tmp the things that need to be included in the package.
|
|
|
|
$(MAKE) install DESTDIR=$(DESTDIR)
|
2012-03-24 21:12:55 +01:00
|
|
|
# Set up system-wide user CSS style options
|
2012-04-16 03:01:05 +02:00
|
|
|
mkdir -p "$(DESTDIR)/etc/shellinabox/options-available"
|
|
|
|
mkdir -p "$(DESTDIR)/etc/shellinabox/options-enabled"
|
|
|
|
for i in \
|
|
|
|
"00+Black on White" \
|
|
|
|
"00_White On Black" \
|
|
|
|
"01_Monochrome" \
|
|
|
|
"01+Color Terminal"; do \
|
|
|
|
cp "$(DESTDIR)/usr/share/doc/shellinabox/$$(echo "$$i"| \
|
|
|
|
sed -e 's/[0-9]*[_+]\([^ ]*\).*/\1/'| \
|
|
|
|
tr A-Z a-z)"*.css \
|
|
|
|
"$(DESTDIR)/etc/shellinabox/options-available/$$i.css"; \
|
2009-08-15 07:24:31 +02:00
|
|
|
done
|
2012-04-16 03:01:05 +02:00
|
|
|
cd "$(DESTDIR)/etc/shellinabox/options-enabled" \
|
|
|
|
&& ln -s ../options-available/*.css .
|
2009-08-15 07:24:31 +02:00
|
|
|
cp "$(CURDIR)/debian/README.available" \
|
2012-04-16 03:01:05 +02:00
|
|
|
"$(DESTDIR)/etc/shellinabox/options-available/README"
|
2009-08-15 07:24:31 +02:00
|
|
|
cp "$(CURDIR)/debian/README.enabled" \
|
2012-04-16 03:01:05 +02:00
|
|
|
"$(DESTDIR)/etc/shellinabox/options-enabled/README"
|
|
|
|
# Shellinabox home directory
|
|
|
|
# mkdir -p "$(DESTDIR)/var/lib/shellinabox"
|
|
|
|
# Now perform the normal debhelper install.
|
2012-03-25 01:26:39 +01:00
|
|
|
dh_install
|