~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Michael Vogt
  • Date: 2010-06-01 13:28:36 UTC
  • Revision ID: michael.vogt@ubuntu.com-20100601132836-obv0ou9wph048md2
mergedĀ fromĀ debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
tmp := $(CURDIR)/debian/tmp
4
 
 
5
 
PKG := update-notifier
6
 
DEB_BUILD_PROG := debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
7
 
 
8
2
export CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
9
3
export LDFLAGS += -Wl,-z,defs -Wl,-O1 -Wl,--as-needed
10
4
 
11
 
# --with-pkg-manager= is dnl-ed out in configure.in
12
 
#override_dh_auto_configure:
13
 
#       dh_auto_configure -- --with-pkg-manager="/usr/bin/update-manager"
14
 
 
15
 
# dh_installchangelogs doesn't install upstream changelogs for native packages by default
16
 
override_dh_installchangelogs:
17
 
        dh_installchangelogs ChangeLog
18
 
 
19
 
override_dh_fixperms:
20
 
        dh_fixperms -Xvar/crash
21
 
 
22
 
override_dh_clean:
23
 
        dh_clean
24
 
        cp -f /usr/share/misc/config.sub config.sub
25
 
        cp -f /usr/share/misc/config.guess config.guess
26
 
 
27
 
override_dh_auto_build:
28
 
        dh_auto_build
29
 
        cd po; intltool-update -p --verbose
30
 
        #/usr/bin/docbook-to-man debian/upgrade-notifier.sgml > upgrade-notifier.1
31
 
 
32
 
override_dh_auto_install:
33
 
        dh_auto_install
34
 
        #install -p -m 755 debian/synaptic-wrapper $(tmp)/usr/bin
35
 
        mkdir -p $(tmp)/etc/apt/apt.conf.d
36
 
        install -p -m 644 debian/99update-notifier $(tmp)/etc/apt/apt.conf.d
37
 
        install -p -m 644 debian/10periodic $(tmp)/etc/apt/apt.conf.d
38
 
        install -p -m 644 debian/15update-stamp $(tmp)/etc/apt/apt.conf.d
39
 
        install -p -m 644 debian/20archive $(tmp)/etc/apt/apt.conf.d
40
 
        # fix permissions of /var/crash (#449739)
41
 
        install -d -m 1777 debian/update-notifier-common/var/crash
42
 
 
43
5
%:
44
6
        dh $@
45
 
 
46
 
.PHONY: override_dh_installchangelogs override_dh_fixperms override_dh_clean override_dh_auto_build override_dh_auto_install