2 # This file is part of DisOrder.
3 # Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell
5 # This program is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 2 of the License, or
8 # (at your option) any later version.
10 # This program is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # General Public License for more details.
15 # You should have received a copy of the GNU General Public License
16 # along with this program; if not, write to the Free Software
17 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 CONFIGURE=--prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --mandir=/usr/share/man
26 archpkg([disorder], [ m4_dnl
27 $(MAKE) DESTDIR=`pwd`/debian/disorder staticdir=/var/www/disorder installdirs install
28 rm -f debian/disorder/usr/bin/disorder-playrtp
29 rm -f debian/disorder/usr/bin/disobedience
30 rm -f debian/disorder/usr/share/man/man1/disorder-playrtp.1
31 rm -f debian/disorder/usr/share/man/man1/disobedience.1
32 mkdir -m 755 -p debian/disorder/etc/disorder
33 mkdir -m 755 -p debian/disorder/etc/init.d
34 mkdir -m 755 -p debian/disorder/usr/lib/cgi-bin/disorder
35 mkdir -m 755 -p debian/disorder/var/lib/disorder
36 $(INSTALL_SCRIPT) examples/disorder.init \
37 debian/disorder/etc/init.d/disorder
38 $(INSTALL_DATA) debian/etc.disorder.config \
39 debian/disorder/etc/disorder/config
40 $(INSTALL_DATA) debian/etc.disorder.options \
41 debian/disorder/etc/disorder/options
42 $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) server/disorder.cgi \
43 $(shell pwd)/debian/disorder/usr/lib/cgi-bin/disorder/disorder
44 dpkg-shlibdeps -Tdebian/substvars.disorder \
45 debian/disorder/usr/bin/* \
46 debian/disorder/usr/lib/cgi-bin/disorder/* \
47 debian/disorder/usr/sbin/* \
48 debian/disorder/usr/lib/disorder/*.so*
49 $(INSTALL_DATA) debian/htaccess \
50 debian/disorder/usr/lib/cgi-bin/disorder/.htaccess
51 $(INSTALL_DATA) CHANGES README debian/README.Debian \
53 debian/disorder/usr/share/doc/disorder/.
54 bzr log > debian/disorder/usr/share/doc/disorder/changelog
55 gzip -9f debian/disorder/usr/share/doc/disorder/changelog \
56 debian/disorder/usr/share/doc/disorder/CHANGES \
57 debian/disorder/usr/share/doc/disorder/README \
58 debian/disorder/usr/share/doc/disorder/README.* \
59 debian/disorder/usr/share/doc/disorder/BUGS \
60 debian/disorder/usr/share/man/man*/*
63 archpkg([disorder-playrtp], [ m4_dnl
64 mkdir -p debian/disorder-playrtp/usr/bin
65 mkdir -p debian/disorder-playrtp/usr/share/man/man1
66 $(INSTALL_PROGRAM) clients/disorder-playrtp \
67 debian/disorder-playrtp/usr/bin/disorder-playrtp
68 $(INSTALL_DATA) doc/disorder-playrtp.1 \
69 debian/disorder-playrtp/usr/share/man/man1/disorder-playrtp.1
70 dpkg-shlibdeps -Tdebian/substvars.disorder-playrtp \
71 debian/disorder-playrtp/usr/bin/*
72 $(INSTALL_DATA) debian/README.RTP \
73 debian/disorder-playrtp/usr/share/doc/disorder-playrtp/README
74 $(INSTALL_DATA) CHANGES debian/disorder-playrtp/usr/share/doc/disorder-playrtp/CHANGES
75 gzip -9f debian/disorder-playrtp/usr/share/doc/disorder-playrtp/CHANGES \
76 debian/disorder-playrtp/usr/share/man/man*/*
79 archpkg([disobedience], [ m4_dnl
80 mkdir -p debian/disobedience/usr/bin
81 mkdir -p debian/disobedience/usr/share/man/man1
82 $(MAKE) -C disobedience install DESTDIR=`pwd`/debian/disobedience
83 $(INSTALL_DATA) doc/disobedience.1 \
84 debian/disobedience/usr/share/man/man1/disobedience.1
85 $(INSTALL_DATA) debian/etc.disorder.config \
86 debian/disorder/etc/disorder/config
87 dpkg-shlibdeps -Tdebian/substvars.disobedience \
88 debian/disobedience/usr/bin/*
89 $(INSTALL_DATA) CHANGES debian/disobedience/usr/share/doc/disobedience/CHANGES
90 gzip -9f debian/disobedience/usr/share/doc/disobedience/CHANGES \
91 debian/disobedience/usr/share/man/man*/*