debian setup
authorTuomo Tanskanen <tumi@tumi.fi>
Sun, 20 Dec 2009 20:56:32 +0000 (22:56 +0200)
committerTuomo Tanskanen <tumi@tumi.fi>
Sun, 20 Dec 2009 20:56:32 +0000 (22:56 +0200)
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/rules [new file with mode: 0755]
welcome [deleted file]

diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..ff76153
--- /dev/null
@@ -0,0 +1,5 @@
+cell-modem-ui (0.0.1) unstable; urgency=low
+
+  * Initial version
+
+ -- Tuomo Tanskanen <tumi@tumi.fi>  Sun, 20 Dec 2009 22:46:20 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..0dba101
--- /dev/null
@@ -0,0 +1,16 @@
+Source: cell-modem-ui
+Section: user/system
+Priority: optional
+Maintainer: Tuomo Tanskanen <tumi@tumi.fi>
+Build-Depends: debhelper (>= 4.1.0)
+Standards-Version: 3.8.0
+
+Package: cell-modem-ui
+Section: user/utilities
+Architecture: any
+Depends: ${shlibs:Depends}, osso-systemui (>= 0.2.0)
+Description: Add Activate/Deactivate phone buttons to powerkey menu
+ Enables switching cellular modem on or off individually, without
+ going to full Offline mode. Handy for having WLAN enabled, but
+ phone off (e.g. flights, hospitals).
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..44b21b5
--- /dev/null
@@ -0,0 +1,27 @@
+Released under the terms of BSD License.
+
+Copyright: (c) 2009 Tuomo Tanskanen <tumi@tumi.fi>
+
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+    * Redistributions of source code must retain the above copyright
+      notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright
+      notice, this list of conditions and the following disclaimer in the
+      documentation and/or other materials provided with the distribution.
+    * Neither the name of the Copyright holders nor the
+      names of its contributors may be used to endorse or promote products
+      derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS BE LIABLE FOR ANY
+DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
+LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..2d80f69
--- /dev/null
@@ -0,0 +1,84 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+#export DH_VERBOSE=1
+
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+       INSTALL_PROGRAM += -s
+endif
+
+config.status: configure
+       dh_testdir
+       CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --exec-prefix=/usr
+
+configure: configure-stamp
+
+configure-stamp:
+       libtoolize --automake
+       aclocal-1.7 || aclocal
+       autoconf
+       autoheader
+       automake-1.7 --add-missing --foreign || automake --add-missing> --foreign
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp:  config.status
+       dh_testdir
+       $(MAKE)
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp 
+       [ ! -f Makefile ] || $(MAKE) distclean
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+       cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+       cp -f /usr/share/misc/config.guess config.guess
+endif
+       rm -f configure COPYING INSTALL Makefile.in aclocal.m4 configure-stamp build-stamp config.guess config.sub depcomp install-sh ltmain.sh missing mkinstalldirs config.h.in
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
+       dh_movefiles
+
+binary-indep: build install
+
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs
+       dh_installdocs
+       dh_install -v --sourcedir=debian/tmp
+       dh_link
+       dh_strip --dbg-package=cell-modem-ui
+       dh_compress
+       dh_fixperms
+       dh_makeshlibs -V
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install 
diff --git a/welcome b/welcome
deleted file mode 100644 (file)
index e69de29..0000000