summaryrefslogtreecommitdiff
path: root/debian
diff options
context:
space:
mode:
authorKibum Kim <kb0929.kim@samsung.com>2012-02-27 21:15:48 +0900
committerKibum Kim <kb0929.kim@samsung.com>2012-02-27 21:15:48 +0900
commit10c786e725207327fb35035100b391d073da6aeb (patch)
tree27e35f47dfbe9651647e8df83be258ceff8796df /debian
downloadaudio-session-manager-10c786e725207327fb35035100b391d073da6aeb.tar.gz
audio-session-manager-10c786e725207327fb35035100b391d073da6aeb.tar.bz2
audio-session-manager-10c786e725207327fb35035100b391d073da6aeb.zip
tizen beta release
Diffstat (limited to 'debian')
-rw-r--r--debian/changelog7
-rw-r--r--debian/compat1
-rw-r--r--debian/control32
-rw-r--r--debian/copyright15
-rw-r--r--debian/dirs2
-rw-r--r--debian/docs0
-rw-r--r--debian/libaudiosessionmgr-0.install.in4
-rw-r--r--debian/libaudiosessionmgr-0.postinst9
-rw-r--r--debian/libaudiosessionmgr-0.preinst11
-rw-r--r--debian/libaudiosessionmgr-dev.install.in3
-rw-r--r--debian/libaudiosessionmgr-sdk-dev.install.in5
-rwxr-xr-xdebian/rules140
12 files changed, 229 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5fbf057
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,7 @@
+audio-session-manager (0.1.19-0) unstable; urgency=low
+
+ * Initial release
+ * Git: pkgs/a/audio-session-manager
+ * Tag: audio-session-manager_0.1.19-0
+
+ -- Seungbae Shin <seungbae.shin@samsung.com> Tue, 03 Jan 2012 19:14:10 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..d436c1e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,32 @@
+Source: audio-session-manager
+Section: libs
+Priority: optional
+Maintainer: Seungbae Shin <seungbae.shin@samsung.com>, JongHyuk Choi <jhchoi.choi@samsung.com>
+Uploaders: Younghwan Ahn <younghwan_.an@samsung.com>, Jeongmo Yang <jm80.yang@samsung.com>
+Build-Depends: debhelper (>= 5), autotools-dev, libslp-setting-dev, libmm-log-dev, libslp-sysman-dev, libsecurity-server-client-dev, libavsystem-dev
+Standards-Version: 3.7.2
+
+Package: libaudiosessionmgr-dev
+XB-Public-Package: no
+Section: libdevel
+Architecture: any
+Depends: libaudiosessionmgr-0 (= ${Source-Version}), libaudiosessionmgr-sdk-dev
+Description: auido-session-manager development package for sdk build
+
+Package: libaudiosessionmgr-sdk-dev
+Section: libdevel
+Architecture: any
+Depends: libaudiosessionmgr-0 (= ${Source-Version}), libslp-setting-dev, libmm-log-sdk-dev, libslp-sysman-dev
+Description: auido-session-manager development package for sdk release
+
+Package: libaudiosessionmgr-0
+Section: libs
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libslp-setting-0, libmm-log, libslp-sysman, libsecurity-server-client-0, libavsystem-0
+Description: auido-session-manager package contains client library and daemon binary
+
+Package: libaudiosessionmgr-0-dbg
+Section: debug
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}, libaudiosessionmgr-0 (= ${Source-Version})
+Description: auido-session-manager debug package (unstripped)
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..3498116
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,15 @@
+Copyright (c) 2000 - 2011 Samsung Electronics Co., Ltd. All rights reserved.
+
+Contact: Seungbae Shin <seungbae.shin@samsung.com>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..ca882bb
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,2 @@
+usr/bin
+usr/sbin
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/debian/docs
diff --git a/debian/libaudiosessionmgr-0.install.in b/debian/libaudiosessionmgr-0.install.in
new file mode 100644
index 0000000..aea1750
--- /dev/null
+++ b/debian/libaudiosessionmgr-0.install.in
@@ -0,0 +1,4 @@
+# if your module, creates shared libraries
+@PREFIX@/lib/*.so*
+@PREFIX@/bin/*
+/etc/rc.d/*
diff --git a/debian/libaudiosessionmgr-0.postinst b/debian/libaudiosessionmgr-0.postinst
new file mode 100644
index 0000000..991f2da
--- /dev/null
+++ b/debian/libaudiosessionmgr-0.postinst
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+vconftool set -t int memory/Sound/SoundStatus "0" -i
+if [ -n "`env|grep SBOX`" ]; then
+ echo "postinst: sbox installation skip lauching daemon"
+else
+ echo "postinst: run audio-session-mgr-server again"
+ /usr/bin/audio-session-mgr-server&
+fi
diff --git a/debian/libaudiosessionmgr-0.preinst b/debian/libaudiosessionmgr-0.preinst
new file mode 100644
index 0000000..41b5b2f
--- /dev/null
+++ b/debian/libaudiosessionmgr-0.preinst
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+if [ -n "`env|grep SBOX`" ]; then
+ echo "postinst: sbox installation skip lauching daemon"
+else
+ PID=`/bin/pidof audio-session-mgr-server`
+ if [ -n "$PID" ]; then
+ echo "preinst: kill current audio-session-mgr-server"
+ /usr/bin/killall -9 audio-session-mgr-server
+ fi
+fi
diff --git a/debian/libaudiosessionmgr-dev.install.in b/debian/libaudiosessionmgr-dev.install.in
new file mode 100644
index 0000000..93c1cf5
--- /dev/null
+++ b/debian/libaudiosessionmgr-dev.install.in
@@ -0,0 +1,3 @@
+# if your module creates shared libraries
+@PREFIX@/include/*
+
diff --git a/debian/libaudiosessionmgr-sdk-dev.install.in b/debian/libaudiosessionmgr-sdk-dev.install.in
new file mode 100644
index 0000000..35f395e
--- /dev/null
+++ b/debian/libaudiosessionmgr-sdk-dev.install.in
@@ -0,0 +1,5 @@
+# if your module creates shared libraries
+@PREFIX@/lib/*.la
+@PREFIX@/lib/*.a
+@PREFIX@/lib/pkgconfig/*
+
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..b5db4cd
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,140 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH)
+DEB_HOST_ARCH_OS ?= $(shell dpkg-architecture -qDEB_HOST_GNU_OS)
+
+CFLAGS ?= -Wall -g
+LDFLAGS ?=
+PREFIX ?= /usr
+DATADIR ?= /opt
+
+CFLAGS += -fPIC
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0 -DMM_DEBUG_FLAG
+else
+ CFLAGS += -O2 -DMM_DEBUG_FLAG
+endif
+
+
+# architecture is not arm
+ifneq (, $(findstring arm, $(DEB_HOST_ARCH)))
+ # do something here for arm architecture
+ # do something here
+ OPTION= --enable-security
+else
+ OPTION= --enable-security
+endif
+
+LDFLAGS += -Wl,--rpath=$(PREFIX)/lib -Wl,--hash-style=both -Wl,--as-needed
+
+config.status: configure
+ dh_testdir
+ # Add here commands to configure the package.
+ dh_buildinfo generate cat
+ ./autogen.sh
+ CFLAGS="$(CFLAGS) -fvisibility=hidden -DEXPORT_API=\"__attribute__((visibility(\\\"default\\\")))\"" LDFLAGS="$(LDFLAGS)" ./configure --prefix=$(PREFIX) $(OPTION)
+
+build: build-stamp
+
+build-stamp: config.status
+ dh_testdir
+
+ # Add here commands to compile the package.
+ $(MAKE)
+ #docbook-to-man debian/ncurses.sgml > ncurses.1
+
+ for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
+ cat $$f > $${f%.in}; \
+ sed -i -e "s#@PREFIX@#$(PREFIX)#g" $${f%.in}; \
+ sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \
+ done
+
+ touch $@
+
+clean:
+ dh_testdir
+ dh_testroot
+ rm -f build-stamp
+
+ # Add here commands to clean up after the build process.
+ -$(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
+
+ for f in `find $(CURDIR)/debian/ -name "*.in"`; do \
+ rm -f $${f%.in}; \
+ done
+
+ dh_clean
+
+install: build
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs -s
+
+ # Add here commands to install the package into debian/ncurses.
+ $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
+ mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/
+ ln -s ../init.d/audiosessionmanager $(CURDIR)/debian/tmp/etc/rc.d/rc3.d/S30audiosessionmanager
+ mkdir -p $(CURDIR)/debian/tmp/etc/rc.d/rc4.d/
+ ln -s ../init.d/audiosessionmanager $(CURDIR)/debian/tmp/etc/rc.d/rc4.d/S30audiosessionmanager
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+ dh_testdir
+ dh_testroot
+ dh_installchangelogs -s
+ dh_installdocs
+ dh_buildinfo install
+ dh_installexamples
+ dh_install -s --list-missing --sourcedir=debian/tmp
+# dh_installmenu
+# dh_installdebconf
+# dh_installlogrotate
+# dh_installemacsen
+# dh_installpam
+# dh_installmime
+# dh_python
+# dh_installinit
+# dh_installcron
+# dh_installinfo
+ dh_installman
+ dh_link -s
+ dh_strip -s --dbg-package=libaudiosessionmgr-0-dbg
+ dh_compress -s
+ dh_fixperms -s
+# dh_perl
+ dh_makeshlibs -s
+ dh_installdeb -s
+ dh_shlibdeps -s
+ dh_gencontrol -s
+ dh_md5sums -s
+ dh_builddeb -s
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install