7ecd468128
o Moved libssl from a dependency to being recommended. o Added small program to support Recommended link generation. o Fixed typo in lsb-base dependency. o Added comment in the package description about the need for libssl. o Fixed permissions on libhttp/ssl.c o Added environment variables for specifying the ssl and crypto libraries.
59 lines
2.7 KiB
Makefile
Executable file
59 lines
2.7 KiB
Makefile
Executable file
#!/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
|
|
|
|
%:
|
|
dh $@ --with autotools-dev
|
|
|
|
|
|
# elf-2012.04.07: Because the daemon loads libssl.so-X dynamically
|
|
# there is no way for the debhelper script to find the
|
|
# library name to add to the dependencies. So we
|
|
# link a small program to provide a target for
|
|
# dpkg-shlibdeps to use to recover the dependency.
|
|
override_dh_shlibdeps:
|
|
gcc -o debian/shellinabox/ssl-deps debian/ssl-deps.c -lcrypto
|
|
dpkg-shlibdeps -Tdebian/shellinabox.substvars debian/shellinabox/usr/bin/shellinaboxd \
|
|
-dRecommends debian/shellinabox/ssl-deps
|
|
rm debian/shellinabox/ssl-deps
|
|
|
|
# elf-2012.03.24: This work should be done in the Makefile install
|
|
# target instead of debian/rules.
|
|
override_dh_install:
|
|
dh_testdir
|
|
dh_testroot
|
|
dh_prep
|
|
dh_installdirs
|
|
@# Add here commands to install the package into debian/tmp
|
|
$(MAKE) install DESTDIR="$(CURDIR)/debian/tmp"
|
|
# Set up system-wide user CSS style options
|
|
mkdir -p "$(CURDIR)/debian/tmp/etc/shellinabox/options-available" \
|
|
"$(CURDIR)/debian/tmp/etc/shellinabox/options-enabled"
|
|
for i in "00+Black on White" "00_White On Black" \
|
|
"01_Monochrome" "01+Color Terminal"; do \
|
|
cp "$(CURDIR)/debian/tmp/usr/share/doc/shellinabox/$$(echo "$$i"| \
|
|
sed -e 's/[0-9]*[_+]\([^ ]*\).*/\1/'| \
|
|
tr A-Z a-z)"*.css \
|
|
"$(CURDIR)/debian/tmp/etc/shellinabox/options-available/$$i.css";\
|
|
done
|
|
cd "$(CURDIR)/debian/tmp/etc/shellinabox/options-enabled" && \
|
|
ln -s ../options-available/*.css .
|
|
cp "$(CURDIR)/debian/README.available" \
|
|
"$(CURDIR)/debian/tmp/etc/shellinabox/options-available/README"
|
|
cp "$(CURDIR)/debian/README.enabled" \
|
|
"$(CURDIR)/debian/tmp/etc/shellinabox/options-enabled/README"
|
|
# Add Lintian override. ShellInABox has an explicit exemption allowing
|
|
# the linking its GPLv2 code with OpenSSL.
|
|
mkdir -p "$(CURDIR)/debian/tmp/usr/share/lintian/overrides/"
|
|
{ echo '# ShellInABox has an explicit exemption allowing the linking';\
|
|
echo '# of its GPLv2 code with OpenSSL'; \
|
|
echo 'shellinabox binary: possible-gpl-code-linked-with-openssl'; } \
|
|
>"$(CURDIR)/debian/tmp/usr/share/lintian/overrides/shellinabox"
|
|
dh_install
|