From 5f60e06bd0a6736289c3669f21a23e7fcf2f63ab Mon Sep 17 00:00:00 2001 From: perry.werneck@gmail.com Date: Fri, 28 Jun 2013 12:24:38 +0000 Subject: [PATCH] Implementando empacotamento .deb do plugin rexx --- debian.control | 8 +++++++- debian.rules | 22 +++++++++++++++++++--- po/pt_BR.po | 2 +- src/plugins/rx3270/Makefile.in | 6 +++--- 4 files changed, 30 insertions(+), 8 deletions(-) diff --git a/debian.control b/debian.control index 2bf29b5..53e93c3 100644 --- a/debian.control +++ b/debian.control @@ -2,7 +2,7 @@ Source: pw3270 Section: unknown Priority: optional Maintainer: Perry Werneck -Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libssl-dev, xsltproc, librsvg2-bin, libreoffice-common, libreoffice-core, libreoffice-dev, uno-libs3, ure, zip +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, libgtk-3-dev, gettext, libssl-dev, desktop-file-utils, libdbus-glib-1-dev, libssl-dev, xsltproc, librsvg2-bin, libreoffice-common, libreoffice-core, libreoffice-dev, uno-libs3, ure, zip, oorexx-dev Package: pw3270 Architecture: any @@ -31,6 +31,12 @@ Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), libdbus-1-3 Description: DBUS plugin for pw3270. This package contains the plugin allowing scripting of a pw3270 session using dbus calls. +Package: pw3270-plugin-rexx +Architecture: any +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}), oorexx >= 4.1.2 +Description: REXX script support for pw3270. + This package provides Rexx class and associated libraries allowing rexx scripts to access tn3270e hosts. + Package: libreoffice-extension-pw3270 Architecture: any Depends: ${misc:Depends}, pw3270 (= ${binary:Version}), libreoffice-core diff --git a/debian.rules b/debian.rules index 4c50200..8187ad1 100644 --- a/debian.rules +++ b/debian.rules @@ -24,6 +24,8 @@ build-stamp: dh_testdir # Add here commands to compile the package. + aclocal + autoconf ./configure --prefix=/usr rm -f debian/*.install make Release @@ -39,7 +41,7 @@ clean: rm -f build-stamp # Add here commands to clean up after the build process. - if [ -e Makefile ]; then make clean; fi + if [ -e Makefile ]; then make clean ; fi # --- end custom part for cleaning up dh_clean @@ -62,7 +64,22 @@ install: build install -d --mode=755 $(PWD)/debian/pw3270/pw3270-plugin-dbus/usr/lib/pw3270-plugins install --mode=755 .bin/Release/plugins/dbus3270.so $(PWD)/debian/pw3270/pw3270-plugin-dbus/usr/lib/pw3270-plugins/dbus3270.so - find debian + # Install REXX plugin + #install -d --mode=755 $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/lib/pw3270-plugins + #install --mode=755 .bin/Release/plugins/rx3270.so $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/lib/pw3270-plugins/rx3270.so + #install --mode=755 .bin/Release/lib/librx3270.so* $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/lib + + #install -d --mode=755 $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/bin + #install --mode=755 src/plugins/rx3270/rx3270.cls $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/bin/rx3270.cls + + #install -d --mode=755 $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/share/pw3270/ui + #install --mode=644 ui/80rexx.xml $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/share/pw3270/ui + + make DESTDIR=$(PWD)/debian/pw3270-plugin-rexx install-rexx + ln -s /usr/share/ooRexx/rx3270.cls $(PWD)/debian/pw3270/pw3270-plugin-rexx/usr/bin/rx3270.cls + + find $(PWD)/debian/pw3270/pw3270-plugin-rexx -type f | sed -e "s@^$(PWD)/debian/pw3270/pw3270-plugin-rexx/@/@g" > $(PWD)/debian/pw3270-plugin-rexx.install + # --- end custom part for installing # Build architecture-independent files here. @@ -101,4 +118,3 @@ binary-arch: build install binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install - diff --git a/po/pt_BR.po b/po/pt_BR.po index 691388b..aec6aaf 100644 --- a/po/pt_BR.po +++ b/po/pt_BR.po @@ -5,7 +5,7 @@ msgid "" msgstr "" "Project-Id-Version: pw3270 5.0\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2013-06-28 08:07-0300\n" +"POT-Creation-Date: 2013-06-28 09:23-0300\n" "PO-Revision-Date: 2013-05-08 14:30-0300\n" "Last-Translator: Perry Werneck \n" "Language-Team: Português <>\n" diff --git a/src/plugins/rx3270/Makefile.in b/src/plugins/rx3270/Makefile.in index 7eb7c0b..9cfc28a 100644 --- a/src/plugins/rx3270/Makefile.in +++ b/src/plugins/rx3270/Makefile.in @@ -47,7 +47,7 @@ include ../../include/plugin.mak #---[ Debug Targets ]---------------------------------------------------------- -$(BINDBG)/$(PLUGIN_NAME): $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJDBG)/$(SRC).o) $(BINDBG)$(DLL_NAME) +$(BINDBG)/$(PLUGIN_NAME): $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJDBG)/$(SRC).o) $(BINDBG)$(DLL_NAME).$(VERSION) @echo " CCLD `basename $@`" @$(MKDIR) `dirname $@` @$(CXX) $(DLL_FLAGS) @LDSOFLAGS@ @DBGRPATH@ $(LDFLAGS) -o $@ $^ $(LIBS) $(LIB3270_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(PW3270_LIBS) @@ -59,7 +59,7 @@ $(BINDBG)$(DLL_NAME).$(VERSION): $(foreach SRC, $(basename $(EXTAPI_SRC)), $(OBJ #---[ Release Targets ]-------------------------------------------------------- -$(BINRLS)/$(PLUGIN_NAME): $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJRLS)/$(SRC).o) $(BINRLS)$(DLL_NAME) +$(BINRLS)/$(PLUGIN_NAME): $(foreach SRC, $(basename $(PLUGIN_SRC)), $(OBJRLS)/$(SRC).o) $(BINRLS)$(DLL_NAME).$(VERSION) @echo " CCLD `basename $@`" @$(MKDIR) `dirname $@` $(CXX) $(DLL_FLAGS) @LDSOFLAGS@ $(LDFLAGS) @RLS_LDFLAGS@ -o $@ $^ $(LIBS) $(LIB3270_LIBS) $(GTK_LIBS) $(GLIB_LIBS) $(PW3270_LIBS) @@ -69,7 +69,7 @@ $(BINRLS)$(DLL_NAME).$(VERSION): $(foreach SRC, $(basename $(EXTAPI_SRC)), $(OBJ @$(MKDIR) `dirname $@` $(CXX) $(DLL_FLAGS) @LDSOFLAGS@ $(LDFLAGS) @RLS_LDFLAGS@ -o $@ $^ $(LIBS) $(LIB3270_LIBS) -install: $(BINRLS)$(DLL_NAME).$(VERSION) $(BINRLS)/$(PLUGIN_NAME) +install: @$(MKDIR) $(DESTDIR)$(libdir)/$(PACKAGE_NAME)-plugins @$(INSTALL_PROGRAM) $(BINRLS)/$(PLUGIN_NAME) $(DESTDIR)$(libdir)/$(PACKAGE_NAME)-plugins -- libgit2 0.21.2