2 # debian/rules file - for Katie (0.0)
3 # Based on sample debian/rules file - for GNU Hello (1.3).
4 # Copyright 1994,1995 by Ian Jackson.
5 # Copyright 1998,1999,2000,2001,2002 James Troup
6 # I hereby give you perpetual unlimited permission to copy,
7 # modify and relicense this file, provided that you do not remove
8 # my name from the file itself. (I assert my moral right of
9 # paternity under the Copyright, Designs and Patents Act 1988.)
10 # This file may have to be extensively modified
12 PYTHONVER := `/usr/bin/python -c 'import sys;print sys.version[:3]'`
22 -rm -rf debian/tmp debian/*~ debian/files* debian/substvars build-stamp
25 binary-indep: checkroot build
29 install -d debian/tmp/DEBIAN/
30 install -m 755 debian/prerm debian/postinst debian/tmp/DEBIAN/
32 install -d debian/tmp/usr/bin/
34 install -m 755 andrea catherine charisma denise fernanda \
35 heidi jenna julia katie madison melanie natalie neve \
36 rene rhona shania tea ziyi debian/tmp/usr/bin/
38 # Compatability symlinks for people using old debs
39 ln -s katie debian/tmp/usr/bin/da_install
40 ln -s katie debian/tmp/usr/bin/dinstall
41 ln -s jenna debian/tmp/usr/bin/da_mkfilelist
42 ln -s heidi debian/tmp/usr/bin/da_tags
43 ln -s catherine debian/tmp/usr/bin/da_poolize
44 ln -s charisma debian/tmp/usr/bin/da_mkmaintainers
45 ln -s neve debian/tmp/usr/bin/da_populate
46 ln -s rhona debian/tmp/usr/bin/da_clean
47 ln -s madison debian/tmp/usr/bin/da_chkver
48 ln -s natalie debian/tmp/usr/bin/da_override
49 ln -s melanie debian/tmp/usr/bin/da_remove
50 ln -s ziyi debian/tmp/usr/bin/da_mkrelease
52 install -d -m 755 debian/tmp/usr/lib/python$(PYTHONVER)/site-packages/
53 install -m 644 db_access.py utils.py claire.py logging.py debian/tmp/usr/lib/python$(PYTHONVER)/site-packages/
54 install -d -m 755 debian/tmp/usr/share/man/man1/
55 install -m 644 docs/*.1 debian/tmp/usr/share/man/man1/
56 gzip -9v debian/tmp/usr/share/man/man1/*
58 install -d -m 755 debian/tmp/etc/katie/
60 install -d debian/tmp/usr/share/doc/katie/
61 install -m 644 debian/changelog debian/tmp/usr/share/doc/katie/changelog.Debian
62 install -m 644 README NEWS THANKS TODO debian/tmp/usr/share/doc/katie/
63 install -m 644 docs/README* debian/tmp/usr/share/doc/katie/
64 install -m 644 ChangeLog debian/tmp/usr/share/doc/katie/changelog
65 gzip -9v debian/tmp/usr/share/doc/katie/*
66 install -m 644 debian/copyright debian/tmp/usr/share/doc/katie/
68 install -d debian/tmp/usr/share/doc/katie/examples/
69 install -m 644 examples/katie.conf debian/tmp/usr/share/doc/katie/examples/
70 # Hoho (err, rather: FIXME)
71 install -m 644 *.sql debian/tmp/usr/share/doc/katie/examples/
72 gzip -9v debian/tmp/usr/share/doc/katie/examples/*
74 dpkg-shlibdeps sql-aptvc.so
75 /usr/bin/python debian/python-dep >> debian/substvars
77 chown -R root.root debian/tmp
78 chmod -R go=rX debian/tmp
79 dpkg --build debian/tmp ..
84 test -f katie -a -f debian/rules
87 # Below here is fairly generic really
89 binary: binary-indep binary-arch
93 test root = "`whoami`"
95 .PHONY: binary binary-arch binary-indep clean checkroot