--- syslog-ocaml-1.2.orig/debian/patches/Makefile.dpatch +++ syslog-ocaml-1.2/debian/patches/Makefile.dpatch @@ -0,0 +1,24 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## Makefile.dpatch by Eric Cooper +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Makefile patches + +@DPATCH@ +diff -u syslog-1.0/Makefile syslog-ocaml/Makefile +--- syslog-1.0/Makefile 2005-02-16 18:31:49.000000000 -0500 ++++ syslog-ocaml/Makefile 2005-02-23 12:07:20.000000000 -0500 +@@ -1,4 +1,6 @@ +--include Makefile.conf ++OCAMLMAKEFILE = /usr/share/ocaml-tools/OCamlMakefile ++DESTDIR = $(shell ocamlc -where | sed s:/usr/lib/:/usr/local/lib/:) ++OCAMLFIND_INSTFLAGS = -destdir $(DESTDIR) + + SOURCES=syslog.mli syslog.ml + RESULT=syslog +@@ -13,4 +15,4 @@ + uninstall: libuninstall + doc: htdoc + +--include OCamlMakefile ++include $(OCAMLMAKEFILE) --- syslog-ocaml-1.2.orig/debian/patches/00list +++ syslog-ocaml-1.2/debian/patches/00list @@ -0,0 +1 @@ +Makefile.dpatch --- syslog-ocaml-1.2.orig/debian/changelog +++ syslog-ocaml-1.2/debian/changelog @@ -0,0 +1,25 @@ +syslog-ocaml (1.2-1) unstable; urgency=low + + * New upstream release incorporating syslog-ng support + * Only build byte-code version on architectures with no ocamlopt + + -- Eric Cooper Sat, 30 Apr 2005 15:50:47 -0400 + +syslog-ocaml (1.0-3) unstable; urgency=low + + * Support SOCK_STREAM log sockets for syslog-ng (closes: #305019) + + -- Eric Cooper Sun, 17 Apr 2005 12:31:25 -0400 + +syslog-ocaml (1.0-2) unstable; urgency=low + + * Removed trunk/ directory layer. + * Added Build-Depends on dpatch (closes: #303760) + + -- Eric Cooper Fri, 8 Apr 2005 14:04:48 -0400 + +syslog-ocaml (1.0-1) unstable; urgency=low + + * Initial release. + + -- Sven Luther Sat, 2 Apr 2005 09:28:38 +0200 --- syslog-ocaml-1.2.orig/debian/control +++ syslog-ocaml-1.2/debian/control @@ -0,0 +1,14 @@ +Source: syslog-ocaml +Section: devel +Priority: optional +Maintainer: Debian OCaml Maintainers +Uploaders: Sven Luther +Build-Depends: debhelper, dpatch, ocaml-nox-3.08.3, ocaml-tools, ocaml-findlib +Standards-Version: 3.6.1 + +Package: libsyslog-ocaml-dev +Architecture: any +Section: libdevel +Depends: ocaml-nox-3.08.3 +Description: syslog routines for OCaml + This library implements a syslog client in Objective Caml. --- syslog-ocaml-1.2.orig/debian/copyright +++ syslog-ocaml-1.2/debian/copyright @@ -0,0 +1,26 @@ +Packaged for Debian by + Eric Cooper + Wed, 30 Apr 2005 15:50:00 -0500 +Downloaded from http://www.csun.edu/~eric/syslog-1.2.tar.gz + +syslog(3) routines for ocaml +This library is based on Shawn Wagner's original syslog +library as included in annexlib, with significant modifications +by Eric Stokes . + +Copyright (C) 2002 Shawn Wagner +Copyright (C) 2005 Eric Stokes + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +Lesser General Public License for more details. + +You should have received a copy of the GNU Lesser General Public +License along with this library; if not, write to the Free Software +Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --- syslog-ocaml-1.2.orig/debian/rules +++ syslog-ocaml-1.2/debian/rules @@ -0,0 +1,69 @@ +#!/usr/bin/make -f + +#export DH_VERBOSE=1 + +include /usr/share/dpatch/dpatch.make + +build: build-stamp +build-stamp: patch-stamp + dh_testdir + $(MAKE) all + if [ -x /usr/bin/ocamlopt ]; then $(MAKE) opt; else true; fi + touch build-stamp + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp patch-stamp + -$(MAKE) clean + + dh_clean + +DESTDIR = $(CURDIR)/debian/tmp$(shell ocamlc -where) + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + mkdir -p $(DESTDIR) + $(MAKE) DESTDIR=$(DESTDIR) install + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs Changelog + dh_installdocs + dh_installexamples +# dh_install +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: patch build clean binary-indep binary-arch binary install + +# -*- makefile-mode -*-