From 899e937fdf00d1da888b7c0a842672c8d8d30c5e Mon Sep 17 00:00:00 2001 From: Jinkun Jang Date: Wed, 13 Mar 2013 01:38:19 +0900 Subject: Tizen 2.1 base --- debian/changelog | 17 +++++ debian/compat | 1 + debian/control | 44 +++++++++++ debian/copyright | 0 debian/org.tizen.smartsearch.install.in | 4 + debian/org.tizen.smartsearch.postinst.in | 26 +++++++ debian/rules | 122 +++++++++++++++++++++++++++++++ 7 files changed, 214 insertions(+) create mode 100755 debian/changelog create mode 100755 debian/compat create mode 100755 debian/control create mode 100644 debian/copyright create mode 100755 debian/org.tizen.smartsearch.install.in create mode 100755 debian/org.tizen.smartsearch.postinst.in create mode 100755 debian/rules (limited to 'debian') diff --git a/debian/changelog b/debian/changelog new file mode 100755 index 0000000..4f1eb61 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,17 @@ +smartsearch (0.3.16-1) unstable; urgency=low + + * Apply changed feature + * Git: magnolia/apps/home/smartsearch + * Tag: smartsearch_0.3.16-1 + + -- Junghyun Kim Sat, 11 Aug 2012 01:01:42 +0900 + +smartsearch (0.3.15-1) unstable; urgency=low + + * Fix keyword bug + * Fix tag string issue + * Update search icon + * Git: pkgs/s/smartsearch + * Tag: smartsearch_0.3.15-1 + + -- Junghyun Kim Sat, 21 Apr 2012 15:54:43 +0900 diff --git a/debian/compat b/debian/compat new file mode 100755 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100755 index 0000000..b1d0d3c --- /dev/null +++ b/debian/control @@ -0,0 +1,44 @@ +Source: smartsearch +Section: main +Priority: extra +Maintainer: Junghyun Kim , Mijin Hwang +Uploaders: Junghyun Kim , Mijin Hwang +Build-Depends: debhelper (>= 5), + libglib2.0-dev, + libappcore-efl-dev, + libelm-dev, + libui-gadget-dev, + libaul-1-dev, + libslp-utilx-dev, + libx11-dev, + dlog-dev, + libslp-db-util-dev, + libecore-dev, + libug-contacts-dev, + libcontacts-service-dev, + libslp-calendar-dev, + libslp-memo-dev, + libicu-dev, + email-service-dev, + libail-0-dev, + libslp-msg-service-dev, + libsoup2.4-dev, + libjson-glib-dev, + libxml2-dev, + capi-appfw-application-dev, + capi-appfw-app-manager, + capi-web-favorites-dev, + capi-content-media-content-dev, +Standards-Version: 0.1.0 + +Package: org.tizen.smartsearch +Section: main +Architecture: any +Depends: ${shlibs:Depends}, ${devel:Depends}, libappcore-efl-0, libelm-bin +Description: Smartsearch Application + +Package: org.tizen.smartsearch-dbg +Section: debug +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, org.tizen.smartsearch (= ${Source-Version}) +Description: debug package for smartsearch diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..e69de29 diff --git a/debian/org.tizen.smartsearch.install.in b/debian/org.tizen.smartsearch.install.in new file mode 100755 index 0000000..d693a62 --- /dev/null +++ b/debian/org.tizen.smartsearch.install.in @@ -0,0 +1,4 @@ +@PREFIX@/bin/* +@PREFIX@/res/* +@PREFIX@/data +/opt/share/applications/* diff --git a/debian/org.tizen.smartsearch.postinst.in b/debian/org.tizen.smartsearch.postinst.in new file mode 100755 index 0000000..61b094c --- /dev/null +++ b/debian/org.tizen.smartsearch.postinst.in @@ -0,0 +1,26 @@ +#!/bin/sh + +SEARCHPKG="org.tizen.smartsearch" + +# create db +if [ ! -f /opt/apps/$SEARCHPKG/data/.search.db ] +then + sqlite3 /opt/apps/$SEARCHPKG/data/.search.db 'PRAGMA journal_mode = PERSIST; + CREATE TABLE IF NOT EXISTS search_history (category int, keyword text not null, date TEXT, UNIQUE(category, keyword));' +fi + +# owner & permission + +if [ ${USER} == "root" ] +then + chown -R 5000:5000 /opt/apps/$SEARCHPKG/data + chown -R 5000:5000 /opt/apps/$SEARCHPKG/data/.search.db + chown -R 5000:5000 /opt/apps/$SEARCHPKG/data/.search.db-journal +fi + +chmod 660 /opt/apps/$SEARCHPKG/data/.search.db +chmod 660 /opt/apps/$SEARCHPKG/data/.search.db-journal + +#set default vconf key value +vconftool set -t int db/smartsearch/category 0 -u 5000 -g 5000 +vconftool set -t string db/smartsearch/keyword '' -u 5000 -g 5000 diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..ce445ce --- /dev/null +++ b/debian/rules @@ -0,0 +1,122 @@ +#!/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 + +CFLAGS ?= -Wall -g -fpie +CXXFLAGS ?= -Wall -g +LDFLAGS ?= +PREFIX ?= /opt/apps/org.tizen.smartsearch +RESDIR ?= /opt/apps/org.tizen.smartsearch/res +DATADIR ?= /opt/apps/org.tizen.smartsearch/data + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 + CXXFLAGS += -O0 +else + CFLAGS += -O2 + CXXFLAGS += -O2 +endif + +CFLAGS += -Wall -fPIC +CXXFLAGS += -fPIC +LDFLAGS += -pie -Wl,--rpath=$(PREFIX)/lib -Wl,--as-needed + +configure: configure-stamp +configure-stamp: + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" cmake . -DCMAKE_INSTALL_PREFIX=$(PREFIX) + + touch configure-stamp + +build: build-stamp + +build-stamp: configure-stamp + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + #docbook-to-man debian/wavplayer.sgml > wavplayer.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#@PREFIX@#$(RESDIR)#g" $${f%.in}; \ + sed -i -e "s#@DATADIR@#$(DATADIR)#g" $${f%.in}; \ + done + + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp configure-stamp + + # Add here commands to clean up after the build process. + -$(MAKE) clean + rm -rf CMakeCache.txt + rm -rf CMakeFiles + rm -rf cmake_install.cmake + rm -rf Makefile + rm -rf install_manifest.txt + + rm -rf po/CMakeCache.txt + rm -rf po/CMakeFiles + rm -rf po/cmake_install.cmake + rm -rf po/Makefile + rm -rf po/install_manifest.txt + + rm -rf beat_winset_test.desktop + rm -rf org.tizen.smartsearch.desktop + rm -rf *.so + rm -rf *.edj + + 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 + + # Add here commands to install the package into debian/wavplayer. + $(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: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --sourcedir=debian/tmp + dh_installman + dh_link + 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-indep binary-arch binary install configure -- cgit v1.2.3