r2010: debian
authorKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 13 May 2002 03:45:56 +0000 (03:45 +0000)
committerKevin M. Rosenberg <kevin@rosenberg.net>
Mon, 13 May 2002 03:45:56 +0000 (03:45 +0000)
debian/postinst [deleted file]
debian/postinst.template [new file with mode: 0644]
debian/prerm [deleted file]
debian/prerm.template [new file with mode: 0644]
debian/rules

diff --git a/debian/postinst b/debian/postinst
deleted file mode 100644 (file)
index 33de95a..0000000
+++ /dev/null
@@ -1,53 +0,0 @@
-#! /bin/sh
-# postinst script for clsql
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# package name according to lisp
-LISP_PKG=clsql
-
-# summary of how this script can be called:
-#        * <postinst> `configure' <most-recently-configured-version>
-#        * <old-postinst> `abort-upgrade' <new version>
-#        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
-#          <new-version>
-#        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
-#          <failed-install-package> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-#
-# quoting from the policy:
-#     Any necessary prompting should almost always be confined to the
-#     post-installation script, and should be protected with a conditional
-#     so that unnecessary prompting doesn't happen if a package's
-#     installation fails and the `postinst' is called with `abort-upgrade',
-#     `abort-remove' or `abort-deconfigure'.
-
-case "$1" in
-    configure)
-       ln -sf ../repositories/clsql /usr/share/common-lisp/source/clsql
-       /usr/sbin/register-common-lisp-source ${LISP_PKG}
-
-    ;;
-
-    abort-upgrade|abort-remove|abort-deconfigure)
-
-    ;;
-
-    *)
-        echo "postinst called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff --git a/debian/postinst.template b/debian/postinst.template
new file mode 100644 (file)
index 0000000..58e9698
--- /dev/null
@@ -0,0 +1,28 @@
+#! /bin/sh
+# From UncommonSQL package
+
+set -e
+
+# package name according to lisp
+LISP_PKG=%%
+
+case "$1" in
+    configure)
+       /usr/sbin/register-common-lisp-source ${LISP_PKG}
+       ;;
+
+    abort-upgrade|abort-remove|abort-deconfigure)
+       ;;
+
+    *)
+        echo "postinst called with unknown argument \`$1'" >&2
+        exit 0
+       ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/prerm b/debian/prerm
deleted file mode 100644 (file)
index 722d8f0..0000000
+++ /dev/null
@@ -1,43 +0,0 @@
-#! /bin/sh
-# prerm script for clsql
-#
-# see: dh_installdeb(1)
-
-set -e
-
-# package name according to lisp
-LISP_PKG=clsql
-
-# summary of how this script can be called:
-#        * <prerm> `remove'
-#        * <old-prerm> `upgrade' <new-version>
-#        * <new-prerm> `failed-upgrade' <old-version>
-#        * <conflictor's-prerm> `remove' `in-favour' <package> <new-version>
-#        * <deconfigured's-prerm> `deconfigure' `in-favour'
-#          <package-being-installed> <version> `removing'
-#          <conflicting-package> <version>
-# for details, see http://www.debian.org/doc/debian-policy/ or
-# the debian-policy package
-
-
-case "$1" in
-    remove|upgrade|deconfigure)
-       /usr/sbin/unregister-common-lisp-source ${LISP_PKG}
-       rm -rf /usr/share/common-lisp/source/clsql /usr/share/common-lisp/repositories/clsql
-        ;;
-    failed-upgrade)
-        ;;
-    *)
-        echo "prerm called with unknown argument \`$1'" >&2
-        exit 1
-    ;;
-esac
-
-# dh_installdeb will replace this with shell code automatically
-# generated by other debhelper scripts.
-
-#DEBHELPER#
-
-exit 0
-
-
diff --git a/debian/prerm.template b/debian/prerm.template
new file mode 100644 (file)
index 0000000..0c45925
--- /dev/null
@@ -0,0 +1,28 @@
+#! /bin/sh
+# From UncommonSQL package
+
+set -e
+
+# package name according to lisp
+LISP_PKG=%%
+
+case "$1" in
+    remove|upgrade|deconfigure)
+       /usr/sbin/unregister-common-lisp-source ${LISP_PKG}
+        ;;
+
+    failed-upgrade)
+        ;;
+
+    *)
+        echo "prerm called with unknown argument \`$1'" >&2
+        exit 0
+       ;;
+esac
+
+# dh_installdeb will replace this with shell code automatically
+# generated by other debhelper scripts.
+
+#DEBHELPER#
+
+exit 0
index 9a6d22581276f445b0dd9ceaa07aef9735c41579..b0de57975b2efcbe918665fa3fda0b1fe7d4487f 100755 (executable)
@@ -28,7 +28,7 @@ srcs          := sql/pool.cl sql/sql.cl sql/transactions.cl sql/utils.cl sql/functional.
 srcs-cmucl-compat := $(wildcard cmucl-compat/*.cl)
 srcs-base      := sql/package.cl sql/db-interface.cl sql/classes.cl sql/conditions.cl
 srcs-base-uffi := $(wildcard interfaces/clsql-uffi/*.cl) $(wildcard interfaces/clsql-uffi/*.so)
-srcs-mysql     := $(wildcard interfaces/mysql/*.cl) $(wildcards interfaces/mysql/*.so)
+srcs-mysql     := $(wildcard interfaces/mysql/*.cl) $(wildcard interfaces/mysql/*.so)
 srcs-pg                := $(wildcard interfaces/postgresql/*.cl)
 srcs-pg-socket := $(wildcard interfaces/postgresql-socket/*.cl)
 srcs-aodbc     := $(wildcard interfaces/aodbc/*.cl)
@@ -107,6 +107,15 @@ install: build
        $(INSTALL) $(INSTALLFLAGS) doc/cl-sql.pdf.gz $(doc-dir)
        rm -f doc/cl-sql.pdf.gz
 
+#      From UncommonSQL Debian package: build prerm postinst from templates
+       set -e ;\
+       for p in $(all-pkgs); do \
+                echo "processing maintainer scripts for $$p" ;\
+               l=`echo $$p | sed -e "s/^cl-//;"` ;\
+               sed -e "s/%%/$$l/;" debian/prerm.template > debian/$$p.prerm ;\
+               sed -e "s/%%/$$l/;" debian/postinst.template > debian/$$p.postinst ;\
+       done
+
 
 # Build architecture-independent files here.
 binary-indep: build install