Commit | Line | Data |
---|---|---|
460b9539 | 1 | # |
2 | # This file is part of DisOrder. | |
eb525fcd | 3 | # Copyright (C) 2004, 2005, 2006, 2007 Richard Kettlewell |
460b9539 | 4 | # |
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. | |
9 | # | |
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. | |
14 | # | |
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 | |
18 | # USA | |
19 | # | |
20 | ||
21 | CONFIGURE=--prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib --mandir=/usr/share/man | |
22 | LIBTOOL=./libtool | |
23 | ||
24 | build | |
25 | ||
26 | archpkg([disorder], [ m4_dnl | |
27 | $(MAKE) DESTDIR=`pwd`/debian/disorder staticdir=/var/www/disorder installdirs install | |
66ec39ed | 28 | rm -f debian/disorder/usr/bin/disorder-playrtp |
6f3acea9 | 29 | rm -f debian/disorder/usr/bin/disobedience |
66ec39ed | 30 | rm -f debian/disorder/usr/share/man/man1/disorder-playrtp.1 |
6f3acea9 | 31 | rm -f debian/disorder/usr/share/man/man1/disobedience.1 |
460b9539 | 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 | mkdir -m 755 -p debian/disorder/usr/share/doc/disorder/ChangeLog.d | |
37 | $(INSTALL) -m 755 examples/disorder.init \ | |
38 | debian/disorder/etc/init.d/disorder | |
6f3acea9 | 39 | $(INSTALL) -m 644 debian/etc.disorder.config \ |
460b9539 | 40 | debian/disorder/etc/disorder/config |
6f3acea9 | 41 | $(INSTALL) -m 644 debian/etc.disorder.options \ |
460b9539 | 42 | debian/disorder/etc/disorder/options |
f1b2e9ac | 43 | $(LIBTOOL) --mode=install $(INSTALL) -m 755 server/disorder.cgi \ |
460b9539 | 44 | $(shell pwd)/debian/disorder/usr/lib/cgi-bin/disorder/disorder |
45 | dpkg-shlibdeps -Tdebian/substvars.disorder \ | |
46 | debian/disorder/usr/bin/* \ | |
47 | debian/disorder/usr/lib/cgi-bin/disorder/* \ | |
48 | debian/disorder/usr/sbin/* \ | |
460b9539 | 49 | debian/disorder/usr/lib/disorder/*.so* |
f1b2e9ac | 50 | $(INSTALL) -m 644 debian/htaccess \ |
460b9539 | 51 | debian/disorder/usr/lib/cgi-bin/disorder/.htaccess |
f1b2e9ac | 52 | $(INSTALL) -m 644 CHANGES README debian/README.Debian \ |
460b9539 | 53 | BUGS README.* \ |
54 | debian/disorder/usr/share/doc/disorder/. | |
f1b2e9ac | 55 | $(INSTALL) -m 644 ChangeLog.d/*--* \ |
460b9539 | 56 | debian/disorder/usr/share/doc/disorder/ChangeLog.d |
f1b2e9ac | 57 | $(INSTALL) -m 644 COPYING debian/disorder/usr/share/doc/disorder/GPL |
460b9539 | 58 | gzip -9f debian/disorder/usr/share/doc/disorder/ChangeLog.d/*--* \ |
59 | debian/disorder/usr/share/doc/disorder/CHANGES \ | |
60 | debian/disorder/usr/share/doc/disorder/README \ | |
61 | debian/disorder/usr/share/doc/disorder/README.* \ | |
62 | debian/disorder/usr/share/doc/disorder/BUGS \ | |
f1b2e9ac RK |
63 | debian/disorder/usr/share/doc/disorder/GPL \ |
64 | debian/disorder/usr/share/man/man*/* | |
460b9539 | 65 | ]) |
66 | ||
66ec39ed RK |
67 | archpkg([disorder-playrtp], [ m4_dnl |
68 | mkdir -p debian/disorder-playrtp/usr/bin | |
69 | mkdir -p debian/disorder-playrtp/usr/share/man/man1 | |
70 | $(INSTALL) -m 755 clients/disorder-playrtp \ | |
71 | debian/disorder-playrtp/usr/bin/disorder-playrtp | |
72 | $(INSTALL) -m 755 doc/disorder-playrtp.1 \ | |
73 | debian/disorder-playrtp/usr/share/man/man1/disorder-playrtp.1 | |
74 | dpkg-shlibdeps -Tdebian/substvars.disorder-playrtp \ | |
75 | debian/disorder-playrtp/usr/bin/* | |
76 | $(INSTALL) -m 644 debian/README.RTP \ | |
77 | debian/disorder-playrtp/usr/share/doc/disorder-playrtp/README | |
78 | $(INSTALL) -m 644 COPYING debian/disorder-playrtp/usr/share/doc/disorder-playrtp/GPL | |
6f3acea9 | 79 | $(INSTALL) -m 644 CHANGES debian/disorder-playrtp/usr/share/doc/disorder-playrtp/CHANGES |
66ec39ed | 80 | gzip -9f debian/disorder-playrtp/usr/share/doc/disorder-playrtp/GPL \ |
6f3acea9 | 81 | debian/disorder-playrtp/usr/share/doc/disorder-playrtp/CHANGES \ |
66ec39ed RK |
82 | debian/disorder-playrtp/usr/share/man/man*/* |
83 | ]) | |
84 | ||
6f3acea9 RK |
85 | archpkg([disobedience], [ m4_dnl |
86 | mkdir -p debian/disobedience/usr/bin | |
87 | mkdir -p debian/disobedience/usr/share/man/man1 | |
88 | $(INSTALL) -m 755 disobedience/disobedience \ | |
89 | debian/disobedience/usr/bin/disobedience | |
90 | $(INSTALL) -m 755 doc/disobedience.1 \ | |
91 | debian/disobedience/usr/share/man/man1/disobedience.1 | |
92 | $(INSTALL) -m 644 debian/etc.disorder.config \ | |
93 | debian/disorder/etc/disorder/config | |
94 | dpkg-shlibdeps -Tdebian/substvars.disobedience \ | |
95 | debian/disobedience/usr/bin/* | |
96 | $(INSTALL) -m 644 COPYING debian/disobedience/usr/share/doc/disobedience/GPL | |
97 | $(INSTALL) -m 644 CHANGES debian/disobedience/usr/share/doc/disobedience/CHANGES | |
98 | gzip -9f debian/disobedience/usr/share/doc/disobedience/GPL \ | |
99 | debian/disobedience/usr/share/doc/disobedience/CHANGES \ | |
100 | debian/disobedience/usr/share/man/man*/* | |
101 | ]) | |
102 | ||
460b9539 | 103 | binary |
104 | ||
105 | clean | |
106 | ||
107 | regenerate |