From b085bfe8a701d6c947c24cfb09f1b80e088436ea Mon Sep 17 00:00:00 2001 From: Philipp Zabel Date: Wed, 24 Feb 2010 18:53:24 +0100 Subject: [PATCH] Debian packaging: 0.0.1-1 --- debian/changelog | 5 +++ debian/control | 15 +++++++ debian/files | 1 + debian/led-pattern-editor.install | 4 ++ debian/led-pattern-editor.postinst | 4 ++ debian/optify | 1 + debian/rules | 83 ++++++++++++++++++++++++++++++++++++ 7 files changed, 113 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/files create mode 100644 debian/led-pattern-editor.install create mode 100644 debian/led-pattern-editor.postinst create mode 100644 debian/optify create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..101ef30 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +led-pattern-editor (0.0.1-1) fremantle; urgency=low + + * Initial release + + -- Philipp Zabel Mon, 18 Jan 2010 21:45:13 +0100 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..052dc0a --- /dev/null +++ b/debian/control @@ -0,0 +1,15 @@ +Source: led-pattern-editor +Section: user/system +Priority: extra +Maintainer: Philipp Zabel +Build-Depends: vala (>= 0.7.10-maemo1), hildon-control-panel-dev, libosso-dev, libhildon1-dev, osso-af-settings +Standards-Version: 4 +XSBC-Bugtracker: https://bugs.maemo.org/enter_bug.cgi?product=LEDPatternEditor + +Package: led-pattern-editor +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +XB-Description: A control panel applet to edit notification LED blinking patterns + Can graphically edit the blinking patterns and LED colors, preview the + LED patterns and save the configuration and restart MCE to apply changes. +XB-Maemo-Display-Name: LED Pattern Editor diff --git a/debian/files b/debian/files new file mode 100644 index 0000000..4d45a42 --- /dev/null +++ b/debian/files @@ -0,0 +1 @@ +led-pattern-editor_0.0.1-1_armel.deb user/system extra diff --git a/debian/led-pattern-editor.install b/debian/led-pattern-editor.install new file mode 100644 index 0000000..add7446 --- /dev/null +++ b/debian/led-pattern-editor.install @@ -0,0 +1,4 @@ +usr/lib/hildon-control-panel/libled-pattern-editor.so +usr/share/applications/hildon-control-panel/led-pattern-editor.desktop +usr/bin/led-pattern-helper +etc/sudoers.d/led-pattern-editor.sudoers diff --git a/debian/led-pattern-editor.postinst b/debian/led-pattern-editor.postinst new file mode 100644 index 0000000..c5d9a27 --- /dev/null +++ b/debian/led-pattern-editor.postinst @@ -0,0 +1,4 @@ +#!/bin/sh +update-sudoers +[ -e /etc/mce/mce.ini.orig ] || cp /etc/mce/mce.ini /etc/mce/mce.ini.orig + diff --git a/debian/optify b/debian/optify new file mode 100644 index 0000000..865faf1 --- /dev/null +++ b/debian/optify @@ -0,0 +1 @@ +auto diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..74cc6d6 --- /dev/null +++ b/debian/rules @@ -0,0 +1,83 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 +export DH_COMPAT=4 +export DH_OPTIONS + +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) + +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 + # Add here commands to configure the package. + #CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \ + # --prefix=/usr + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: install + dh_testdir + dh_testroot + dh_install --sourcedir=debian/tmp + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-arch binary-indep binary install configure -- 1.7.9.5