3 #DEB_DH_INSTALL_SOURCEDIR=debian/tmp
5 #include /usr/share/cdbs/1/rules/debhelper.mk
6 #include /usr/share/cdbs/1/class/autotools.mk
8 #DEB_CONFIGURE_USER_FLAGS += --prefix=/usr --enable-maintainer-mode
9 #DEB_DH_STRIP_ARGS=--dbg-package=osso-maesync-plugin-dbg
11 #ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
12 # DEB_CONFIGURE_EXTRA_FLAGS=--enable-debug
16 #debian/stamp-autotools-files:
17 # NOCONFIGURE=t ./autogen.sh
18 # touch debian/stamp-autotools-files
19 ###############Rakesh##########
20 #####!/usr/bin/make -f
22 # Sample debian/rules that uses debhelper.
23 # GNU copyright 1997 to 1999 by Joey Hess.
25 # Uncomment this to turn on verbose mode.
29 # These are used for cross-compiling and for saving the configure script
30 # from having to guess our platform (since we know it already)
31 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
32 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
37 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
42 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
46 # shared library versions, option 1
49 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
50 #version=`ls src/.libs/lib*.so.* | \
51 # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
52 #major=`ls src/.libs/lib*.so.* | \
53 # awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
55 config.status: configure
57 # Add here commands to configure the package.
58 CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --with-fonts-dir=\$${prefix}/share/fonts/hildon --disable-dependency-tracking --enable-debug
62 build-stamp: config.status
65 # Add here commands to compile the package.
75 # Add here commands to clean up after the build process.
77 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
78 cp -f /usr/share/misc/config.sub config.sub
80 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
81 cp -f /usr/share/misc/config.guess config.guess
92 vpngui-pending-small.png
101 install -d $(CURDIR)/debian/tmp/usr/share/pixmaps/hiro-vpn
102 for im in $(vpn_images); do \
103 cp -a ./$$im $(CURDIR)/debian/tmp/usr/share/pixmaps/hiro-vpn/$$im ; \
106 install -d $(CURDIR)/debian/tmp/usr/share/vpngui
107 cp -a ./DISCLAIMER $(CURDIR)/debian/tmp/usr/share/vpngui/DISCLAIMER ;
109 # Add here commands to install the package into debian/tmp
110 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
112 # Clean up some stuff
113 find $(CURDIR)/debian/tmp/usr/lib/ -type f -name '*.*a' -print0 \
117 # Build architecture-independent files here.
118 binary-indep: build install
119 # We have nothing to do by default.
121 # Build architecture-dependent files here.
122 binary-arch: build install
128 dh_install --sourcedir=debian/tmp -v
131 # dh_installlogrotate
141 dh_strip --dbg-package=vpngui
153 binary: binary-indep binary-arch
154 .PHONY: build clean binary-indep binary-arch binary install