~ubuntu-core-dev/unattended-upgrades/ubuntu

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Michael Vogt
  • Date: 2010-08-02 09:04:20 UTC
  • mfrom: (136 ubuntu)
  • mto: This revision was merged to the branch mainline in revision 139.
  • Revision ID: michael.vogt@ubuntu.com-20100802090420-b1vaha9f359q9vto
mergedĀ fromĀ ubuntu

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
DIST=$(shell /usr/bin/lsb_release -c -s)
12
12
DEBVER=$(shell dpkg-parsechangelog |sed -n -e '/^Version:/s/^Version: //p')
13
13
DEB_BUILD_PROG:=debuild --preserve-envvar PATH --preserve-envvar CCACHE_DIR -us -uc $(DEB_BUILD_PROG_OPTS)
 
14
PYVER=$(shell pyversions -dv)
14
15
 
15
16
 
16
17
 
45
46
        # Add here commands to clean up after the build process.
46
47
        #-$(MAKE) clean
47
48
        ./setup.py clean --all
 
49
 
 
50
        # Sanity-check before upload.
 
51
        set -e; if [ -e /usr/lib/python$(PYVER)/py_compile.py ]; then \
 
52
                for f in unattended-upgrade unattended-upgrade-shutdown; do \
 
53
                        ln -nsf $$f $$f.py; \
 
54
                        python$(PYVER) /usr/lib/python$(PYVER)/py_compile.py \
 
55
                                $$f.py; \
 
56
                        rm -f $$f.py; \
 
57
                done; \
 
58
        fi
 
59
 
48
60
        find . -name "*.so" -exec rm {} \;
49
61
        find . -name "*.o" -exec rm {} \;
50
62
        find . -name "*.pyc" -exec rm {} \;
61
73
        # Add here commands to install the package into debian/$(PKG).
62
74
        ./setup.py install --prefix=$(CURDIR)/debian/$(PKG)/usr --install-layout=deb
63
75
 
64
 
 
65
76
# Build architecture-independent files here.
66
77
binary-indep: build install
67
78
        dh_testdir
70
81
        dh_installdocs
71
82
        dh_installexamples
72
83
#       dh_install
73
 
#       dh_installmenu
74
84
        dh_installdebconf       
75
 
#       dh_installlogrotate
76
 
#       dh_installemacsen
77
 
#       dh_installpam
 
85
        dh_installlogrotate
78
86
        dh_installmime
79
 
        dh_desktop
80
 
#       dh_installinit
81
 
#       dh_installcron
82
 
#       dh_installinfo
 
87
        dh_installinit --no-start -- start 10 0 6 .
83
88
        dh_installman
84
89
        dh_link
85
90
        dh_strip
97
102
        # update the default distro
98
103
        sed -i "s/\"Ubuntu\ [a-z]*-security\"\;/\"Ubuntu $(DIST)-security\"\;/" data/50unattended-upgrades
99
104
        sed -i  "s/\"Ubuntu\ [a-z]*-updates\"\;/\"Ubuntu $(DIST)-updates\"\;/" data/50unattended-upgrades
100
 
        
101
105
 
102
106
        # now do the rest
103
107
        rm -rf debian/arch-build