File: rules

package info (click to toggle)
ldapscripts 1.4-2
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 232 kB
  • ctags: 4
  • sloc: sh: 231; makefile: 10
file content (24 lines) | stat: -rwxr-xr-x 624 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
include /usr/share/cdbs/1/rules/debhelper.mk

#include /usr/share/cdbs/1/rules/simple-patchsys.mk
#DEB_PATCHDIRS := debian/patches

# definitions
BASEDIR := usr/share/ldapscripts

# documentation
DEB_INSTALL_DOCS_ALL := README VERSION TODO

# changelogs
DEB_INSTALL_CHANGELOGS_ALL := CHANGELOG

#directories
DEB_INSTALL_DIRS_ldapscripts := etc/ldapscripts usr/share/ldapscripts usr/bin

install/ldapscripts::
	sed -i -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"/$(BASEDIR)/runtime\"|g" bin/*
	sed -i -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"/etc/ldapscripts/ldapscripts.conf\"|g" etc/*

clean::
	rm -f debian/compat