From b3f42a5f1172412fa3a14044cbee2e03fc0d805b Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Wed, 25 Jan 2017 17:43:40 -0200 Subject: [PATCH] Ajustes para empacotamento .deb --- debian/changelog | 6 ++++++ debian/control | 13 +++++++++++++ debian/pw3270-sharp.dsc | 12 ++++++++++++ debian/rules | 95 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 126 insertions(+), 0 deletions(-) create mode 100644 debian/changelog create mode 100644 debian/control create mode 100644 debian/pw3270-sharp.dsc create mode 100644 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..ad6fc65 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +pw3270-sharp (5.1-0) unstable; urgency=low + + * Unstable release + + -- Perry Werneck Thu, 19 Apr 2016 17:38:00 -0300 + diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..a299b10 --- /dev/null +++ b/debian/control @@ -0,0 +1,13 @@ +Source: pw3270-sharp +Section: unknown +Priority: optional +Maintainer: Perry Werneck +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, gettext, pw3270-dev, mono-dev + +Package: pw3270-sharp +Architecture: any +Depends: ${misc:Depends}, lib3270 (= ${binary:Version}) +Description: PHP Extension Module implementing tn3270 protocol. + This is an extension for acessing 3270 hosts directly from PHP apps. + + diff --git a/debian/pw3270-sharp.dsc b/debian/pw3270-sharp.dsc new file mode 100644 index 0000000..4397dd1 --- /dev/null +++ b/debian/pw3270-sharp.dsc @@ -0,0 +1,12 @@ +Format: 1.0 +Source: pw3270-sharp +Version: 5.1-1 +Binary: pw3270-sharp +Maintainer: Perry Werneck +Architecture: any +Build-Depends: debhelper (>= 7), autotools-dev, autoconf, automake, pw3270-dev, mono-dev +Standards-Version: 3.9.1.0 +DEBTRANSFORM-RELEASE: 1 +Files: + 00000000000000000000000000000000 000000 php5-pw3270-5.1.tar.gz + diff --git a/debian/rules b/debian/rules new file mode 100644 index 0000000..97a4739 --- /dev/null +++ b/debian/rules @@ -0,0 +1,95 @@ +#!/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=4 + +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 + + rm -f debian/*.install + make clean + make Release + # --- 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 + + # Install ooRexx extension + make DESTDIR=$(PWD)/debian/pw3270-sharp install + + # Create updated file lists + find $(PWD)/debian/pw3270-sharp -type f | sed -e "s@^$(PWD)/debian/php5-pw3270/@/@g" > $(PWD)/debian/pw3270-sharp.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 + 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 + 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 -- libgit2 0.21.2