File: rules

package info (click to toggle)
prosody 0.7.0-1squeeze1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,148 kB
  • ctags: 1,171
  • sloc: ansic: 994; sh: 468; makefile: 105
file content (24 lines) | stat: -rwxr-xr-x 856 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
#!/usr/bin/make -f

%:
	dh --with quilt $@

override_dh_auto_configure:
	./configure --lua-suffix=5.1 --with-lua-include=/usr/include/lua5.1 --prefix=/usr --with-ssl=crypto

override_dh_auto_install:
	make install DESTDIR=debian/tmp
	cp tools/ejabberd2prosody.lua debian/tmp/usr/bin/ejabberd2prosody
	mkdir -p debian/tmp/usr/lib/prosody/util
	cp tools/erlparse.lua debian/tmp/usr/lib/prosody/util

override_dh_installman:
	txt2man -t "prosody 8" -r "Prosody IM" -v "" debian/prosody.man.txt | sed 1d > prosody.8
	txt2man -t "prosodyctl 8" -r "Prosody IM" -v "" debian/prosodyctl.man.txt | sed 1d > prosodyctl.8
	txt2man -t "prosodyctl 8" -r "Prosody IM" -v "" debian/ejabberd2prosody.man.txt | sed 1d > ejabberd2prosody.8
	dh_installman

override_dh_install:
	dh_install
	# configuration
	chmod a-x debian/prosody/usr/share/lua/5.1/prosody/prosody.version