From 847565db7fbaf7663963cd81dd262d5c171b3c8c Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Thu, 6 Dec 2018 16:29:11 -0200 Subject: [PATCH] Adding files required for deb packaging. --- debian/changelog | 7 +++++++ debian/compat | 2 ++ debian/control | 33 +++++++++++++++++++++++++++++++++ debian/lib3270.dsc | 13 +++++++++++++ debian/rules | 104 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ src/lib3270/Makefile.in | 9 ++++++++- 6 files changed, 167 insertions(+), 1 deletion(-) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/lib3270.dsc create mode 100644 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..83ada8e --- /dev/null +++ b/debian/changelog @@ -0,0 +1,7 @@ +pw3270 (5.2-0) unstable; urgency=low + + * Initial Release + + -- Perry Werneck Wed, 2 May 2012 15:20:56 -0300 + + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..48c962f --- /dev/null +++ b/debian/compat @@ -0,0 +1,2 @@ +9 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..3988647 --- /dev/null +++ b/debian/control @@ -0,0 +1,33 @@ +Source: lib3270 +Section: unknown +Priority: optional +Maintainer: Perry Werneck +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, gettext, libssl-dev, libssl-dev + +Package: lib3270 +Architecture: any +Section: libs +Depends: ${misc:Depends} +Description: TN3270 Access library. + TN3270 access library originally designed as part of the pw3270 application. + +Package: lib3270++ +Architecture: any +Section: libs +Depends: ${misc:Depends} +Description: TN3270 Access library. + TN3270 access library originally designed as part of the pw3270 application. + +Package: lib3270-dev +Architecture: any +Section: libdevel +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}), pkg-config, lib3270 (= ${binary:Version}), lib3270++ (= ${binary:Version}) +Description: TN3270 Access library development files. + TN3270 access library originally designed as part of the pw3270 application; C/C++ Development files. + +Package: lib3270-dbg +Architecture: any +Depends: lib3270 (= ${binary:Version}), lib3270++ (= ${binary:Version}), ${misc:Depends} +Description: Debugging symbols for lib3270 + This package contains the debugging symbols for lib3270. + diff --git a/debian/lib3270.dsc b/debian/lib3270.dsc new file mode 100644 index 0000000..c3dd8fc --- /dev/null +++ b/debian/lib3270.dsc @@ -0,0 +1,13 @@ +Format: 1.0 +Source: lib3270 +Version: 5.2-0 +Binary: lib3270 +Maintainer: Perry Werneck +Architecture: any +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, automake, pkg-config, gettext, libssl-dev +Standards-Version: 3.9.1.0 +DEBTRANSFORM-RELEASE: 0 +Files: + 00000000000000000000000000000000 000000 lib3270-5.2.tar.bz2 + + diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..2c2a66f --- /dev/null +++ b/debian/rules @@ -0,0 +1,104 @@ +#!/usr/bin/make -f +# Sample debian/rules that uses debhelper. +# GNU copyright 1997 to 1999 by Joey Hess. + +# Uncomment this to turn on verbose mode. +export DH_VERBOSE=1 + +# This is the debhelper compatibility version to use. +export DH_COMPAT=9 + +# Name of the package +PACKAGE_NAME=pw3270 + +CFLAGS = -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) +CFLAGS += -O0 +else +CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: + dh_testdir + + # Add here commands to compile the package. + aclocal + autoconf + ./configure --prefix=/usr + make all + # --- end custom part for compiling + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + if [ -e Makefile ]; then make clean ; fi + # --- end custom part for cleaning up + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Build package + make all + + # Install lib3270 + make DESTDIR=$(PWD)/debian/lib3270 -C lib3270 install-library + find $(PWD)/debian/lib3270 -type f | sed -e "s@^$(PWD)/debian/lib3270/@/@g" > $(PWD)/debian/lib3270.install + + # Install lib3270 + make DESTDIR=$(PWD)/debian/lib3270++ -C lib3270 install-library + find $(PWD)/debian/lib3270++ -type f | sed -e "s@^$(PWD)/debian/lib3270++/@/@g" > $(PWD)/debian/lib3270++.install + + # Install dev + make DESTDIR=$(PWD)/debian/lib3270-dev -C lib3270 install-dev + make DESTDIR=$(PWD)/debian/lib3270-dev -C lib3270++ install-dev + find $(PWD)/debian/lib3270-dev -type f | sed -e "s@^$(PWD)/debian/lib3270-dev/@/@g" > $(PWD)/debian/lib3270-dev.install + + # --- end custom part for installing + +# 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_installdebconf + dh_installdocs AUTHORS LICENSE + dh_installexamples + dh_installmenu +# dh_installlogrotate +# dh_installemacsen +# dh_installpam +# dh_installmime +# dh_installinit + dh_installcron + dh_installman + dh_installinfo +# dh_undocumented + dh_installchangelogs + dh_link + dh_strip --dbg-package=pw3270-dbg + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb +# dh_perl + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install diff --git a/src/lib3270/Makefile.in b/src/lib3270/Makefile.in index 32b9a7a..5585792 100644 --- a/src/lib3270/Makefile.in +++ b/src/lib3270/Makefile.in @@ -216,8 +216,11 @@ $(BINRLS)/static/$(LIBNAME).a: \ #---[ Install Targets ]------------------------------------------------------------------ install: \ + install-library \ + install-dev + +install-library: \ $(BINRLS)/$(LIBNAME)@DLLEXT@ \ - $(BINRLS)/static/$(LIBNAME).a # Install library @mkdir -p $(DESTDIR)$(libdir) @@ -235,6 +238,10 @@ install: \ $(LIBNAME)@DLLEXT@.@PACKAGE_MAJOR_VERSION@ \ $(DESTDIR)$(libdir)/$(LIBNAME)@DLLEXT@ + +install-dev: \ + $(BINRLS)/static/$(LIBNAME).a + # Install static library @$(INSTALL_DATA) \ $(BINRLS)/static/$(LIBNAME).a \ -- libgit2 0.21.2