~ubuntu-branches/ubuntu/oneiric/inspircd/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Giacomo Catenazzi, Darren Blaber, Matt Arnold, Giacomo Catenazzi
  • Date: 2008-03-06 07:56:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080306075647-z8a4phxkn3vo3ajx
Tags: 1.1.17+dfsg-1
[ Darren Blaber ]
* New upstream release, fix /etc/init.d/inspircd stop.
* Fix the postrm script so there is no duplicate update-rc.d
* Fix the manpage so there are no more errors in it

[ Matt Arnold ]
*  Fix prerm so it works (Closes: #466924)

[ Giacomo Catenazzi ]
* Added me as uploader
* Add again support of dpatch in debian/rules
* Build sources only once!
* Correct make clean target, not to include generated ./inspircd on sources
* Don't change permission of configuration files, when starting inspircd
  (separation of policy and program).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# $Id: rules 56 2007-12-18 04:55:53Z nenolod-guest $
 
2
# $Id: rules 177 2008-03-06 07:34:13Z cate $
3
3
 
4
4
export DH_VERBOSE=1
5
5
 
 
6
include /usr/share/dpatch/dpatch.make
 
7
 
6
8
CFLAGS = -Wall -g
 
9
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
10
CFLAGS += -O0
 
11
else
 
12
CFLAGS += -O2
 
13
endif
7
14
 
8
15
DEB_HOST_ARCH_OS := $(shell dpkg-architecture -qDEB_HOST_ARCH_OS 2>/dev/null)
9
16
 
17
24
    SOCKET_ENGINE=--enable-poll
18
25
endif 
19
26
 
20
 
include /usr/share/dpatch/dpatch.make
21
 
 
22
 
config.status: patch configure
23
 
        dh_testdir
24
 
        ./configure --disable-interactive --enable-gnutls $(SOCKET_ENGINE) \
25
 
        --enable-ipv6 --prefix=/usr/lib/inspircd \
26
 
        --config-dir=/etc/inspircd \
27
 
        --module-dir=/usr/lib/inspircd/modules \
28
 
        --binary-dir=/usr/sbin \
29
 
        --library-dir=/usr/lib/inspircd
30
 
 
31
27
build: build-stamp
32
 
 
33
 
build-stamp:  config.status
 
28
build-stamp: patch-stamp
34
29
        dh_testdir
 
30
        ./configure --disable-interactive --disable-rpath=1 --enable-gnutls $(SOCKET_ENGINE) \
 
31
                --enable-ipv6 --prefix=/usr/lib/inspircd \
 
32
                --config-dir=/etc/inspircd \
 
33
                --module-dir=/usr/lib/inspircd/modules \
 
34
                --binary-dir=/usr/sbin \
 
35
                --library-dir=/usr/lib/inspircd
35
36
        $(MAKE)
36
 
        touch $@
 
37
        touch build-stamp
37
38
 
38
 
clean: unpatch
 
39
clean: clean1 unpatch
 
40
clean1:
39
41
        dh_testdir
40
42
        dh_testroot
41
43
        rm -f build-stamp
42
 
 
43
44
        #Making distclean should remove the symlink, but it doesn't, so we do it here
44
45
        [ ! -f Makefile ] || $(MAKE) distclean
45
46
        rm -rf src/modules/m_ssl_gnutls.cpp
46
47
        dh_clean
47
48
 
48
 
install: build
 
49
install: build-stamp
49
50
        dh_testdir
50
51
        dh_testroot
51
52
        dh_clean -k
57
58
        install -o irc -m 640 $(CURDIR)/debian/inspircd.conf $(CURDIR)/debian/inspircd/etc/inspircd/inspircd.conf
58
59
        install -o irc -m 644 $(CURDIR)/debian/inspircd.motd $(CURDIR)/debian/inspircd/etc/inspircd/motd
59
60
        install -o irc -m 644 $(CURDIR)/debian/inspircd.rules $(CURDIR)/debian/inspircd/etc/inspircd/rules
60
 
        install -m 755 debian/inspircd/usr/sbin/inspircd debian/inspircd/usr/lib/inspircd/inspircd.bin
61
 
        install -m 755 debian/wrapper.sh debian/inspircd/usr/sbin/inspircd
62
61
 
63
62
binary-indep: build install
64
63
 
75
74
        dh_compress
76
75
        dh_fixperms
77
76
        dh_installdeb
78
 
        dh_shlibdeps
 
77
        dh_shlibdeps -l/usr/lib/inspircd
79
78
        dh_gencontrol
80
79
        dh_md5sums
81
80
        dh_builddeb
82
81
 
83
82
binary: binary-indep binary-arch
84
 
.PHONY: build clean binary-indep binary-arch binary install
 
83
.PHONY: binary clean binary-indep binary-arch build install patch unpatch \
 
84
        clean1
 
85