~ubuntu-branches/ubuntu/hardy/squirrelmail/hardy-updates

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Bazaar Package Importer
  • Author(s): Thijs Kinkhorst, Jeroen van Wolffelaar, Thijs Kinkhorst
  • Date: 2005-08-15 21:06:00 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050815210600-qxvat452exjqg64j
Tags: 2:1.4.5-2
[ Jeroen van Wolffelaar ]
* Restore squirrelmail-configure manpage, accidently dropped in -1
* Use debhelper compat level 4

[ Thijs Kinkhorst ]
* Drop obsolete symlink for attachment dir.
* Do not ship upstream README, which contains hardly any information
  relevant to Debian. Extend README.Debian a bit. Thanks W. Borgert.
* Add years to copyright statement.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# squirrelmail install script
3
 
#
4
 
# Makefile by Sam Johnston (samj@debian.org) for Debian GNU/Linux
5
 
 
6
 
#DESTDIR=
7
 
PREFIX=$(DESTDIR)/usr/share/squirrelmail
8
 
 
9
 
default:
10
 
 
11
 
install:
12
 
        # install scripts
13
 
        install -d -m 0755 $(PREFIX)
14
 
        for i in class include functions help images index.php locale plugins po src themes; do \
15
 
          cp -R $$i $(PREFIX) ;\
16
 
        done
17
 
 
18
 
        # install config
19
 
        install -d -m 0755 $(DESTDIR)/etc/squirrelmail
20
 
        #cp config/apache.conf config/conf.pl config/config_default.php $(DESTDIR)/etc/squirrelmail/ 
21
 
        cp config/* $(DESTDIR)/etc/squirrelmail/
22
 
        # move conf.pl to /usr/sbin from /etc as per policy and bug #163995
23
 
        mv $(DESTDIR)/etc/squirrelmail/conf.pl $(DESTDIR)/usr/sbin/squirrelmail-configure
24
 
        ln -s /usr/sbin/squirrelmail-configure $(DESTDIR)/etc/squirrelmail/conf.pl
25
 
        #cp $(DESTDIR)/etc/squirrelmail/config_default.php $(DESTDIR)/etc/squirrelmail/config.php
26
 
        ln -s /etc/squirrelmail $(PREFIX)/config
27
 
 
28
 
        # deal with plugin configs
29
 
        mv $(PREFIX)/plugins/squirrelspell/sqspell_config.php $(DESTDIR)/etc/squirrelmail/
30
 
        ln -s /etc/squirrelmail/sqspell_config.php $(PREFIX)/plugins/squirrelspell/sqspell_config.php
31
 
        mv $(PREFIX)/plugins/filters/setup.php $(DESTDIR)/etc/squirrelmail/filters_setup.php
32
 
        ln -s /etc/squirrelmail/filters_setup.php $(PREFIX)/plugins/filters/setup.php
33
 
 
34
 
        # create attachment spool area
35
 
        install -d $(DESTDIR)/var/spool/squirrelmail
36
 
        install -d -m 0730 -o root -g www-data $(DESTDIR)/var/spool/squirrelmail/attach
37
 
        ln -s /var/spool/squirrelmail/attach $(PREFIX)/attach
38
 
 
39
 
        # create preferences storage area
40
 
        install -d $(DESTDIR)/var/lib/squirrelmail
41
 
        install -d -m 0730 -o root -g www-data $(DESTDIR)/var/lib/squirrelmail/data
42
 
        # data link removed as per bug #181537
43
 
        #ln -s /var/lib/squirrelmail/data $(PREFIX)/data
44
 
        cp data/* $(DESTDIR)/var/lib/squirrelmail/data
45
 
        mv $(DESTDIR)/var/lib/squirrelmail/data/default_pref \
46
 
           $(DESTDIR)/etc/squirrelmail/default_pref
47
 
 
48
 
        # install manpage for squirrelmail-configure
49
 
        install -m 0644 squirrelmail-configure.8 $(DESTDIR)/usr/share/man/man8
50
 
 
51
 
clean:
52
 
 
53
 
distclean: clean
54