#! /usr/bin/make -f
#
-# Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell
+# Copyright (C) 2004-2008 Richard Kettlewell
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
#
# Options to configure. This can be overridden by the caller if necessary.
-CONFIGURE=--prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --mandir=/usr/share/man
+CONFIGURE=--prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --mandir=/usr/share/man --with-browser=x-www-browser
# Set DEB_BUILD_OPTIONS=noopt to produce a non-optimized build.
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
$(MKDIR) debian/disorder
$(MKDIR) debian/disorder/DEBIAN
$(MKDIR) debian/disorder/usr/share/doc/disorder
+ $(MKDIR) debian/disorder/etc/bash_completion.d
$(INSTALL_DATA) debian/copyright \
debian/disorder/usr/share/doc/disorder/copyright
$(INSTALL_DATA) debian/changelog \
$(MAKE) DESTDIR=`pwd`/debian/disorder installdirs install -C doc
$(MAKE) DESTDIR=`pwd`/debian/disorder installdirs install -C clients
$(MAKE) DESTDIR=`pwd`/debian/disorder installdirs install -C lib
- $(MAKE) DESTDIR=`pwd`/debian/disorder installdirs install -C scripts
+ $(INSTALL_DATA) scripts/completion.bash \
+ debian/disorder/etc/bash_completion.d/disorder
rm -rf debian/disorder/usr/share/man/man8
rm -rf debian/disorder/usr/share/disorder/*.html
+ rmdir debian/disorder/usr/share/disorder
rm -f debian/disorder/usr/bin/disorder-playrtp
rm -f debian/disorder/usr/bin/disobedience
rm -f debian/disorder/usr/share/man/man1/disorder-playrtp.1
rm -rf debian/disorder-server/usr/share/man/man5
$(MKDIR) debian/disorder-server/etc/disorder
$(MKDIR) debian/disorder-server/etc/init.d
- $(MKDIR) debian/disorder-server/usr/lib/cgi-bin/disorder
+ $(MKDIR) debian/disorder-server/usr/lib/cgi-bin
$(MKDIR) debian/disorder-server/var/lib/disorder
$(INSTALL_SCRIPT) examples/disorder.init \
debian/disorder-server/etc/init.d/disorder
$(INSTALL_DATA) debian/etc.disorder.config \
debian/disorder-server/etc/disorder/config
- $(INSTALL_DATA) debian/etc.disorder.options \
+ $(INSTALL_DATA) templates/options \
debian/disorder-server/etc/disorder/options
+ $(INSTALL_DATA) debian/etc.disorder.options.user \
+ debian/disorder-server/etc/disorder/options.user
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) server/disorder.cgi \
- $(shell pwd)/debian/disorder-server/usr/lib/cgi-bin/disorder/disorder
+ $(shell pwd)/debian/disorder-server/usr/lib/cgi-bin/disorder
dpkg-shlibdeps -Tdebian/substvars.disorder-server \
- debian/disorder-server/usr/lib/cgi-bin/disorder/* \
+ debian/disorder-server/usr/lib/cgi-bin/disorder \
debian/disorder-server/usr/sbin/* \
debian/disorder-server/usr/lib/disorder/*.so*
- $(INSTALL_DATA) debian/htaccess \
- debian/disorder-server/usr/lib/cgi-bin/disorder/.htaccess
rm -rf debian/disorder-server/usr/share/doc/disorder-server
ln -s disorder debian/disorder-server/usr/share/doc/disorder-server
dpkg-gencontrol -isp -pdisorder-server -Pdebian/disorder-server -Tdebian/substvars.disorder-server