From 2c70fe8f256233b1a6aabd006108811a4c79166d Mon Sep 17 00:00:00 2001 From: Wichert Akkerman Date: Mon, 27 Sep 1999 01:24:26 +0000 Subject: [PATCH] Updated the packaging-stuff --- debian/dev-postinst | 11 +++++++++++ debian/dev-prerm | 16 ++++++++++++++++ debian/emacsen-common-install | 24 ++++++++++++++++++++++++ debian/emacsen-common-remove | 11 +++++++++++ debian/ltconfig-1.3.2.diff | 13 +++++++++++++ 5 files changed, 75 insertions(+) create mode 100755 debian/dev-postinst create mode 100755 debian/dev-prerm create mode 100755 debian/emacsen-common-install create mode 100755 debian/emacsen-common-remove create mode 100644 debian/ltconfig-1.3.2.diff diff --git a/debian/dev-postinst b/debian/dev-postinst new file mode 100755 index 00000000..6215caef --- /dev/null +++ b/debian/dev-postinst @@ -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 index 00000000..da7fb474 --- /dev/null +++ b/debian/dev-prerm @@ -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 index 00000000..6d807743 --- /dev/null +++ b/debian/emacsen-common-install @@ -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 index 00000000..0621bad8 --- /dev/null +++ b/debian/emacsen-common-remove @@ -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 index 00000000..5f8b28e2 --- /dev/null +++ b/debian/ltconfig-1.3.2.diff @@ -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*) -- 2.39.5