From 39b6f21a4da7bc4842313b522032e338d84b1bca Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Mon, 16 Jun 2008 17:01:16 +0000 Subject: [PATCH] a little packaging work git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8803 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- scripts/socket/FreeSWITCH/debian/changelog | 6 +++ scripts/socket/FreeSWITCH/debian/compat | 1 + scripts/socket/FreeSWITCH/debian/control | 16 ++++++ scripts/socket/FreeSWITCH/debian/copyright | 12 +++++ scripts/socket/FreeSWITCH/debian/rules | 63 ++++++++++++++++++++++ 5 files changed, 98 insertions(+) create mode 100644 scripts/socket/FreeSWITCH/debian/changelog create mode 100644 scripts/socket/FreeSWITCH/debian/compat create mode 100644 scripts/socket/FreeSWITCH/debian/control create mode 100644 scripts/socket/FreeSWITCH/debian/copyright create mode 100755 scripts/socket/FreeSWITCH/debian/rules diff --git a/scripts/socket/FreeSWITCH/debian/changelog b/scripts/socket/FreeSWITCH/debian/changelog new file mode 100644 index 0000000000..986e93994e --- /dev/null +++ b/scripts/socket/FreeSWITCH/debian/changelog @@ -0,0 +1,6 @@ +libfreeswitch-client-perl (1.0-1) unstable; urgency=low + + * New upstream release. + + -- Massimo Cetra Sat, 14 Jun 2008 17:38:34 +0200 + diff --git a/scripts/socket/FreeSWITCH/debian/compat b/scripts/socket/FreeSWITCH/debian/compat new file mode 100644 index 0000000000..b8626c4cff --- /dev/null +++ b/scripts/socket/FreeSWITCH/debian/compat @@ -0,0 +1 @@ +4 diff --git a/scripts/socket/FreeSWITCH/debian/control b/scripts/socket/FreeSWITCH/debian/control new file mode 100644 index 0000000000..bb319fad0f --- /dev/null +++ b/scripts/socket/FreeSWITCH/debian/control @@ -0,0 +1,16 @@ +Source: libfreeswitch-client-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 6) +Build-Depends-Indep: perl (>= 5.8.0-7), libmodule-install-perl, + libmodule-scandeps-perl (>= 0.66), libarchive-zip-perl, + libpar-dist-perl (>= 0.22), libdigest-sha1-perl, libmodule-signature-perl, + libgetopt-argvfile-perl (>= 1.07), gnupg, libinline-perl, libtest-pod-perl +Maintainer: Massimo Cetra + +Package: libfreeswitch-client-perl +Architecture: all +Depends: ${perl:Depends}, ${misc:Depends}, libmodule-scandeps-perl (>= 0.66), libio-socket-ssl-perl (>= 1.02-1) +Recommends: gnupg, libmodule-signature-perl, libpar-packer-perl +Description: FreeSWITCH Client perl library + FreeSWITCH perl client library diff --git a/scripts/socket/FreeSWITCH/debian/copyright b/scripts/socket/FreeSWITCH/debian/copyright new file mode 100644 index 0000000000..ea5aceaaf7 --- /dev/null +++ b/scripts/socket/FreeSWITCH/debian/copyright @@ -0,0 +1,12 @@ +This package was debianized by Massimo Cetra (CtRiX) on +Sat, 14 Jun 2008 12:12:19 +0200. + +It was downloaded from: http://www.freeswitch.org/ + +The upstream author is: ? + +Copyright 2008 by - ? + +This program is free software, you can redistribute it and/or modify it under +the terms ???. + diff --git a/scripts/socket/FreeSWITCH/debian/rules b/scripts/socket/FreeSWITCH/debian/rules new file mode 100755 index 0000000000..884153827b --- /dev/null +++ b/scripts/socket/FreeSWITCH/debian/rules @@ -0,0 +1,63 @@ +#!/usr/bin/make -f +# This debian/rules file is provided as a template for normal perl +# packages. It was created by Marc Brockschmidt for +# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may +# be used freely wherever it is useful. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# If set to a true value then MakeMaker's prompt function will +# always return the default without waiting for user input. +export PERL_MM_USE_DEFAULT=1 + +PERL ?= /usr/bin/perl +PACKAGE = $(shell dh_listpackages) +TMP = $(CURDIR)/debian/$(PACKAGE) + +build: build-stamp +build-stamp: $(QUILT_STAMPFN) + dh_testdir + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) + PERL_TEST_POD=1 $(MAKE) test + touch $@ + +clean: + dh_testdir + dh_testroot + dh_clean build-stamp install-stamp + [ ! -f Makefile ] || $(MAKE) realclean + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + # lintian override for a long line with a hash + # dh_installdirs /usr/share/lintian/overrides/ + #install -m 644 $(CURDIR)/debian/lintian-overrides $(TMP)/usr/share/lintian/overrides/$(PACKAGE) + #[ ! -d $(TMP)/usr/lib/perl5 ] || \ + # rmdir --ignore-fail-on-non-empty --parents --verbose \ + # $(TMP)/usr/lib/perl5 + touch $@ + +binary-arch: +# We have nothing to do here for an architecture-independent package + +binary-indep: build install + dh_testdir + dh_testroot + dh_installdocs README + dh_installchangelogs ChangeLog + dh_perl + dh_compress + dh_fixperms + dh_installdeb + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install