File: rules

package info (click to toggle)
grok 1.20110708.1-4
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,388 kB
  • sloc: ansic: 3,469; ruby: 987; makefile: 276; sh: 124; yacc: 106
file content (45 lines) | stat: -rwxr-xr-x 1,441 bytes parent folder | download | duplicates (5)
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
44
45
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

DEB_VERSION := $(shell dpkg-parsechangelog --format rfc822 | grep-dctrl -ensVersion -S .)

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

# Provide DEB_HOST_* and DEB_BUILD_* variables
include /usr/share/dpkg/architecture.mk

%:
	dh $@ 

override_dh_auto_install:
	dh_auto_install
	# Move the library
	install -d debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
	mv debian/tmp/usr/lib/libgrok.so debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgrok.so.1
	ln -s libgrok.so.1 debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libgrok.so

	help2man --no-info --section=1 \
		--version-string="discogrok $(DEB_VERSION)" \
		--name "Discover grok patterns in input" \
		$(CURDIR)/discogrok \
		> $(CURDIR)/debian/discogrok.1

override_dh_install:
	dh_install
	chmod 644 debian/grok/usr/share/grok/patterns/base

override_dh_installchangelogs:
	dh_installchangelogs -- CHANGELIST

override_dh_installexamples:
	dh_installexamples
	sed -i s,patterns/base,/usr/share/grok/patterns/base, debian/grok/usr/share/doc/grok/examples/*.grok

override_dh_strip:
	dh_strip --dbg-package=grok-dbg