~ubuntu-branches/debian/sid/rlinetd/sid

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Robert Luberda
  • Date: 2010-03-20 18:03:45 UTC
  • mfrom: (2.3.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320180345-x1srfbe2tg00ezsf
Tags: 0.7-1
* New upstream version.
* Recommend rsyslog instead of sysklogd (closes: #526922).
* update-inetd:
  + add support for enabling, disabling and removing entries;
  + use ucf for managing generated files;
  + ignore ucf files in rlinetd.conf;
  + make appropriate changes in  postinst and postrm scripts.
* Set debhelper compat level to 7
* Standards-Version: 3.8.4 (no changes). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
# Sample debian/rules that uses debhelper.
3
3
# This file is public domain software, originally written by Joey Hess.
4
 
# $Id: rules 274 2009-01-11 08:40:26Z robert $
 
4
# $Id: rules 288 2009-12-06 23:57:59Z robert $
5
5
 
6
6
# Uncomment this to turn on verbose mode.
7
7
#export DH_VERBOSE=1
8
8
 
9
9
export DESTDIR=$(CURDIR)/debian/$(shell dh_listpackages)
10
10
 
11
 
CFLAGS=-Wall -g
 
11
CFLAGS=-Wall -Wextra -g
12
12
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
13
 
                     CFLAGS += -O0
 
13
                     CFLAGS += -O0 -DBYTECODE_DEBUG -fstack-protector-all
14
14
else
15
15
                     CFLAGS += -O2
16
16
endif
21
21
                     CC=gcc
22
22
else
23
23
                     MAINTAINER_MODE = no
24
 
                     CC=/bin/sh $(CURDIR)/debian/gcc-wrapper
 
24
                     CC=$(CURDIR)/debian/gcc-wrapper
25
25
endif
26
26
 
27
27
### taken from /usr/share/doc/autotools-dev/README.Debian.gz
34
34
else
35
35
        CONFFLAGS += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
36
36
endif
37
 
     
38
 
build: build-stamp
39
 
build-stamp:
 
37
 
 
38
configure: configure-stamp
 
39
configure-stamp:
40
40
        dh_testdir
 
41
        chmod +x $(CURDIR)/debian/gcc-wrapper
41
42
        CC="$(CC)" \
42
43
        CFLAGS="$(CFLAGS)" ./configure \
43
44
                        $(CONFFLAGS) \
49
50
                        --without-lsf \
50
51
                        --without-libnsl \
51
52
                        --enable-maintainer-mode=$(MAINTAINER_MODE)
52
 
        $(MAKE)
53
 
 
54
 
        touch build-stamp
 
53
        touch "$@"
 
54
 
 
55
 
 
56
 
 
57
build: build-stamp
 
58
build-stamp: configure-stamp
 
59
        $(MAKE) # CFLAGS+=-Werror
 
60
        touch "$@"
55
61
 
56
62
clean:
57
63
        dh_testdir
58
64
        dh_testroot
59
 
        rm -f build-stamp
 
65
        rm -f build-stamp configure-stamp
60
66
 
61
67
        # Add here commands to clean up after the build process.
62
68
        [ ! -f Makefile ] || $(MAKE) clean
74
80
install: build
75
81
        dh_testdir
76
82
        dh_testroot
77
 
        dh_clean -k
 
83
        dh_prep
78
84
        dh_installdirs
79
85
 
80
86
        # Add here commands to install the package into debian/<packagename>
81
87
        $(MAKE) DESTDIR=$(DESTDIR) install
82
 
        cp -a examples/rlinetd.conf $(DESTDIR)/etc
83
 
#       cp -a debian/lintian $(DESTDIR)/usr/share/lintian/overrides/rlinetd
 
88
        cp -a debian/rlinetd.conf $(DESTDIR)/etc
84
89
        rm -f $(DESTDIR)/usr/lib/rlinetd/*.la
85
90
 
86
91
        cp -a debian/update-inetd.sh $(DESTDIR)/usr/sbin/update-inetd
126
131
        dh_builddeb
127
132
 
128
133
binary: binary-indep binary-arch
129
 
.PHONY: build clean binary-indep binary-arch binary install
 
134
.PHONY: configure build clean binary-indep binary-arch binary install