source: branches/samhain-2_2-branch/rules.deb-light.in@ 157

Last change on this file since 157 was 1, checked in by katerina, 19 years ago

Initial import

File size: 2.2 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=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
44 $(MAKE) install-light install-boot DESTDIR=`pwd`/debian/tmp
45
46 # However, remove the rc.d links
47 -rm -rf `pwd`/debian/tmp/etc/rc?.d
48
49 # Remove samhain_stealth for light install
50 -rm -f `pwd`/debian/tmp/@sbindir@/@install_name@_stealth
51
52# Build architecture-independent files here.
53binary-indep: build install
54# We have nothing to do by default.
55
56
57# Build architecture-dependent files here.
58binary-arch: build install
59# dh_testversion
60 dh_testdir
61 dh_testroot
62 dh_installdebconf
63 # dh_installdocs
64 dh_installmenu
65 dh_installinit -- defaults 19
66 [ -f debian/postinst.debhelper ] && \
67 cd debian && \
68 cat postinst.debhelper | \
69 sed 's%/etc/init.d/@install_name@ start%:%' > postinst.tmp && \
70 mv postinst.tmp postinst.debhelper
71 [ -f debian/prerm.debhelper ] && \
72 cd debian && \
73 cat prerm.debhelper | \
74 sed 's%/etc/init.d/@install_name@ stop%/etc/init.d/@install_name@ stop || echo service @install_name@ already stopped%' > prerm.tmp && \
75 mv prerm.tmp prerm.debhelper
76 # dh_installmanpages
77 # dh_installchangelogs @top_srcdir@/docs/Changelog
78 dh_link
79 # dh_strip
80 dh_compress
81 dh_fixperms
82 dh_installdeb
83 dh_shlibdeps
84 dh_gencontrol
85 dh_md5sums
86 dh_builddeb
87
88
89define checkdir
90 test -f debian/rules
91endef
92
93binary: binary-indep binary-arch
94.PHONY: build clean binary-indep binary-arch binary install
95
Note: See TracBrowser for help on using the repository browser.