From 72f04cad91d4694ce0254a5fe831d42c5fb55e21 Mon Sep 17 00:00:00 2001 From: "Anders S. Mortensen" Date: Thu, 17 Aug 2006 08:35:02 +0000 Subject: [PATCH] Adding debian sub-dir to repository. --- debian/changelog | 6 ++++ debian/compat | 1 + debian/control | 16 +++++++++ debian/copyright | 12 +++++++ debian/rules | 97 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 132 insertions(+) create mode 100644 debian/changelog create mode 100644 debian/compat create mode 100644 debian/control create mode 100644 debian/copyright create mode 100755 debian/rules diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..225ec3d --- /dev/null +++ b/debian/changelog @@ -0,0 +1,6 @@ +libnet-z3950-simpleserver-perl (1.03-1) testing; urgency=low + + * Initial Release. + + -- Anders Mortensen Thu, 17 Aug 2006 10:27:59 +0200 + diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..b8626c4 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +4 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..83fa13d --- /dev/null +++ b/debian/control @@ -0,0 +1,16 @@ +Source: libnet-z3950-simpleserver-perl +Section: perl +Priority: optional +Build-Depends: debhelper (>= 4.0.2), libyaz-dev +Build-Depends-Indep: perl (>= 5.8.0-7) +Maintainer: Anders Mortensen +Standards-Version: 3.6.1 + +Package: libnet-z3950-simpleserver-perl +Architecture: any +Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends}, +Description: Perl package used to encode GRS-1 records. + This Perl module helps you to create and manipulate GRS-1 records (generic record syntax). + So far, you have only access to three methods: + . + This description was automagically extracted from the module by dh-make-perl. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..55f8f03 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,12 @@ +This is the debian package for the Net-Z3950-SimpleServer module. +It was created by Anders Mortensen using dh-make-perl. + +This copyright info was automatically extracted from the perl module. +It may not be accurate, so you better check the module sources +if don't want to get into legal troubles. + +The upstream author is: + +Anders Sønderberg Mortensen +Index Data ApS, Copenhagen, Denmark. +2001/03/09. diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..a809b3a --- /dev/null +++ b/debian/rules @@ -0,0 +1,97 @@ +#!/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 + +PACKAGE=$(shell dh_listpackages) + +ifndef PERL +PERL = /usr/bin/perl +endif + +TMP =$(CURDIR)/debian/$(PACKAGE) + +# Allow disabling build optimation by setting noopt in +# $DEB_BUILD_OPTIONS +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +build: build-stamp +build-stamp: + dh_testdir + + # Add commands to compile the package here + $(PERL) Makefile.PL INSTALLDIRS=vendor + $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH="" + + touch build-stamp + +clean: + dh_testdir + dh_testroot + + # Add commands to clean up after the build process here + [ ! -f Makefile ] || $(MAKE) realclean + + dh_clean build-stamp install-stamp + +install: build install-stamp +install-stamp: + dh_testdir + dh_testroot + dh_clean -k + + # Add commands to install the package into debian/$PACKAGE_NAME here + $(MAKE) test + $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr + + # As this is a architecture dependent package, we are not + # supposed to install stuff to /usr/share. MakeMaker creates + # the dirs, we delete them from the deb: + rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5 + + touch install-stamp + +# 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_installdocs README TODO + dh_installexamples +# dh_installmenu +# dh_installcron +# dh_installman + dh_installchangelogs Changes + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_perl + dh_shlibdeps + 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 -- 1.7.10.4