]> err.no Git - dpkg/commitdiff
Updated the packaging-stuff
authorWichert Akkerman <wakkerma@debian.org>
Mon, 27 Sep 1999 01:24:26 +0000 (01:24 +0000)
committerWichert Akkerman <wakkerma@debian.org>
Mon, 27 Sep 1999 01:24:26 +0000 (01:24 +0000)
debian/dev-postinst [new file with mode: 0755]
debian/dev-prerm [new file with mode: 0755]
debian/emacsen-common-install [new file with mode: 0755]
debian/emacsen-common-remove [new file with mode: 0755]
debian/ltconfig-1.3.2.diff [new file with mode: 0644]

diff --git a/debian/dev-postinst b/debian/dev-postinst
new file mode 100755 (executable)
index 0000000..6215cae
--- /dev/null
@@ -0,0 +1,11 @@
+#! /bin/sh
+
+if [ "$1" = configure ]; then
+    if [ -d /usr/doc -a ! -e /usr/doc/dpkg-dev -a -d /usr/share/doc/dpkg-dev ] ; then
+        ln -s ../share/doc/dpkg-dev /usr/doc/dpkg-dev
+    fi
+
+    if [ -x  /usr/lib/emacsen-common/emacs-package-install ]; then
+        /usr/lib/emacsen-common/emacs-package-install dpkg-dev
+    fi
+fi
diff --git a/debian/dev-prerm b/debian/dev-prerm
new file mode 100755 (executable)
index 0000000..da7fb47
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = remove ]; then
+    if [ -x /usr/lib/emacsen-common/emacs-package-remove ]; then
+        /usr/lib/emacsen-common/emacs-package-remove dpkg-dev
+    fi
+fi
+
+if [ "$1" = remove -o "$1" = "upgrade" ]; then
+    if [ -L /usr/doc/dpkg-dev ]; then
+        rm -f /usr/doc/dpkg-dev
+    fi
+fi
+
diff --git a/debian/emacsen-common-install b/debian/emacsen-common-install
new file mode 100755 (executable)
index 0000000..6d80774
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/sh
+set -e
+
+FLAVOR=$1
+PACKAGE=dpkg-dev
+
+ELDIR=/usr/share/emacs/site-lisp/${PACKAGE}
+ELCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+files="debian-changelog-mode.el"
+flags="-batch --no-site-file -l path.el -f batch-byte-compile"
+
+if [ ${FLAVOR} != emacs ]; then
+  echo install/${PACKAGE}: Byte-compiling for ${FLAVOR}
+
+  install -m 755 -d ${ELCDIR}
+  cd ${ELDIR}
+  cp ${files} ${ELCDIR}
+  cd ${ELCDIR}
+  cat << EOF > path.el
+(setq load-path (cons "." load-path) byte-compile-warnings nil)
+EOF
+  ${FLAVOR} ${flags} ${files}
+  rm -f *.el path.el
+fi
diff --git a/debian/emacsen-common-remove b/debian/emacsen-common-remove
new file mode 100755 (executable)
index 0000000..0621bad
--- /dev/null
@@ -0,0 +1,11 @@
+#!/bin/sh
+set -e
+
+FLAVOR=$1
+PACKAGE=dpkg-dev
+
+if [ ${FLAVOR} != emacs ]; then
+  echo remove/${PACKAGE}: Purging byte-compiled files for ${FLAVOR}
+  rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE}
+  rm -f /etc/${FLAVOR}/site-start.d/50dpkg-dev.el
+fi
diff --git a/debian/ltconfig-1.3.2.diff b/debian/ltconfig-1.3.2.diff
new file mode 100644 (file)
index 0000000..5f8b28e
--- /dev/null
@@ -0,0 +1,13 @@
+--- ltconfig.orig      Tue Jul  6 15:55:36 1999
++++ ltconfig   Tue Jul  6 15:59:12 1999
+@@ -1200,8 +1200,8 @@ EOF
+   esac
+   if test "$ld_shlibs" = yes; then
+-    runpath_var=LD_RUN_PATH
+-    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
++    runpath_var=LD_LIBRARY_PATH
++    hardcode_libdir_flag_spec=''
+     export_dynamic_flag_spec='${wl}--export-dynamic'
+     case $host_os in
+     cygwin* | mingw*)