Commit e08e29ee2100599a2727a7e6c4414743d332529e
1 parent
95103454
Exists in
master
and in
1 other branch
Adding "deb" control files.
Showing
6 changed files
with
169 additions
and
4 deletions
Show diff stats
Makefile.in
| ... | ... | @@ -76,14 +76,17 @@ $(BINRLS)/libipc3270@LIBEXT@: |
| 76 | 76 | |
| 77 | 77 | install: \ |
| 78 | 78 | install-plugin \ |
| 79 | - install-library | |
| 79 | + install-client \ | |
| 80 | + install-devel | |
| 80 | 81 | |
| 81 | 82 | install-plugin: |
| 82 | 83 | @$(MAKE) -C server DESTDIR=$(DESTDIR) install |
| 83 | - | |
| 84 | 84 | |
| 85 | -install-library: | |
| 86 | - @$(MAKE) -C client DESTDIR=$(DESTDIR) install | |
| 85 | +install-client: | |
| 86 | + @$(MAKE) -C client DESTDIR=$(DESTDIR) install-shared | |
| 87 | + | |
| 88 | +install-devel: | |
| 89 | + @$(MAKE) -C client DESTDIR=$(DESTDIR) install-devel | |
| 87 | 90 | |
| 88 | 91 | doc: |
| 89 | 92 | @$(DOXYGEN) ./doxygen/doxyfile | ... | ... |
| ... | ... | @@ -0,0 +1,33 @@ |
| 1 | +Source: libipc3270 | |
| 2 | +Section: unknown | |
| 3 | +Priority: optional | |
| 4 | +Maintainer: Perry Werneck <perry.werneck@gmail.com> | |
| 5 | +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, gettext, libssl-dev, libssl-dev, libdbus-1-dev, lib3270-dev | |
| 6 | + | |
| 7 | +Package: libipc3270 | |
| 8 | +Architecture: any | |
| 9 | +Section: libs | |
| 10 | +Depends: ${misc:Depends}, ${shlibs:Depends} | |
| 11 | +Provides: libipc3270 (= ${binary:Version}) | |
| 12 | +Description: TN3270 Access library. | |
| 13 | + TN3270 access library originally designed as part of the pw3270 application. | |
| 14 | + | |
| 15 | +Package: libipc3270-dev | |
| 16 | +Architecture: any | |
| 17 | +Provides: libipc3270-dev (= ${binary:Version}), libipc3270-5.2-dev (= ${binary:Version}) | |
| 18 | +Section: libdevel | |
| 19 | +Depends: ${misc:Depends}, pkg-config, libipc3270-5.2 (= ${binary:Version}) | |
| 20 | +Description: TN3270 Access library development files. | |
| 21 | + TN3270 access library originally designed as part of the pw3270 application. | |
| 22 | + | |
| 23 | +Package: libipc3270-dbg | |
| 24 | +Architecture: any | |
| 25 | +Depends: libipc3270-5.2 (= ${binary:Version}), ${misc:Depends} | |
| 26 | +Description: Debugging symbols for libipc3270 | |
| 27 | + This package contains the debugging symbols for libipc3270. | |
| 28 | + | |
| 29 | +Package: pw3270-plugin-ipc | |
| 30 | +Architecture: any | |
| 31 | +Depends: ${misc:Depends}, pw3270 | |
| 32 | +Description: IPC server plugin for pw3270. | |
| 33 | + This package provides a plugin exporting an active pw3270 to D-Bus. | ... | ... |
| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | +Format: 1.0 | |
| 2 | +Source: libipc3270 | |
| 3 | +Version: 5.2-0 | |
| 4 | +Binary: libipc3270 | |
| 5 | +Maintainer: Perry Werneck <perry.werneck@gmail.com> | |
| 6 | +Architecture: any | |
| 7 | +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, automake, pkg-config, gettext, libssl-dev, libdbus-1-dev, lib3270-dev | |
| 8 | +Standards-Version: 3.9.1.0 | |
| 9 | +DEBTRANSFORM-RELEASE: 0 | |
| 10 | +Files: | |
| 11 | + 00000000000000000000000000000000 000000 libipc3270-5.2.tar.bz2 | |
| 12 | + | |
| 13 | + | ... | ... |
| ... | ... | @@ -0,0 +1,107 @@ |
| 1 | +#!/usr/bin/make -f | |
| 2 | +# Sample debian/rules that uses debhelper. | |
| 3 | +# GNU copyright 1997 to 1999 by Joey Hess. | |
| 4 | + | |
| 5 | +# Uncomment this to turn on verbose mode. | |
| 6 | +export DH_VERBOSE=1 | |
| 7 | + | |
| 8 | +# This is the debhelper compatibility version to use. | |
| 9 | +export DH_COMPAT=9 | |
| 10 | + | |
| 11 | +# Name of the package | |
| 12 | +PACKAGE_NAME=libipc3270 | |
| 13 | + | |
| 14 | +CFLAGS = -g | |
| 15 | +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) | |
| 16 | +CFLAGS += -O0 | |
| 17 | +else | |
| 18 | +CFLAGS += -O2 | |
| 19 | +endif | |
| 20 | + | |
| 21 | +build: build-stamp | |
| 22 | +build-stamp: | |
| 23 | + dh_testdir | |
| 24 | + | |
| 25 | + # Add here commands to compile the package. | |
| 26 | + aclocal | |
| 27 | + autoconf | |
| 28 | + | |
| 29 | + mkdir -p scripts | |
| 30 | + automake --add-missing 2> /dev/null | true | |
| 31 | + | |
| 32 | + ./configure --prefix=/usr | |
| 33 | + make all | |
| 34 | + # --- end custom part for compiling | |
| 35 | + | |
| 36 | + touch build-stamp | |
| 37 | + | |
| 38 | +clean: | |
| 39 | + dh_testdir | |
| 40 | + dh_testroot | |
| 41 | + rm -f build-stamp | |
| 42 | + | |
| 43 | + # Add here commands to clean up after the build process. | |
| 44 | + if [ -e Makefile ]; then make clean ; fi | |
| 45 | + # --- end custom part for cleaning up | |
| 46 | + | |
| 47 | + dh_clean | |
| 48 | + | |
| 49 | +install: build | |
| 50 | + dh_testdir | |
| 51 | + dh_testroot | |
| 52 | + dh_clean -k | |
| 53 | + dh_installdirs | |
| 54 | + | |
| 55 | + # Build package | |
| 56 | + make all | |
| 57 | + | |
| 58 | + # Install libipc3270 | |
| 59 | + make DESTDIR=$(PWD)/debian/libipc3270 install-library | |
| 60 | + find $(PWD)/debian/libipc3270 -type f | sed -e "s@^$(PWD)/debian/libipc3270/@/@g" > $(PWD)/debian/libipc3270.install | |
| 61 | + | |
| 62 | + # Install dev | |
| 63 | + make DESTDIR=$(PWD)/debian/libipc3270-dev install-devel | |
| 64 | + find $(PWD)/debian/libipc3270-dev -type f | sed -e "s@^$(PWD)/debian/libipc3270-dev/@/@g" > $(PWD)/debian/libipc3270-dev.install | |
| 65 | + | |
| 66 | + # Install plugin module | |
| 67 | + make DESTDIR=$(PWD)/debian/pw3270-plugin-ipc install-plugin | |
| 68 | + find $(PWD)/debian/libipc3270-dev -type f | sed -e "s@^$(PWD)/debian/pw3270-plugin-ipc/@/@g" > $(PWD)/debian/pw3270-plugin-ipc.install | |
| 69 | + | |
| 70 | + # --- end custom part for installing | |
| 71 | + | |
| 72 | +# Build architecture-independent files here. | |
| 73 | +binary-indep: build install | |
| 74 | + # We have nothing to do by default. | |
| 75 | + | |
| 76 | +# Build architecture-dependent files here. | |
| 77 | +binary-arch: build install | |
| 78 | + dh_testdir | |
| 79 | + dh_testroot | |
| 80 | +# dh_installdebconf | |
| 81 | + dh_installdocs AUTHORS LICENSE README.md | |
| 82 | + dh_installexamples | |
| 83 | + dh_installmenu | |
| 84 | +# dh_installlogrotate | |
| 85 | +# dh_installemacsen | |
| 86 | +# dh_installpam | |
| 87 | +# dh_installmime | |
| 88 | +# dh_installinit | |
| 89 | + dh_installcron | |
| 90 | + dh_installman | |
| 91 | + dh_installinfo | |
| 92 | +# dh_undocumented | |
| 93 | + dh_installchangelogs | |
| 94 | + dh_link | |
| 95 | + dh_strip --dbg-package=libipc3270-dbg | |
| 96 | + dh_compress | |
| 97 | + dh_fixperms | |
| 98 | + dh_makeshlibs | |
| 99 | + dh_installdeb | |
| 100 | +# dh_perl | |
| 101 | + dh_shlibdeps | |
| 102 | + dh_gencontrol | |
| 103 | + dh_md5sums | |
| 104 | + dh_builddeb | |
| 105 | + | |
| 106 | +binary: binary-indep binary-arch | |
| 107 | +.PHONY: build clean binary-indep binary-arch binary install | ... | ... |