File: rules

package info (click to toggle)
otrs2 2.2.7-2lenny3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 13,444 kB
  • ctags: 5,808
  • sloc: perl: 129,825; xml: 16,139; sql: 11,400; sh: 1,198; makefile: 31; php: 16
file content (43 lines) | stat: -rwxr-xr-x 1,517 bytes parent folder | download
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
35
36
37
38
39
40
41
42
43
#!/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
DB_DIR   := /usr/share/dbconfig-common/data/otrs2

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/otrs-initial_insert.postgresql.sql > \
	    $(DEB_DESTDIR)$(DB_DIR)/install/pgsql
	cp  scripts/DBUpdate-to-2.1.postgresql.sql \
	    $(DEB_DESTDIR)$(DB_DIR)/upgrade/pgsql/2.1.1-1
	cp  scripts/DBUpdate-to-2.2.postgresql.sql \
	    $(DEB_DESTDIR)$(DB_DIR)/upgrade/pgsql/2.2.0~beta1-1
	cat scripts/database/otrs-schema.mysql.sql \
	    scripts/database/otrs-initial_insert.mysql.sql > \
	    $(DEB_DESTDIR)$(DB_DIR)/install/mysql
	cp  scripts/DBUpdate-to-2.1.mysql.sql \
	    $(DEB_DESTDIR)$(DB_DIR)/upgrade/mysql/2.1.1-1
	cp  scripts/DBUpdate-to-2.2.mysql.sql \
	    $(DEB_DESTDIR)$(DB_DIR)/upgrade/mysql/2.2.0~beta1-1

	# 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

get-orig-source:
	-uscan --upstream-version 0