~ubuntu-branches/ubuntu/intrepid/otrs2/intrepid-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Torsten Werner
  • Date: 2006-06-20 23:35:00 UTC
  • Revision ID: package-import@ubuntu.com-20060620233500-5qzdidoa53xdigt2
Tags: 2.0.4p01-6
removed the PDF manuals because they will be provided with source code by
a separate package 'otrs2-doc'

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
include /usr/share/cdbs/1/rules/debhelper.mk
 
4
include /usr/share/cdbs/1/class/langcore.mk
 
5
 
 
6
OTRSHOME := /usr/share/otrs
 
7
DESTDIR := debian/otrs2
 
8
 
 
9
makebuilddir/otrs2::
 
10
        @if [ -d doc/manual ]; then \
 
11
                echo 'The manual is provided by a separate package otrs2-doc, please remove it.'; \
 
12
                exit 1; \
 
13
        fi
 
14
 
 
15
binary-post-install/otrs2::
 
16
        set -e; \
 
17
        for file in $(DESTDIR)/var/lib/otrs/cron/*; do \
 
18
                mv $${file} $(DESTDIR)/etc/cron.d/otrs_`basename $${file} .dist`; \
 
19
        done; \
 
20
        cd $(DESTDIR)$(OTRSHOME); \
 
21
        for file in Kernel/Config.pm Kernel/Config/GenericAgent.pm; do \
 
22
                cp $${file}.dist ../../../etc/otrs/$${file}; \
 
23
                ln -s /etc/otrs/$${file} $${file}; \
 
24
        done
 
25
        rmdir $(DESTDIR)/var/lib/otrs/cron
 
26
        ln -s /var/lib/otrs $(DESTDIR)$(OTRSHOME)/var
 
27
 
 
28
        # move lintian.overrides into place
 
29
        cp -a debian/lintian.overrides $(DESTDIR)/usr/share/lintian/overrides/otrs
 
30
        # care for fetchmailrc
 
31
        cd $(DESTDIR)/etc/otrs/ && \
 
32
                mv .fetchmailrc.dist fetchmailrc && \
 
33
                chmod 600 fetchmailrc
 
34
        # I guess we do not need {redhat,suse,fedora}* stuff in Debian
 
35
        rm -f $(DESTDIR)/usr/share/otrs/scripts/{redhat,suse,fedora}*
 
36
        # Move apache configuration examples to /usr/share/doc/otrs/examples
 
37
        mv $(DESTDIR)/usr/share/otrs/scripts/*.conf \
 
38
           $(DESTDIR)/usr/share/doc/otrs2/examples
 
39
        mv $(DESTDIR)/usr/share/otrs/Kernel/Output $(DESTDIR)/etc/otrs/
 
40
        ln -s /etc/otrs/Output $(DESTDIR)/usr/share/otrs/Kernel/
 
41