Author: dnusinow Date: 2005-05-08 23:04:23 -0500 (Sun, 08 May 2005) New Revision: 47
Added: trunk/debian/xfree86-common.postinst.in trunk/debian/xfree86-common.postrm.in trunk/debian/xfree86-common.preinst.in Log: Add xfree86-common dummy package packaging docs. Audited and approved by David. Added: trunk/debian/xfree86-common.postinst.in =================================================================== --- trunk/debian/xfree86-common.postinst.in 2005-05-09 04:02:43 UTC (rev 46) +++ trunk/debian/xfree86-common.postinst.in 2005-05-09 04:04:23 UTC (rev 47) @@ -0,0 +1,42 @@ +#!/bin/sh + +# Debian xfree86-common package post-installation script +# Copyright 1998--2001, 2003 Branden Robinson. +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>. +# Acknowledgements to Stephen Early, Mark Eichin, and Manoj Srivastava. + +# $Id: xfree86-common.postinst.in 1433 2004-05-21 17:59:20Z branden $ + +set -e + +THIS_PACKAGE=xfree86-common +THIS_SCRIPT=postinst + +#INCLUDE_SHELL_LIB# + +check_symlinks_and_bomb /usr/bin/X11 \ + /usr/include/X11 \ + /usr/lib/X11 + +# ensure that /etc/X11/Xresources is now a directory (see preinst) +if ! [ -d /etc/X11/Xresources ]; then + die "/etc/X11/Xresources is not a directory; either the package didn't ship" \ + "the directory (a bug in the package), or dpkg failed to unpack it to" \ + "the filesystem (a bug in dpkg)" +fi + +remove_conffile_commit /etc/X11/Xresources/xfree86-common +remove_conffile_commit /etc/X11/Xsession.d/20xfree86-common_process-args +remove_conffile_commit /etc/X11/Xsession.d/30xfree86-common_xresources +remove_conffile_commit /etc/X11/Xsession.d/40xfree86-common_xmodmap +remove_conffile_commit /etc/X11/Xsession.d/50xfree86-common_determine-startup +remove_conffile_commit /etc/X11/Xsession.d/90xfree86-common_ssh-agent +remove_conffile_commit /etc/X11/Xsession.d/99xfree86-common_start +remove_conffile_commit /etc/init.d/xfree86-common + +if dpkg --compare-versions "$2" lt "6.8.1-0.3"; then + update-rc.d xfree86-common remove +fi + +# vim:set ai et sts=2 sw=2 tw=80: Added: trunk/debian/xfree86-common.postrm.in =================================================================== --- trunk/debian/xfree86-common.postrm.in 2005-05-09 04:02:43 UTC (rev 46) +++ trunk/debian/xfree86-common.postrm.in 2005-05-09 04:04:23 UTC (rev 47) @@ -0,0 +1,42 @@ +#!/bin/sh +# Debian xfree86-common package post-removal script +# Copyright 1998--2001, 2003 Branden Robinson. +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>. +# Acknowledgements to Stephen Early, Mark Eichin, and Manoj Srivastava. + +# $Id: xfree86-common.postrm.in 1259 2004-04-14 20:51:34Z branden $ + +set -e + +THIS_PACKAGE=xfree86-common +THIS_SCRIPT=postrm + +#INCLUDE_SHELL_LIB# + +if [ "$1" = "abort-install" ] || [ "$1" = "abort-upgrade" ]; then + remove_conffile_rollback /etc/X11/Xresources/xfree86-common + remove_conffile_rollback /etc/X11/Xsession.d/20xfree86-common_process-args + remove_conffile_rollback /etc/X11/Xsession.d/30xfree86-common_xresources + remove_conffile_rollback /etc/X11/Xsession.d/40xfree86-common_xmodmap + remove_conffile_rollback /etc/X11/Xsession.d/50xfree86-common_determine-startup + remove_conffile_rollback /etc/X11/Xsession.d/90xfree86-common_ssh-agent + remove_conffile_rollback /etc/X11/Xsession.d/99xfree86-common_start + remove_conffile_rollback /etc/init.d/xfree86-common + if [ -e /etc/init.d/xfree86-common ]; then + update-rc.d xfree86-common start 70 S . + fi +fi + +#DEBHELPER# + +if [ "$1" = "purge" ]; then + update-rc.d xfree86-common remove + for DIR in /etc/X11/Xresources /etc/X11/Xsession.d /etc/X11; do + rmdir "$DIR" 2> /dev/null || true + done +fi + +exit 0 + +# vim:set ai et sts=2 sw=2 tw=80: Added: trunk/debian/xfree86-common.preinst.in =================================================================== --- trunk/debian/xfree86-common.preinst.in 2005-05-09 04:02:43 UTC (rev 46) +++ trunk/debian/xfree86-common.preinst.in 2005-05-09 04:04:23 UTC (rev 47) @@ -0,0 +1,60 @@ +#!/bin/sh +# Debian xfree86-common package pre-installation script +# Copyright 1998--2001, 2003, 2004 Branden Robinson. +# Licensed under the GNU General Public License, version 2. See the file +# /usr/share/common-licenses/GPL or <http://www.gnu.org/copyleft/gpl.txt>. +# Acknowledgements to Stephen Early, Mark Eichin, and Manoj Srivastava. + +# $Id: xfree86-common.preinst.in 1044 2004-02-16 17:40:33Z branden $ + +set -e + +THIS_PACKAGE=xfree86-common +THIS_SCRIPT=preinst + +#INCLUDE_SHELL_LIB# + +if [ "$1" = "install" ] || [ "$1" = "upgrade" ]; then + # In xbase 3.3.2.3a-2 (October 1998), /etc/X11/Xresources became a directory. + # Prior to that, it was a conffile. Because it may have been customized by + # the administrator and we must avoid clobbering it, refuse to install if + # /etc/X11/Xresources exists and is not a directory when this package is + # installed. + if [ -e /etc/X11/Xresources ] && ! [ -d /etc/X11/Xresources ]; then + ERRMSG="/etc/X11/Xresources exists and is not a directory;" + ERRMSG="$ERRMSG the xorg-common package cannot be installed until this" + if [ -f /etc/X11/Xresources ]; then + ERRMSG="$ERRMSG file" + else + ERRMSG="$ERRMSG thing" + fi + ERRMSG="$ERRMSG is removed" + die "$ERRMSG" + fi + + if dpkg --compare-versions "$2" lt "6.8.1-0.3"; then + remove_conffile_prepare /etc/X11/Xresources/xfree86-common \ + a0f3911120c49038cb87607e3c545b90 + remove_conffile_prepare /etc/X11/Xsession.d/20xfree86-common_process-args \ + cac8884e04cfd7896f03398e5f0b4e97 + remove_conffile_prepare /etc/X11/Xsession.d/30xfree86-common_xresources \ + a895127235c65fc043c21e9d1e4a554d + remove_conffile_prepare /etc/X11/Xsession.d/40xfree86-common_xmodmap \ + b370a42803aec72f27da67ca6a225402 + remove_conffile_prepare /etc/X11/Xsession.d/50xfree86-common_determine-startup \ + 20ab475555ddb732c513b18b43ce6f0e + remove_conffile_prepare /etc/X11/Xsession.d/90xfree86-common_ssh-agent \ + b83b0b296af5e77d85a6bd3bb1d7d964 + remove_conffile_prepare /etc/X11/Xsession.d/99xfree86-common_start \ + 56530cc004537481b29a9a988a11202d + remove_conffile_prepare /etc/init.d/xfree86-common \ + 5ff012e22934a98f46114eed632562a9 + fi + +fi + +#DEBHELPER# + +exit 0 + +# vim:set ai et sts=2 sw=2 tw=0: -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

