+ocaml (3.08.3-3+SVN) UNRELEASED; urgency=low
+
+ * Create directories in /usr/local/lib with proper permissions in
+ ocaml-base-nox's postinst, and remove them if empty in prerm
+ (Closes: #270925)
+
+ -- Julien Cristau <julien.cristau@ens-lyon.org> Sat, 16 Apr 2005 14:22:32 +0200
+
ocaml (3.08.3-3) unstable; urgency=medium
* Missed the include symlink in 3.08 -> 3.08.3 migration.
#!/bin/sh
-mkdir -p /usr/local/lib/ocaml/3.08.3/stublibs || true
+if [ ! -e /usr/local/lib/ocaml ]; then
+ if mkdir /usr/local/lib/ocaml 2>/dev/null; then
+ chown root:staff /usr/local/lib/ocaml
+ chmod 2775 /usr/local/lib/ocaml
+ fi
+fi
+if [ ! -e /usr/local/lib/ocaml/3.08.3 ]; then
+ if mkdir /usr/local/lib/ocaml/3.08.3 2>/dev/null; then
+ chown root:staff /usr/local/lib/ocaml/3.08.3
+ chmod 2775 /usr/local/lib/ocaml/3.08.3
+ fi
+fi
+if [ ! -e /usr/local/lib/ocaml/3.08.3/stublibs ]; then
+ if mkdir /usr/local/lib/ocaml/3.08.3/stublibs 2>/dev/null; then
+ chown root:staff /usr/local/lib/ocaml/3.08.3/stublibs
+ chmod 2775 /usr/local/lib/ocaml/3.08.3/stublibs
+ fi
+fi
for i in /usr/lib/ocaml/3.06 /etc/ocaml /var/lib/ocaml; do \
if [ -e $i/ld.conf ]; then \
- echo "Removing leftover $i.ld.conf"; \
+ echo "Removing leftover $i/ld.conf"; \
rm -f $i/ld.conf; \
rmdir --ignore-fail-on-non-empty $i; \
fi; \
--- /dev/null
+#!/bin/sh -e
+
+rmdir /usr/local/lib/ocaml/3.08.3/stublibs 2>/dev/null || true
+rmdir /usr/local/lib/ocaml/3.08.3 2>/dev/null || true
+rmdir /usr/local/lib/ocaml 2>/dev/null || true