[PATCH] Package up djabberd for debian
Martin Atkins
mart at degeneration.co.uk
Sat Jul 5 12:52:34 UTC 2008
Hi Nick,
I just checked in your patch, though I added a dependency on
libdanga-socket-perl. It looks like a good starting point, even if it
isn't quite complete. Thanks!
Nick Andrew wrote:
> Package up djabberd for debian
>
> Add the files in debian/* to enable packaging of djabberd and
> related packages.
>
> Signed-off-by: Nick Andrew <nick at nick-andrew.net>
> ---
>
> debian/changelog | 5 +
> debian/compat | 1
> debian/control | 105 ++++++++++++++++++++++++++
> debian/djabberd-authen-htdigest.install | 1
> debian/djabberd-authen-mysql.install | 1
> debian/djabberd-authen-pam.install | 1
> debian/djabberd-livejournal.install | 1
> debian/djabberd-misc.install | 1
> debian/djabberd-muc.install | 1
> debian/djabberd-rosterstorage-sqlite.install | 1
> debian/djabberd-webadmin.install | 1
> debian/djabberd.install | 1
> debian/libdjabberd-bot-eliza-perl.install | 1
> debian/libdjabberd-plugin-vcard-perl.install | 1
> debian/rules | 86 +++++++++++++++++++++
> 15 files changed, 208 insertions(+), 0 deletions(-)
> create mode 100644 debian/changelog
> create mode 100644 debian/compat
> create mode 100644 debian/control
> create mode 100644 debian/djabberd-authen-htdigest.install
> create mode 100644 debian/djabberd-authen-mysql.install
> create mode 100644 debian/djabberd-authen-pam.install
> create mode 100644 debian/djabberd-livejournal.install
> create mode 100644 debian/djabberd-misc.install
> create mode 100644 debian/djabberd-muc.install
> create mode 100644 debian/djabberd-rosterstorage-sqlite.install
> create mode 100644 debian/djabberd-webadmin.install
> create mode 100644 debian/djabberd.install
> create mode 100644 debian/libdjabberd-bot-eliza-perl.install
> create mode 100644 debian/libdjabberd-plugin-vcard-perl.install
> create mode 100755 debian/rules
>
>
> diff --git a/debian/changelog b/debian/changelog
> new file mode 100644
> index 0000000..ee38d56
> --- /dev/null
> +++ b/debian/changelog
> @@ -0,0 +1,5 @@
> +djabberd (0.83) unstable; urgency=low
> +
> + * Initial Debian Packaging
> +
> + -- Nick Andrew <nick at nick-andrew.net> Sat, 5 Jul 2008 03:14:15 +1000
> diff --git a/debian/compat b/debian/compat
> new file mode 100644
> index 0000000..7ed6ff8
> --- /dev/null
> +++ b/debian/compat
> @@ -0,0 +1 @@
> +5
> diff --git a/debian/control b/debian/control
> new file mode 100644
> index 0000000..1fe3c22
> --- /dev/null
> +++ b/debian/control
> @@ -0,0 +1,105 @@
> +Source: djabberd
> +Section: perl
> +Priority: optional
> +Maintainer: Nick Andrew <nick at nick-andrew.net>
> +Build-Depends: debhelper (>= 5)
> +Build-Depends-Indep: perl (>= 5.6.10-12), liblog-log4perl-perl, libnet-dns-perl, libnet-ssleay-perl, libxml-sax-perl, libxml-libxml-perl
> +Standards-Version: 3.8.0
> +Homepage: http://danga.com/djabberd
> +
> +Package: djabberd
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: ${perl:Depends}, liblog-log4perl-perl, libnet-dns-perl, libnet-ssleay-perl, libxml-sax-perl, libxml-libxml-perl
> +Suggests: djabberd-doc, openssl
> +Description: Distributed Jabber server
> + djabberd is a high-performance, scalable, extensible Jabber/XMPP
> + server framework. While it comes with an example server, it's
> + really a set of classes for you to build your own Jabber server
> + without understanding Jabber. Instead of working with XML and
> + protocol-specific details, you subclass parts and work with sane
> + objects and data structures and let DJabberd do all the ugly work.
> + .
> + Homepage: http://danga.com/djabberd/
> +
> +Package: libdjabberd-authen-htdigest-perl
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: HTDigest Authentication module for DJabberd
> + This module provides htdigest-based authentication for DJabberd.
> +
> +Package: libdjabberd-authen-mysql-perl
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: MySQL Authentication module for DJabberd
> + This module allows DJabberd to authenticate through MySQL.
> +
> +Package: libdjabberd-authen-pam-perl
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: PAM Authentication module for DJabberd
> + This module allows DJabberd to authenticate through PAM.
> +
> +Package: libdjabberd-bot-eliza-perl
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd, libchatbot-eliza-perl
> +Description: Eliza Chatbot module for DJabberd
> + This module allows DJabberd to use Chatbot::Eliza to confuse
> + users.
> +
> +Package: djabberd-livejournal
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: LiveJournal module for DJabberd
> + This module allows DJabberd to talk to LiveJournal.
> +
> +Package: djabberd-misc
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: DJabberd miscellany
> + Provides DJabberd::RosterStorage::Dummy
> +
> +Package: djabberd-muc
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: DJabberd MUC
> + Provides MUC modules for DJabberd
> +
> +Package: djabberd-rosterstorage-sqlite
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: DJabberd RosterStorage using SQLite
> + Provides DJabberd RosterStorage using SQLite
> +
> +Package: libdjabberd-plugin-vcard-perl
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: DJabberd VCard plugins
> + Provides VCard plugins for DJabberd
> +
> +Package: djabberd-webadmin
> +Section: perl
> +Priority: optional
> +Architecture: all
> +Depends: djabberd
> +Description: DJabberd WebAdmin
> + Provides DJabberd::WebAdmin
> diff --git a/debian/djabberd-authen-htdigest.install b/debian/djabberd-authen-htdigest.install
> new file mode 100644
> index 0000000..08dd408
> --- /dev/null
> +++ b/debian/djabberd-authen-htdigest.install
> @@ -0,0 +1 @@
> +DJabberd-Authen-HTDigest/lib/* usr/share/perl5
> diff --git a/debian/djabberd-authen-mysql.install b/debian/djabberd-authen-mysql.install
> new file mode 100644
> index 0000000..7362b2d
> --- /dev/null
> +++ b/debian/djabberd-authen-mysql.install
> @@ -0,0 +1 @@
> +DJabberd-Authen-MySQL/lib/* usr/share/perl5
> diff --git a/debian/djabberd-authen-pam.install b/debian/djabberd-authen-pam.install
> new file mode 100644
> index 0000000..d936289
> --- /dev/null
> +++ b/debian/djabberd-authen-pam.install
> @@ -0,0 +1 @@
> +DJabberd-Authen-PAM/lib/* usr/share/perl5
> diff --git a/debian/djabberd-livejournal.install b/debian/djabberd-livejournal.install
> new file mode 100644
> index 0000000..7836a77
> --- /dev/null
> +++ b/debian/djabberd-livejournal.install
> @@ -0,0 +1 @@
> +DJabberd-LiveJournal/lib/* usr/share/perl5
> diff --git a/debian/djabberd-misc.install b/debian/djabberd-misc.install
> new file mode 100644
> index 0000000..537efd9
> --- /dev/null
> +++ b/debian/djabberd-misc.install
> @@ -0,0 +1 @@
> +DJabberd-Misc/lib/* usr/share/perl5
> diff --git a/debian/djabberd-muc.install b/debian/djabberd-muc.install
> new file mode 100644
> index 0000000..685ec40
> --- /dev/null
> +++ b/debian/djabberd-muc.install
> @@ -0,0 +1 @@
> +DJabberd-MUC/lib/* usr/share/perl5
> diff --git a/debian/djabberd-rosterstorage-sqlite.install b/debian/djabberd-rosterstorage-sqlite.install
> new file mode 100644
> index 0000000..40e8418
> --- /dev/null
> +++ b/debian/djabberd-rosterstorage-sqlite.install
> @@ -0,0 +1 @@
> +DJabberd-RosterStorage-SQLite/lib/* usr/share/perl5
> diff --git a/debian/djabberd-webadmin.install b/debian/djabberd-webadmin.install
> new file mode 100644
> index 0000000..e0876fd
> --- /dev/null
> +++ b/debian/djabberd-webadmin.install
> @@ -0,0 +1 @@
> +DJabberd-WebAdmin/lib/* usr/share/perl5
> diff --git a/debian/djabberd.install b/debian/djabberd.install
> new file mode 100644
> index 0000000..55c2cbb
> --- /dev/null
> +++ b/debian/djabberd.install
> @@ -0,0 +1 @@
> +debian/tmp/usr /
> diff --git a/debian/libdjabberd-bot-eliza-perl.install b/debian/libdjabberd-bot-eliza-perl.install
> new file mode 100644
> index 0000000..80b333b
> --- /dev/null
> +++ b/debian/libdjabberd-bot-eliza-perl.install
> @@ -0,0 +1 @@
> +DJabberd-Bot-Eliza/lib/* usr/share/perl5
> diff --git a/debian/libdjabberd-plugin-vcard-perl.install b/debian/libdjabberd-plugin-vcard-perl.install
> new file mode 100644
> index 0000000..6312891
> --- /dev/null
> +++ b/debian/libdjabberd-plugin-vcard-perl.install
> @@ -0,0 +1 @@
> +DJabberd-VCard/lib/* usr/share/perl5
> diff --git a/debian/rules b/debian/rules
> new file mode 100755
> index 0000000..8eafb67
> --- /dev/null
> +++ b/debian/rules
> @@ -0,0 +1,86 @@
> +#!/usr/bin/make -f
> +
> +# 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
> +
> +ifndef PERL
> +PERL = /usr/bin/perl
> +endif
> +
> +TMP =$(CURDIR)/debian/tmp
> +
> +build: build-stamp
> +
> +build-stamp:
> + dh_testdir
> +
> +# Add commands to compile the package here
> + (cd DJabberd ; $(PERL) Makefile.PL verbose INSTALLDIRS=vendor )
> + (cd DJabberd ; $(MAKE) )
> +
> +# 'make test' does not currently work
> +# $(MAKE) test
> +
> + touch build-stamp
> +
> +clean:
> + dh_testdir
> + dh_testroot
> +
> +# Add commands to clean up after the build process here
> + -(cd DJabberd ; $(MAKE) distclean )
> +
> + dh_clean build-stamp install-stamp
> +
> +install: build install-stamp
> +
> +install-stamp:
> + dh_testdir
> + dh_testroot
> + dh_clean -k
> +
> + dh_installdirs -A
> +
> +# Add commands to install the package into $(TMP) here
> + (cd DJabberd ; $(MAKE) pure_install DESTDIR=$(TMP) PREFIX=/usr )
> +
> + find $(TMP) -name .packlist -exec rm '{}' \;
> + find $(TMP) -depth -type d -empty -exec rmdir '{}' \;
> +
> +# This copies all files into the correct directory for the
> +# package
> + dh_install --fail-missing
> +
> + touch install-stamp
> +
> +binary-arch:
> +# We have nothing to do for an architecture-independent package
> +
> +binary-indep: build install
> + dh_testdir
> + dh_testroot
> +# dh_installcron
> +# dh_installmenu
> + dh_installexamples
> + dh_installinit
> +# dh_installdocs doc/hacking/todo.txt
> + dh_installchangelogs DJabberd/CHANGES
> + dh_perl
> + dh_link
> + dh_strip
> + dh_compress
> + dh_fixperms
> + dh_installdeb
> + dh_gencontrol
> + dh_md5sums
> + dh_builddeb
> +
> +source diff:
> + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
> +
> +binary: binary-indep binary-arch
> +.PHONY: build clean binary-indep binary-arch binary
>
More information about the Djabberd
mailing list