source: trunk/rules.deb-light.in@ 238

Last change on this file since 238 was 209, checked in by katerina, 16 years ago

Fix problem building deb package (ticket #135).

File size: 2.9 KB
RevLine 
[1]1#!/usr/bin/make -f
2# Samhain debian/rules
3# GNU copyright 20001 to 2003 by Javier Fernandez-Sanguino
4# based on
5# Sample debian/rules that uses debhelper.
6# GNU copyright 1997 to 1999 by Joey Hess.
7# Modified to use mydefargs by Rainer Wichmann.
8#
9
10# Uncomment this to turn on verbose mode.
11#export DH_VERBOSE=1
12
13# This is the debhelper compatability version to use.
[209]14export DH_COMPAT=4
[1]15
16package=@install_name@
17
18# CAVEAT: including the --enable-base= option is for packages to be
19# distributed INTERNALLY on your network, NOT for packages
20# to be distributed to THIRD PARTIES
21
22build: build-stamp
23build-stamp:
24 dh_testdir
25 @top_srcdir@/configure @mydefargs@
26 $(MAKE)
27 echo '#!/bin/sh' > ./sstrip
28 echo 'echo "*** SSTRIP DISABLED ***"' >> ./sstrip
29 touch build-stamp
30
31clean:
32 dh_testdir
33 dh_testroot
34 rm -f build-stamp
35 -[ -f Makefile ] && $(MAKE) distclean
36 dh_clean
37
38install: build
39 dh_testdir
40 dh_testroot
41 dh_clean -k
42 dh_installdirs
43
[209]44 $(MAKE) install-light install-boot DESTDIR=`pwd`/debian/@install_name@
45 # $(MAKE) install-light install-boot DESTDIR=`pwd`/debian/tmp
[1]46
47 # However, remove the rc.d links
48 -rm -rf `pwd`/debian/tmp/etc/rc?.d
49
50 # Remove samhain_stealth for light install
51 -rm -f `pwd`/debian/tmp/@sbindir@/@install_name@_stealth
52
53# Build architecture-independent files here.
54binary-indep: build install
55# We have nothing to do by default.
56
57
58# Build architecture-dependent files here.
59binary-arch: build install
60# dh_testversion
61 dh_testdir
62 dh_testroot
63 dh_installdebconf
64 # dh_installdocs
65 dh_installmenu
66 dh_installinit -- defaults 19
[209]67 [ -f debian/@install_name@.postinst.debhelper ] && \
[1]68 cd debian && \
[209]69 cat @install_name@.postinst.debhelper | \
[1]70 sed 's%/etc/init.d/@install_name@ start%:%' > postinst.tmp && \
[209]71 mv postinst.tmp @install_name@.postinst.debhelper
72 [ -f debian/@install_name@.postinst.debhelper ] && \
[68]73 cd debian && \
[209]74 cat @install_name@.postinst.debhelper | \
[68]75 sed 's%invoke-rc.d @install_name@ start%:%' > postinst.tmp && \
[209]76 mv postinst.tmp @install_name@.postinst.debhelper
77 [ -f debian/@install_name@.prerm.debhelper ] && \
[1]78 cd debian && \
[209]79 cat @install_name@.prerm.debhelper | \
[1]80 sed 's%/etc/init.d/@install_name@ stop%/etc/init.d/@install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
[209]81 mv prerm.tmp @install_name@.prerm.debhelper
82 [ -f debian/@install_name@.prerm.debhelper ] && \
[68]83 cd debian && \
[209]84 cat @install_name@.prerm.debhelper | \
[68]85 sed 's%invoke-rc.d @install_name@ stop%invoke-rc.d @install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
[209]86 mv prerm.tmp @install_name@.prerm.debhelper
[1]87 # dh_installmanpages
88 # dh_installchangelogs @top_srcdir@/docs/Changelog
89 dh_link
[79]90 dh_strip
[1]91 dh_compress
92 dh_fixperms
93 dh_installdeb
94 dh_shlibdeps
95 dh_gencontrol
96 dh_md5sums
97 dh_builddeb
98
99
100define checkdir
101 test -f debian/rules
102endef
103
104binary: binary-indep binary-arch
105.PHONY: build clean binary-indep binary-arch binary install
106
Note: See TracBrowser for help on using the repository browser.