Commit 847565db7fbaf7663963cd81dd262d5c171b3c8c
1 parent
87b94e06
Exists in
master
and in
3 other branches
Adding files required for deb packaging.
Showing
6 changed files
with
167 additions
and
1 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,33 @@ |
| 1 | +Source: lib3270 | |
| 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 | |
| 6 | + | |
| 7 | +Package: lib3270 | |
| 8 | +Architecture: any | |
| 9 | +Section: libs | |
| 10 | +Depends: ${misc:Depends} | |
| 11 | +Description: TN3270 Access library. | |
| 12 | + TN3270 access library originally designed as part of the pw3270 application. | |
| 13 | + | |
| 14 | +Package: lib3270++ | |
| 15 | +Architecture: any | |
| 16 | +Section: libs | |
| 17 | +Depends: ${misc:Depends} | |
| 18 | +Description: TN3270 Access library. | |
| 19 | + TN3270 access library originally designed as part of the pw3270 application. | |
| 20 | + | |
| 21 | +Package: lib3270-dev | |
| 22 | +Architecture: any | |
| 23 | +Section: libdevel | |
| 24 | +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}), pkg-config, lib3270 (= ${binary:Version}), lib3270++ (= ${binary:Version}) | |
| 25 | +Description: TN3270 Access library development files. | |
| 26 | + TN3270 access library originally designed as part of the pw3270 application; C/C++ Development files. | |
| 27 | + | |
| 28 | +Package: lib3270-dbg | |
| 29 | +Architecture: any | |
| 30 | +Depends: lib3270 (= ${binary:Version}), lib3270++ (= ${binary:Version}), ${misc:Depends} | |
| 31 | +Description: Debugging symbols for lib3270 | |
| 32 | + This package contains the debugging symbols for lib3270. | |
| 33 | + | ... | ... |
| ... | ... | @@ -0,0 +1,13 @@ |
| 1 | +Format: 1.0 | |
| 2 | +Source: lib3270 | |
| 3 | +Version: 5.2-0 | |
| 4 | +Binary: lib3270 | |
| 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 | |
| 8 | +Standards-Version: 3.9.1.0 | |
| 9 | +DEBTRANSFORM-RELEASE: 0 | |
| 10 | +Files: | |
| 11 | + 00000000000000000000000000000000 000000 lib3270-5.2.tar.bz2 | |
| 12 | + | |
| 13 | + | ... | ... |
| ... | ... | @@ -0,0 +1,104 @@ |
| 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=pw3270 | |
| 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 | + ./configure --prefix=/usr | |
| 29 | + make all | |
| 30 | + # --- end custom part for compiling | |
| 31 | + | |
| 32 | + touch build-stamp | |
| 33 | + | |
| 34 | +clean: | |
| 35 | + dh_testdir | |
| 36 | + dh_testroot | |
| 37 | + rm -f build-stamp | |
| 38 | + | |
| 39 | + # Add here commands to clean up after the build process. | |
| 40 | + if [ -e Makefile ]; then make clean ; fi | |
| 41 | + # --- end custom part for cleaning up | |
| 42 | + | |
| 43 | + dh_clean | |
| 44 | + | |
| 45 | +install: build | |
| 46 | + dh_testdir | |
| 47 | + dh_testroot | |
| 48 | + dh_clean -k | |
| 49 | + dh_installdirs | |
| 50 | + | |
| 51 | + # Build package | |
| 52 | + make all | |
| 53 | + | |
| 54 | + # Install lib3270 | |
| 55 | + make DESTDIR=$(PWD)/debian/lib3270 -C lib3270 install-library | |
| 56 | + find $(PWD)/debian/lib3270 -type f | sed -e "s@^$(PWD)/debian/lib3270/@/@g" > $(PWD)/debian/lib3270.install | |
| 57 | + | |
| 58 | + # Install lib3270 | |
| 59 | + make DESTDIR=$(PWD)/debian/lib3270++ -C lib3270 install-library | |
| 60 | + find $(PWD)/debian/lib3270++ -type f | sed -e "s@^$(PWD)/debian/lib3270++/@/@g" > $(PWD)/debian/lib3270++.install | |
| 61 | + | |
| 62 | + # Install dev | |
| 63 | + make DESTDIR=$(PWD)/debian/lib3270-dev -C lib3270 install-dev | |
| 64 | + make DESTDIR=$(PWD)/debian/lib3270-dev -C lib3270++ install-dev | |
| 65 | + find $(PWD)/debian/lib3270-dev -type f | sed -e "s@^$(PWD)/debian/lib3270-dev/@/@g" > $(PWD)/debian/lib3270-dev.install | |
| 66 | + | |
| 67 | + # --- end custom part for installing | |
| 68 | + | |
| 69 | +# Build architecture-independent files here. | |
| 70 | +binary-indep: build install | |
| 71 | + # We have nothing to do by default. | |
| 72 | + | |
| 73 | +# Build architecture-dependent files here. | |
| 74 | +binary-arch: build install | |
| 75 | + dh_testdir | |
| 76 | + dh_testroot | |
| 77 | +# dh_installdebconf | |
| 78 | + dh_installdocs AUTHORS LICENSE | |
| 79 | + dh_installexamples | |
| 80 | + dh_installmenu | |
| 81 | +# dh_installlogrotate | |
| 82 | +# dh_installemacsen | |
| 83 | +# dh_installpam | |
| 84 | +# dh_installmime | |
| 85 | +# dh_installinit | |
| 86 | + dh_installcron | |
| 87 | + dh_installman | |
| 88 | + dh_installinfo | |
| 89 | +# dh_undocumented | |
| 90 | + dh_installchangelogs | |
| 91 | + dh_link | |
| 92 | + dh_strip --dbg-package=pw3270-dbg | |
| 93 | + dh_compress | |
| 94 | + dh_fixperms | |
| 95 | + dh_makeshlibs | |
| 96 | + dh_installdeb | |
| 97 | +# dh_perl | |
| 98 | + dh_shlibdeps | |
| 99 | + dh_gencontrol | |
| 100 | + dh_md5sums | |
| 101 | + dh_builddeb | |
| 102 | + | |
| 103 | +binary: binary-indep binary-arch | |
| 104 | +.PHONY: build clean binary-indep binary-arch binary install | ... | ... |
src/lib3270/Makefile.in
| ... | ... | @@ -216,8 +216,11 @@ $(BINRLS)/static/$(LIBNAME).a: \ |
| 216 | 216 | #---[ Install Targets ]------------------------------------------------------------------ |
| 217 | 217 | |
| 218 | 218 | install: \ |
| 219 | + install-library \ | |
| 220 | + install-dev | |
| 221 | + | |
| 222 | +install-library: \ | |
| 219 | 223 | $(BINRLS)/$(LIBNAME)@DLLEXT@ \ |
| 220 | - $(BINRLS)/static/$(LIBNAME).a | |
| 221 | 224 | |
| 222 | 225 | # Install library |
| 223 | 226 | @mkdir -p $(DESTDIR)$(libdir) |
| ... | ... | @@ -235,6 +238,10 @@ install: \ |
| 235 | 238 | $(LIBNAME)@DLLEXT@.@PACKAGE_MAJOR_VERSION@ \ |
| 236 | 239 | $(DESTDIR)$(libdir)/$(LIBNAME)@DLLEXT@ |
| 237 | 240 | |
| 241 | + | |
| 242 | +install-dev: \ | |
| 243 | + $(BINRLS)/static/$(LIBNAME).a | |
| 244 | + | |
| 238 | 245 | # Install static library |
| 239 | 246 | @$(INSTALL_DATA) \ |
| 240 | 247 | $(BINRLS)/static/$(LIBNAME).a \ | ... | ... |