~network-manager/network-manager/openvpn-ubuntu.0.7.1

« back to all changes in this revision

Viewing changes to rules

  • Committer: Alexander Sack
  • Date: 2009-07-03 08:13:28 UTC
  • mfrom: (7.1.3 openvpn-ubuntu.0.7.1)
  • Revision ID: asac@ubuntu.com-20090703081328-0z3zgqhpaivv4hou
(merge) RELEASE 0.7.1-0ubuntu1 to ubuntu/karmic
* New upstream release 0.7.1 final  
* updated build-depends to 0.7.1 final; add Vcs-Bzr line
  - update debian/control
* added get-orig-source to generate .orig.tar.gz
  - update debian/rules
* removed unused export-upstream-revision statement
  - update .bzr-builddeb/default.conf
* run make distclean after autogen.sh in get-orig-source to get a clean tarball
  - update rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
 
2
 
 
3
GIT_URL = git://git.gnome.org/network-manager-openvpn
 
4
TAG_PREFIX := "NETWORKMANAGER_OPENVPN_"
 
5
 
 
6
DEB_SOURCE := $(shell dpkg-parsechangelog | grep Source: | sed -e 's/Source: //')
 
7
DEB_VERSION := $(shell dpkg-parsechangelog | grep Version: | sed -e 's/Version: //')
 
8
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed -e 's/-[^-]*$$//')
 
9
DEB_TAG_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed -e 's/\./_/g')
2
10
  
3
11
include /usr/share/cdbs/1/class/makefile.mk
4
12
include /usr/share/cdbs/1/rules/debhelper.mk
7
15
 
8
16
#DEB_DH_MAKESHLIBS_ARGS_network-manager-openvpn := -n
9
17
 
10
 
makebuilddir/network-manager-openvpn:: debian/stamp-bootstrap
11
 
 
12
 
debian/stamp-bootstrap:
13
 
        NOCONFIGURE=1 ./autogen.sh
14
 
        touch debian/stamp-bootstrap
15
 
 
16
 
clean::
17
 
        rm -f aclocal.m4 auth-dialog/Makefile.in compile config.guess \
18
 
           config.h.in config.sub configure depcomp install-sh \
19
 
           intltool-extract.in intltool-merge.in intltool-update.in \
20
 
           ltmain.sh Makefile.in missing mkinstalldirs po/Makefile.in.in \
21
 
           properties/Makefile.in src/Makefile.in debian/stamp-bootstrap
22
 
 
 
18
DEB_DESTDIR = $(CURDIR)/debian/tmp/
 
19
 
 
20
get-orig-source::
 
21
        set -e; if echo $(DEB_VERSION) | grep -c "git"; \
 
22
        then \
 
23
                git_version=`echo $(DEB_VERSION) | sed -e 's/^.*git\.*\([0-9]*\.\)*\(.*\)-.*$$/\2/g'`; \
 
24
        else \
 
25
                git_version=$(TAG_PREFIX)$(DEB_TAG_VERSION); \
 
26
        fi; \
 
27
        tmpdir=`mktemp -d -t`; \
 
28
        cd $$tmpdir; \
 
29
        echo "cloning upstream repository ..."; \
 
30
        git clone $(GIT_URL); echo "getting specific upstream revision/tag: $$git_version"; \
 
31
        cd `ls | head -n 1`; git checkout -b orig $$git_version; \
 
32
        echo "autotools bootstrapping ..."; \
 
33
        sh ./autogen.sh; \
 
34
        echo "cleaning up autotools caches (autom4te.cache) ..."; \
 
35
        rm -rf autom4te.cache; \
 
36
        make distclean; \
 
37
        echo "OK!"; \
 
38
        cd ..; tar --exclude=.git -cvzf $(CURDIR)/$(DEB_SOURCE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz `ls | head -n 1`; \
 
39
        cd $(CURDIR); rm -rf $$tmpdir