File: rules

package info (click to toggle)
otrs2 2.0.4p01-17
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 7,892 kB
  • ctags: 4,437
  • sloc: perl: 81,607; xml: 8,135; sql: 8,013; sh: 1,113; makefile: 22; php: 16
file content (34 lines) | stat: -rwxr-xr-x 1,219 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

OTRSHOME := /usr/share/otrs

makebuilddir/otrs2::
	@if [ -d doc/manual ]; then \
		echo 'The manual is provided by a separate package otrs2-doc, please remove it.'; \
		exit 1; \
	fi

binary-post-install/otrs2::
	# install lintian.overrides
	cp debian/lintian.overrides $(DEB_DESTDIR)/usr/share/lintian/overrides/otrs2
	
	# setup dbconfig-common
	cat scripts/database/otrs-schema.postgresql.sql \
	    scripts/database/initial_insert.sql > \
	    $(DEB_DESTDIR)/usr/share/dbconfig-common/data/otrs2/install/pgsql
	cat scripts/database/otrs-schema.mysql.sql \
	    scripts/database/initial_insert.sql > \
	    $(DEB_DESTDIR)/usr/share/dbconfig-common/data/otrs2/install/mysql

	# I guess we do not need {redhat,suse,fedora}* stuff in Debian
	rm -f $(DEB_DESTDIR)$(OTRSHOME)/scripts/fedora* \
	      $(DEB_DESTDIR)$(OTRSHOME)/scripts/redhat* \
	      $(DEB_DESTDIR)$(OTRSHOME)/scripts/suse* \
	      $(DEB_DESTDIR)$(OTRSHOME)/bin/Cron4Win32.pl
	# fix permissions to make lintian happy
	find $(DEB_DESTDIR) \( -name '*.pm' -or -name '*.png' -or -name '.fetchmailrc.dist' \) \
	     -exec chmod -x '{}' \;