Add debian files to create deb package
authorDonghoon Shin <dhs.shin@samsung.com>
Mon, 13 Mar 2017 23:37:20 +0000 (08:37 +0900)
committerSeokYeon Hwang <syeon.hwang@samsung.com>
Tue, 4 Apr 2017 04:51:28 +0000 (13:51 +0900)
Theese files will be used for packaging deb file to distribute sdb in
debian distro.

Change-Id: I2d94901c1e4307aa3d7fbd8c579e4e58197e66f6
Signed-off-by: dhs.shin <dhs.shin@samsung.com>
Makefile
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/rules [new file with mode: 0755]

index 2f685487abc137053df430d7e4d3bd81090a6f20..04da2ac2823608273055c568571eafd7dffa509d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@
 HOST_OS := $(shell uname -s | tr A-Z a-z | cut -d'_' -f1)
 LBITS := $(shell getconf LONG_BIT)
 BINDIR := ./bin
+INSTALLDIR := usr/bin
 MODULE := sdb
 
 ENCLIB := spc
@@ -116,6 +117,10 @@ $(MODULE) : $(OBJS)
        @mkdir -p $(BINDIR)     
        $(CXX) -o $(BINDIR)/$@ $^ $(SDB_LFLAGS) $(STATIC_LFLAGS)
 
+install :
+       mkdir -p $(DESTDIR)/$(INSTALLDIR)
+       install $(BINDIR)/$(MODULE) $(DESTDIR)/$(INSTALLDIR)/$(MODULE)
+
 clean :
        $(MAKE) -C $(ENCLIB_BUILD_PATH) clean
        rm -rf src/*.o
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..71e92bd
--- /dev/null
@@ -0,0 +1,5 @@
+sdb (2.3.0-1) unstable; urgency=low
+
+  *  Used 2.3.0 codebase
+
+ -- Tizen <tizen.infra@samsung.com>  Thu, 22 Dec 2016 13:09:00 +0900
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..7f8f011
--- /dev/null
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..b521632
--- /dev/null
@@ -0,0 +1,13 @@
+Source: sdb
+Priority: extra
+Section: devel
+Maintainer: Tizen <tizen.infra@samsung.com>
+XSBC-Original-Maintainer: Chengwei Yang <chengwei.yang@intel.com>, Ed Bartosh <eduard.bartosh@intel.com>
+Build-Depends: debhelper (>= 7), libncurses5-dev, libssl1.0.0, libssl-dev
+Standards-Version: 3.9.2
+
+Package: sdb
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: SDB client
+
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..c279d91
--- /dev/null
@@ -0,0 +1,9 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+#
+#  # Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+               dh $@
+