source: branches/samhain_3_1/rules.deb-light.in@ 567

Last change on this file since 567 was 425, checked in by katerina, 12 years ago

Fix for tickets #329, #330, #331, #332

File size: 3.1 KB
Line 
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.
14export DH_COMPAT=4
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 if ! test x$(PASSWORD) = x; then \
30 if test -f samhain_setpwd; then \
31 ./samhain_setpwd samhain new $(PASSWORD); \
32 rm samhain; \
33 mv samhain.new samhain; \
34 fi; \
35 fi
36 touch build-stamp
37
38clean:
39 dh_testdir
40 dh_testroot
41 rm -f build-stamp
42 -[ -f Makefile ] && $(MAKE) distclean
43 dh_clean
44
45install: build
46 dh_testdir
47 dh_testroot
48 dh_clean -k
49 dh_installdirs
50
51 $(MAKE) install-light install-boot DESTDIR=`pwd`/debian/@install_name@
52 # $(MAKE) install-light install-boot DESTDIR=`pwd`/debian/tmp
53
54 # However, remove the rc.d links
55 -rm -rf `pwd`/debian/tmp/etc/rc?.d
56
57 # Remove samhain_stealth for light install
58 -rm -f `pwd`/debian/tmp/@sbindir@/@install_name@_stealth
59
60# Build architecture-independent files here.
61binary-indep: build install
62# We have nothing to do by default.
63
64
65# Build architecture-dependent files here.
66binary-arch: build install
67# dh_testversion
68 dh_testdir
69 dh_testroot
70 dh_installdebconf
71 # dh_installdocs
72 dh_installmenu
73 dh_installinit -- defaults 19
74 [ -f debian/@install_name@.postinst.debhelper ] && \
75 cd debian && \
76 cat @install_name@.postinst.debhelper | \
77 sed 's%/etc/init.d/@install_name@ start%:%' > postinst.tmp && \
78 mv postinst.tmp @install_name@.postinst.debhelper
79 [ -f debian/@install_name@.postinst.debhelper ] && \
80 cd debian && \
81 cat @install_name@.postinst.debhelper | \
82 sed 's%invoke-rc.d @install_name@ start%:%' > postinst.tmp && \
83 mv postinst.tmp @install_name@.postinst.debhelper
84 [ -f debian/@install_name@.prerm.debhelper ] && \
85 cd debian && \
86 cat @install_name@.prerm.debhelper | \
87 sed 's%/etc/init.d/@install_name@ stop%/etc/init.d/@install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
88 mv prerm.tmp @install_name@.prerm.debhelper
89 [ -f debian/@install_name@.prerm.debhelper ] && \
90 cd debian && \
91 cat @install_name@.prerm.debhelper | \
92 sed 's%invoke-rc.d @install_name@ stop%invoke-rc.d @install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
93 mv prerm.tmp @install_name@.prerm.debhelper
94 # dh_installmanpages
95 # dh_installchangelogs @top_srcdir@/docs/Changelog
96 dh_link
97 dh_strip
98 dh_compress
99 dh_fixperms
100 dh_installdeb
101 dh_shlibdeps
102 dh_gencontrol
103 dh_md5sums
104 dh_builddeb
105
106
107define checkdir
108 test -f debian/rules
109endef
110
111binary: binary-indep binary-arch
112.PHONY: build clean binary-indep binary-arch binary install
113
Note: See TracBrowser for help on using the repository browser.