diff options
Diffstat (limited to 'conf.d/packaging/deb')
-rw-r--r-- | conf.d/packaging/deb/agl-app-framework-binder.dsc | 21 | ||||
-rw-r--r-- | conf.d/packaging/deb/debian.agl-app-framework-binder-bin.install | 15 | ||||
-rw-r--r-- | conf.d/packaging/deb/debian.agl-app-framework-binder-dev.install | 3 | ||||
-rw-r--r-- | conf.d/packaging/deb/debian.changelog | 5 | ||||
-rw-r--r-- | conf.d/packaging/deb/debian.compat | 1 | ||||
-rw-r--r-- | conf.d/packaging/deb/debian.control | 27 | ||||
-rw-r--r-- | conf.d/packaging/deb/debian.rules | 87 |
7 files changed, 159 insertions, 0 deletions
diff --git a/conf.d/packaging/deb/agl-app-framework-binder.dsc b/conf.d/packaging/deb/agl-app-framework-binder.dsc new file mode 100644 index 00000000..564083fd --- /dev/null +++ b/conf.d/packaging/deb/agl-app-framework-binder.dsc @@ -0,0 +1,21 @@ +Format: 1.0 +Source: agl-app-framework-binder +Binary: agl-app-framework-binder-bin, agl-app-framework-binder-dev +Architecture: any +Version: 2.0-0 +Maintainer: unknown <unknown@debian.org> +Standards-Version: 3.8.2 +Homepage: https://gerrit.automotivelinux.org/gerrit/src/app-framework-binder +Build-Depends: debhelper (>= 5), pkg-config, + dpkg-dev, + libmicrohttpd-dev (>= 0.9.54), + cmake, + libsystemd-dev (>= 222), + libssl-dev, + uuid-dev, + libgcrypt20-dev, + libjson-c-dev, + libmagic-dev +DEBTRANSFORM-RELEASE: 1 +Files: + app-framework-binder_2.0.tar.gz diff --git a/conf.d/packaging/deb/debian.agl-app-framework-binder-bin.install b/conf.d/packaging/deb/debian.agl-app-framework-binder-bin.install new file mode 100644 index 00000000..17c19520 --- /dev/null +++ b/conf.d/packaging/deb/debian.agl-app-framework-binder-bin.install @@ -0,0 +1,15 @@ +/opt/AGL/lib/*/libafbwsc.so.1.1 +/opt/AGL/lib/*/libafbwsc.so.1 +/opt/AGL/lib/*/afb/authLogin.so +/opt/AGL/lib/*/afb/demoPost.so +/opt/AGL/lib/*/afb/afb-dbus-binding.so +/opt/AGL/lib/*/afb/tic-tac-toe.so +/opt/AGL/lib/*/afb/helloWorld.so +/opt/AGL/lib/*/afb/demoContext.so +/opt/AGL/bin/afb-json2c +/opt/AGL/bin/afb-daemon +/opt/AGL/bin/afb-exprefs +/opt/AGL/bin/afb-client-demo +/opt/AGL/bin/afb-genskel +/etc/profile.d/AGL_app-framework-binder.sh +/opt/AGL/lib/*/afb/monitoring/* diff --git a/conf.d/packaging/deb/debian.agl-app-framework-binder-dev.install b/conf.d/packaging/deb/debian.agl-app-framework-binder-dev.install new file mode 100644 index 00000000..2d1a4016 --- /dev/null +++ b/conf.d/packaging/deb/debian.agl-app-framework-binder-dev.install @@ -0,0 +1,3 @@ +/opt/AGL/include/afb/*.h +/opt/AGL/lib/*/pkgconfig/*.pc +/opt/AGL/lib/*/libafbwsc.so diff --git a/conf.d/packaging/deb/debian.changelog b/conf.d/packaging/deb/debian.changelog new file mode 100644 index 00000000..131bac4b --- /dev/null +++ b/conf.d/packaging/deb/debian.changelog @@ -0,0 +1,5 @@ +agl-app-framework-binder (2.0-0) unstable; urgency=low + + * init build + + -- Ronan Le Martret <ronan.lemartret@iot.bzh> Mon, 25 Dec 2007 10:50:38 +0100 diff --git a/conf.d/packaging/deb/debian.compat b/conf.d/packaging/deb/debian.compat new file mode 100644 index 00000000..45a4fb75 --- /dev/null +++ b/conf.d/packaging/deb/debian.compat @@ -0,0 +1 @@ +8 diff --git a/conf.d/packaging/deb/debian.control b/conf.d/packaging/deb/debian.control new file mode 100644 index 00000000..29940f19 --- /dev/null +++ b/conf.d/packaging/deb/debian.control @@ -0,0 +1,27 @@ +Priority: optional +Maintainer: unknown <unknown@debian.org> +Source: agl-app-framework-binder +Build-Depends: debhelper (>= 5),pkg-config, + libmicrohttpd-dev (>= 0.9.55), + cmake, + libsystemd-dev (>= 222), + libssl-dev, + uuid-dev, + libgcrypt20-dev, + libjson-c-dev, + libmagic-dev +Standards-Version: 3.8.2 +Homepage: https://gerrit.automotivelinux.org/gerrit/#/admin/projects/src/app-framework-binder + +Package: agl-app-framework-binder-bin +Section: libs +Architecture: any +Depends: libmicrohttpd (>= 0.9.55) +Description: agl-app-framework-binder + +Package: agl-app-framework-binder-dev +Section: libs +Architecture: any +Depends: agl-app-framework-binder-bin +Description: agl-app-framework-binder-devel + diff --git a/conf.d/packaging/deb/debian.rules b/conf.d/packaging/deb/debian.rules new file mode 100644 index 00000000..f9576409 --- /dev/null +++ b/conf.d/packaging/deb/debian.rules @@ -0,0 +1,87 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# 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_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 + +configure: configure-stamp +configure-stamp: + dh_testdir + # + touch configure-stamp + +build: build-stamp +build-stamp: configure-stamp + dh_testdir + mkdir -p build + export PKG_CONFIG_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH)/pkgconfig;cd build;cmake ../ -DCMAKE_INSTALL_PREFIX:PATH=/opt/AGL -DCMAKE_INSTALL_LIBDIR:PATH=lib/$(DEB_HOST_MULTIARCH) -DAGL_DEVEL=1 -DINCLUDE_MONITORING=ON;$(MAKE) + touch build-stamp + +clean: + #dh_testdir + dh_testroot + rm -f configure-stamp build-stamp + [ ! -f Makefile ] || $(MAKE) distclean + #dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + # Add here commands to install the package into debian/tmp + cd build;make install DESTDIR=/usr/src/packages/BUILD/debian/tmp + mkdir -p debian/tmp/etc/profile.d + echo '#---------- AGL app-framework-binder options Start ---------" ' > debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo '# Object: AGL cmake option for binder/bindings' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo 'export LD_LIBRARY_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH):$${LD_LIBRARY_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo 'export LIBRARY_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH):$${LIBRARY_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo 'export PKG_CONFIG_PATH=/opt/AGL/lib/$(DEB_HOST_MULTIARCH)/pkgconfig:$${PKG_CONFIG_PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo 'export PATH=/opt/AGL/bin:$${PATH}' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + echo '#---------- AGL options End ---------' >> debian/tmp/etc/profile.d/AGL_app-framework-binder.sh + # Move all files in their corresponding package + dh_install --list-missing -s --sourcedir=debian/tmp + # empty dependency_libs in .la files + #sed -i "/dependency_libs/ s/'.*'/''/" `find debian/ -name '*.la'` + +# 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_installman + dh_link + dh_strip + 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 |