3
tmp := $(CURDIR)/debian/tmp
6
DEB_BUILD_PROG := debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
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
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"
15
# dh_installchangelogs doesn't install upstream changelogs for native packages by default
16
override_dh_installchangelogs:
17
dh_installchangelogs ChangeLog
20
dh_fixperms -Xvar/crash
24
cp -f /usr/share/misc/config.sub config.sub
25
cp -f /usr/share/misc/config.guess config.guess
27
override_dh_auto_build:
29
cd po; intltool-update -p --verbose
30
#/usr/bin/docbook-to-man debian/upgrade-notifier.sgml > upgrade-notifier.1
32
override_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
46
.PHONY: override_dh_installchangelogs override_dh_fixperms override_dh_clean override_dh_auto_build override_dh_auto_install