[Pkg-ocaml-maint-commits] [SCM] ocamlpam packaging branch, master, updated. b01dbbf626b0f8f589827a38066c3edbeef7c323

Stephane Glondu glondu at nickel.pps.jussieu.fr
Tue Jun 10 13:54:17 UTC 2008


The following commit has been merged in the master branch:
commit 4ef4eff5618af006886fee1e6921b268054adfe2
Author: Stephane Glondu <steph at glondu.net>
Date:   Tue Jun 10 14:55:30 2008 +0200

    Set up build system

diff --git a/debian/libpam-ocaml-dev.docs b/debian/libpam-ocaml-dev.docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/libpam-ocaml-dev.docs
@@ -0,0 +1 @@
+README
diff --git a/debian/libpam-ocaml-dev.install.in b/debian/libpam-ocaml-dev.install.in
new file mode 100644
index 0000000..7a357a0
--- /dev/null
+++ b/debian/libpam-ocaml-dev.install.in
@@ -0,0 +1 @@
+usr/lib/ocaml/@OCamlABI@/pam/*
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..7204ae6
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,64 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+OCAMLABI := $(shell ocamlc -version)
+BYTECODE := $(shell [ -x /usr/bin/ocamlopt ] || echo yes)
+OPTTARGET := $(if $(BYTECODE),,opt)
+
+OFILES := $(patsubst %.in,%,$(wildcard debian/*.in))
+
+ocamlinit:
+	for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done
+
+configure: configure-stamp
+configure-stamp: ocamlinit
+	dh_testdir
+	touch configure-stamp
+
+
+build: build-stamp
+build-stamp: configure-stamp
+	dh_testdir
+	$(MAKE) META byte $(OPTTARGET)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp $(OFILES)
+	$(MAKE) clean
+	dh_clean
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp/usr/lib/ocaml/$(OCAMLABI)/pam install
+
+
+binary-indep: build install
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs
+	dh_installdocs
+	dh_installexamples
+	dh_install --sourcedir=debian/tmp
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure ocamlinit

-- 
ocamlpam packaging



More information about the Pkg-ocaml-maint-commits mailing list