File: rules

package info (click to toggle)
siege 2.66-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,460 kB
  • ctags: 721
  • sloc: sh: 10,489; ansic: 7,710; makefile: 157
file content (24 lines) | stat: -rwxr-xr-x 957 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
#!/usr/bin/make -f

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

DMANDIR=$(CURDIR)/debian/siege/usr/share/man

DEB_CONFIGURE_EXTRA_FLAGS := --prefix="" --bindir="\$${prefix}/usr/bin" --mandir="\$${prefix}/usr/share/man" --sysconfdir="\$${prefix}/etc/siege" CONFIG_SHELL=/bin/dash

DEB_MAKE_INSTALL_TARGET += SIEGERC=$(CURDIR)/debian/siege/etc/siege sysconfdir=$(CURDIR)/debian/siege/etc/siege

install/siege::
	mv $(CURDIR)/debian/siege/usr/bin/siege2csv.pl $(CURDIR)/debian/siege/usr/bin/siege2csv

	# copy example config file to etc/
	cat $(CURDIR)/doc/siegerc | sed -e 's/^logging = true/logging = false/' -e 's/^show-logfile = true/show-logfile = false/' > $(CURDIR)/debian/siege/etc/siege/siegerc

	# move manuals into their FHS-compliant locations
	mv $(DMANDIR)/man5/urls_txt.5 $(DMANDIR)/man5/urls.txt.5

binary/siege::
	dh_installchangelogs ChangeLog