parent
4a73ac752c
commit
4cc71d79c5
@ -0,0 +1,8 @@
|
|||||||
|
FPACKAGE = ubuntu-trinity-rename-meta
|
||||||
|
VERSION = 1.0
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
install:
|
@ -0,0 +1,6 @@
|
|||||||
|
ubuntu-trinity-rename-meta (4:13.9.9-0ubuntu1) lucid; urgency=low
|
||||||
|
|
||||||
|
* Initial package
|
||||||
|
|
||||||
|
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Sun, 25 Dec 2011 01:13:00 -0600
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
5
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,89 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# postinst script for kdm-kde3
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# debconf may not be available if some massive purging is going on
|
||||||
|
HAVE_DEBCONF=
|
||||||
|
if [ -e /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
HAVE_DEBCONF=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
|
||||||
|
|
||||||
|
if [ -n "$HAVE_DEBCONF" ]; then
|
||||||
|
# disown this question
|
||||||
|
db_unregister shared/default-x-display-manager || true
|
||||||
|
# does the question still exist?
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
if db_metaget shared/default-x-display-manager owners; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#observe "X display managers now available are \"$OWNERS\""
|
||||||
|
db_subst shared/default-x-display-manager choices "$RET"
|
||||||
|
fi
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
# are we removing the currently selected display manager?
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ "kdm-trinity" = "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER/daemon_name"; then
|
||||||
|
# does the display manager file reference the current default? if
|
||||||
|
# so, remove it because it will now be wrong
|
||||||
|
if [ -n "$RET" ]; then
|
||||||
|
if [ "$(cat "$DEFAULT_DISPLAY_MANAGER_FILE")" = "$RET" ]; then
|
||||||
|
rm "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# ask the user to choose a new default
|
||||||
|
db_fset shared/default-x-display-manager seen false
|
||||||
|
db_input critical shared/default-x-display-manager || true
|
||||||
|
db_go
|
||||||
|
# if the default display manager file doesn't exist, write it with
|
||||||
|
# the path to the new default display manager
|
||||||
|
if [ ! -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "new default display manager has been selected; please be" \
|
||||||
|
# "sure to run \"dpkg-reconfigure $RET\" to ensure that it" \
|
||||||
|
# "is configured"
|
||||||
|
DAEMON_NAME=
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER"/daemon_name; then
|
||||||
|
DAEMON_NAME="$RET"
|
||||||
|
fi
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
# if we were unable to determine the name of the selected daemon (for
|
||||||
|
# instance, if the selected default display manager doesn't provide a
|
||||||
|
# daemon_name question), guess
|
||||||
|
DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null)
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
echo .
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "unable to determine path to default X display manager" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER; not updating" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ -n "$DAEMON_NAME" ]; then
|
||||||
|
echo "$DAEMON_NAME" > "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
include /usr/share/cdbs/1/class/makefile.mk
|
||||||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||||
|
|
||||||
|
DEB_BUILD_OPTIONS := nostrip
|
||||||
|
export DEB_BUILD_OPTIONS = debug nostrip
|
||||||
|
|
||||||
|
CFLAGS=-g -Wall -fPIC
|
||||||
|
|
||||||
|
DEB_MAKE_INSTALL_TARGET := install DESTDIR="$(DEB_DESTDIR)"
|
||||||
|
DEB_INSTALL_DOCS_ALL :=
|
@ -0,0 +1,8 @@
|
|||||||
|
FPACKAGE = ubuntu-trinity-rename-meta
|
||||||
|
VERSION = 1.0
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
install:
|
@ -0,0 +1,6 @@
|
|||||||
|
ubuntu-trinity-rename-meta (4:13.9.9-0ubuntu1) lucid; urgency=low
|
||||||
|
|
||||||
|
* Initial package
|
||||||
|
|
||||||
|
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Sun, 25 Dec 2011 01:13:00 -0600
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
5
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,89 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# postinst script for kdm-kde3
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# debconf may not be available if some massive purging is going on
|
||||||
|
HAVE_DEBCONF=
|
||||||
|
if [ -e /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
HAVE_DEBCONF=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
|
||||||
|
|
||||||
|
if [ -n "$HAVE_DEBCONF" ]; then
|
||||||
|
# disown this question
|
||||||
|
db_unregister shared/default-x-display-manager || true
|
||||||
|
# does the question still exist?
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
if db_metaget shared/default-x-display-manager owners; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#observe "X display managers now available are \"$OWNERS\""
|
||||||
|
db_subst shared/default-x-display-manager choices "$RET"
|
||||||
|
fi
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
# are we removing the currently selected display manager?
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ "kdm-trinity" = "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER/daemon_name"; then
|
||||||
|
# does the display manager file reference the current default? if
|
||||||
|
# so, remove it because it will now be wrong
|
||||||
|
if [ -n "$RET" ]; then
|
||||||
|
if [ "$(cat "$DEFAULT_DISPLAY_MANAGER_FILE")" = "$RET" ]; then
|
||||||
|
rm "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# ask the user to choose a new default
|
||||||
|
db_fset shared/default-x-display-manager seen false
|
||||||
|
db_input critical shared/default-x-display-manager || true
|
||||||
|
db_go
|
||||||
|
# if the default display manager file doesn't exist, write it with
|
||||||
|
# the path to the new default display manager
|
||||||
|
if [ ! -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "new default display manager has been selected; please be" \
|
||||||
|
# "sure to run \"dpkg-reconfigure $RET\" to ensure that it" \
|
||||||
|
# "is configured"
|
||||||
|
DAEMON_NAME=
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER"/daemon_name; then
|
||||||
|
DAEMON_NAME="$RET"
|
||||||
|
fi
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
# if we were unable to determine the name of the selected daemon (for
|
||||||
|
# instance, if the selected default display manager doesn't provide a
|
||||||
|
# daemon_name question), guess
|
||||||
|
DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null)
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
echo .
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "unable to determine path to default X display manager" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER; not updating" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ -n "$DAEMON_NAME" ]; then
|
||||||
|
echo "$DAEMON_NAME" > "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
include /usr/share/cdbs/1/class/makefile.mk
|
||||||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||||
|
|
||||||
|
DEB_BUILD_OPTIONS := nostrip
|
||||||
|
export DEB_BUILD_OPTIONS = debug nostrip
|
||||||
|
|
||||||
|
CFLAGS=-g -Wall -fPIC
|
||||||
|
|
||||||
|
DEB_MAKE_INSTALL_TARGET := install DESTDIR="$(DEB_DESTDIR)"
|
||||||
|
DEB_INSTALL_DOCS_ALL :=
|
@ -0,0 +1,8 @@
|
|||||||
|
FPACKAGE = ubuntu-trinity-rename-meta
|
||||||
|
VERSION = 1.0
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
install:
|
@ -0,0 +1,6 @@
|
|||||||
|
ubuntu-trinity-rename-meta (4:13.9.9-0ubuntu1) lucid; urgency=low
|
||||||
|
|
||||||
|
* Initial package
|
||||||
|
|
||||||
|
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Sun, 25 Dec 2011 01:13:00 -0600
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
5
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,89 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# postinst script for kdm-kde3
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# debconf may not be available if some massive purging is going on
|
||||||
|
HAVE_DEBCONF=
|
||||||
|
if [ -e /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
HAVE_DEBCONF=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
|
||||||
|
|
||||||
|
if [ -n "$HAVE_DEBCONF" ]; then
|
||||||
|
# disown this question
|
||||||
|
db_unregister shared/default-x-display-manager || true
|
||||||
|
# does the question still exist?
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
if db_metaget shared/default-x-display-manager owners; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#observe "X display managers now available are \"$OWNERS\""
|
||||||
|
db_subst shared/default-x-display-manager choices "$RET"
|
||||||
|
fi
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
# are we removing the currently selected display manager?
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ "kdm-trinity" = "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER/daemon_name"; then
|
||||||
|
# does the display manager file reference the current default? if
|
||||||
|
# so, remove it because it will now be wrong
|
||||||
|
if [ -n "$RET" ]; then
|
||||||
|
if [ "$(cat "$DEFAULT_DISPLAY_MANAGER_FILE")" = "$RET" ]; then
|
||||||
|
rm "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# ask the user to choose a new default
|
||||||
|
db_fset shared/default-x-display-manager seen false
|
||||||
|
db_input critical shared/default-x-display-manager || true
|
||||||
|
db_go
|
||||||
|
# if the default display manager file doesn't exist, write it with
|
||||||
|
# the path to the new default display manager
|
||||||
|
if [ ! -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "new default display manager has been selected; please be" \
|
||||||
|
# "sure to run \"dpkg-reconfigure $RET\" to ensure that it" \
|
||||||
|
# "is configured"
|
||||||
|
DAEMON_NAME=
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER"/daemon_name; then
|
||||||
|
DAEMON_NAME="$RET"
|
||||||
|
fi
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
# if we were unable to determine the name of the selected daemon (for
|
||||||
|
# instance, if the selected default display manager doesn't provide a
|
||||||
|
# daemon_name question), guess
|
||||||
|
DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null)
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
echo .
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "unable to determine path to default X display manager" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER; not updating" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ -n "$DAEMON_NAME" ]; then
|
||||||
|
echo "$DAEMON_NAME" > "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
include /usr/share/cdbs/1/class/makefile.mk
|
||||||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||||
|
|
||||||
|
DEB_BUILD_OPTIONS := nostrip
|
||||||
|
export DEB_BUILD_OPTIONS = debug nostrip
|
||||||
|
|
||||||
|
CFLAGS=-g -Wall -fPIC
|
||||||
|
|
||||||
|
DEB_MAKE_INSTALL_TARGET := install DESTDIR="$(DEB_DESTDIR)"
|
||||||
|
DEB_INSTALL_DOCS_ALL :=
|
@ -0,0 +1,8 @@
|
|||||||
|
FPACKAGE = ubuntu-trinity-rename-meta
|
||||||
|
VERSION = 1.0
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
install:
|
@ -0,0 +1,6 @@
|
|||||||
|
ubuntu-trinity-rename-meta (4:13.9.9-0ubuntu1) lucid; urgency=low
|
||||||
|
|
||||||
|
* Initial package
|
||||||
|
|
||||||
|
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Sun, 25 Dec 2011 01:13:00 -0600
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
5
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,89 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# postinst script for kdm-kde3
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# debconf may not be available if some massive purging is going on
|
||||||
|
HAVE_DEBCONF=
|
||||||
|
if [ -e /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
HAVE_DEBCONF=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
|
||||||
|
|
||||||
|
if [ -n "$HAVE_DEBCONF" ]; then
|
||||||
|
# disown this question
|
||||||
|
db_unregister shared/default-x-display-manager || true
|
||||||
|
# does the question still exist?
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
if db_metaget shared/default-x-display-manager owners; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#observe "X display managers now available are \"$OWNERS\""
|
||||||
|
db_subst shared/default-x-display-manager choices "$RET"
|
||||||
|
fi
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
# are we removing the currently selected display manager?
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ "kdm-trinity" = "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER/daemon_name"; then
|
||||||
|
# does the display manager file reference the current default? if
|
||||||
|
# so, remove it because it will now be wrong
|
||||||
|
if [ -n "$RET" ]; then
|
||||||
|
if [ "$(cat "$DEFAULT_DISPLAY_MANAGER_FILE")" = "$RET" ]; then
|
||||||
|
rm "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# ask the user to choose a new default
|
||||||
|
db_fset shared/default-x-display-manager seen false
|
||||||
|
db_input critical shared/default-x-display-manager || true
|
||||||
|
db_go
|
||||||
|
# if the default display manager file doesn't exist, write it with
|
||||||
|
# the path to the new default display manager
|
||||||
|
if [ ! -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "new default display manager has been selected; please be" \
|
||||||
|
# "sure to run \"dpkg-reconfigure $RET\" to ensure that it" \
|
||||||
|
# "is configured"
|
||||||
|
DAEMON_NAME=
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER"/daemon_name; then
|
||||||
|
DAEMON_NAME="$RET"
|
||||||
|
fi
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
# if we were unable to determine the name of the selected daemon (for
|
||||||
|
# instance, if the selected default display manager doesn't provide a
|
||||||
|
# daemon_name question), guess
|
||||||
|
DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null)
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
echo .
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "unable to determine path to default X display manager" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER; not updating" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ -n "$DAEMON_NAME" ]; then
|
||||||
|
echo "$DAEMON_NAME" > "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
include /usr/share/cdbs/1/class/makefile.mk
|
||||||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||||
|
|
||||||
|
DEB_BUILD_OPTIONS := nostrip
|
||||||
|
export DEB_BUILD_OPTIONS = debug nostrip
|
||||||
|
|
||||||
|
CFLAGS=-g -Wall -fPIC
|
||||||
|
|
||||||
|
DEB_MAKE_INSTALL_TARGET := install DESTDIR="$(DEB_DESTDIR)"
|
||||||
|
DEB_INSTALL_DOCS_ALL :=
|
@ -0,0 +1,8 @@
|
|||||||
|
FPACKAGE = ubuntu-trinity-rename-meta
|
||||||
|
VERSION = 1.0
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
install:
|
@ -0,0 +1,6 @@
|
|||||||
|
ubuntu-trinity-rename-meta (4:13.9.9-0ubuntu1) lucid; urgency=low
|
||||||
|
|
||||||
|
* Initial package
|
||||||
|
|
||||||
|
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Sun, 25 Dec 2011 01:13:00 -0600
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
5
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,89 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# postinst script for kdm-kde3
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# debconf may not be available if some massive purging is going on
|
||||||
|
HAVE_DEBCONF=
|
||||||
|
if [ -e /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
HAVE_DEBCONF=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
|
||||||
|
|
||||||
|
if [ -n "$HAVE_DEBCONF" ]; then
|
||||||
|
# disown this question
|
||||||
|
db_unregister shared/default-x-display-manager || true
|
||||||
|
# does the question still exist?
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
if db_metaget shared/default-x-display-manager owners; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#observe "X display managers now available are \"$OWNERS\""
|
||||||
|
db_subst shared/default-x-display-manager choices "$RET"
|
||||||
|
fi
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
# are we removing the currently selected display manager?
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ "kdm-trinity" = "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER/daemon_name"; then
|
||||||
|
# does the display manager file reference the current default? if
|
||||||
|
# so, remove it because it will now be wrong
|
||||||
|
if [ -n "$RET" ]; then
|
||||||
|
if [ "$(cat "$DEFAULT_DISPLAY_MANAGER_FILE")" = "$RET" ]; then
|
||||||
|
rm "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# ask the user to choose a new default
|
||||||
|
db_fset shared/default-x-display-manager seen false
|
||||||
|
db_input critical shared/default-x-display-manager || true
|
||||||
|
db_go
|
||||||
|
# if the default display manager file doesn't exist, write it with
|
||||||
|
# the path to the new default display manager
|
||||||
|
if [ ! -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "new default display manager has been selected; please be" \
|
||||||
|
# "sure to run \"dpkg-reconfigure $RET\" to ensure that it" \
|
||||||
|
# "is configured"
|
||||||
|
DAEMON_NAME=
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER"/daemon_name; then
|
||||||
|
DAEMON_NAME="$RET"
|
||||||
|
fi
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
# if we were unable to determine the name of the selected daemon (for
|
||||||
|
# instance, if the selected default display manager doesn't provide a
|
||||||
|
# daemon_name question), guess
|
||||||
|
DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null)
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
echo .
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "unable to determine path to default X display manager" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER; not updating" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ -n "$DAEMON_NAME" ]; then
|
||||||
|
echo "$DAEMON_NAME" > "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
include /usr/share/cdbs/1/class/makefile.mk
|
||||||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||||
|
|
||||||
|
DEB_BUILD_OPTIONS := nostrip
|
||||||
|
export DEB_BUILD_OPTIONS = debug nostrip
|
||||||
|
|
||||||
|
CFLAGS=-g -Wall -fPIC
|
||||||
|
|
||||||
|
DEB_MAKE_INSTALL_TARGET := install DESTDIR="$(DEB_DESTDIR)"
|
||||||
|
DEB_INSTALL_DOCS_ALL :=
|
@ -0,0 +1,8 @@
|
|||||||
|
FPACKAGE = ubuntu-trinity-rename-meta
|
||||||
|
VERSION = 1.0
|
||||||
|
|
||||||
|
build:
|
||||||
|
|
||||||
|
clean:
|
||||||
|
|
||||||
|
install:
|
@ -0,0 +1,6 @@
|
|||||||
|
ubuntu-trinity-rename-meta (4:13.9.9-0ubuntu1) lucid; urgency=low
|
||||||
|
|
||||||
|
* Initial package
|
||||||
|
|
||||||
|
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Sun, 25 Dec 2011 01:13:00 -0600
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
5
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,89 @@
|
|||||||
|
#! /bin/sh
|
||||||
|
# postinst script for kdm-kde3
|
||||||
|
#
|
||||||
|
# see: dh_installdeb(1)
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
# debconf may not be available if some massive purging is going on
|
||||||
|
HAVE_DEBCONF=
|
||||||
|
if [ -e /usr/share/debconf/confmodule ]; then
|
||||||
|
. /usr/share/debconf/confmodule
|
||||||
|
HAVE_DEBCONF=yes
|
||||||
|
fi
|
||||||
|
|
||||||
|
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
|
||||||
|
|
||||||
|
if [ -n "$HAVE_DEBCONF" ]; then
|
||||||
|
# disown this question
|
||||||
|
db_unregister shared/default-x-display-manager || true
|
||||||
|
# does the question still exist?
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
if db_metaget shared/default-x-display-manager owners; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#observe "X display managers now available are \"$OWNERS\""
|
||||||
|
db_subst shared/default-x-display-manager choices "$RET"
|
||||||
|
fi
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
# are we removing the currently selected display manager?
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ "kdm-trinity" = "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
if [ -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER/daemon_name"; then
|
||||||
|
# does the display manager file reference the current default? if
|
||||||
|
# so, remove it because it will now be wrong
|
||||||
|
if [ -n "$RET" ]; then
|
||||||
|
if [ "$(cat "$DEFAULT_DISPLAY_MANAGER_FILE")" = "$RET" ]; then
|
||||||
|
rm "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
# ask the user to choose a new default
|
||||||
|
db_fset shared/default-x-display-manager seen false
|
||||||
|
db_input critical shared/default-x-display-manager || true
|
||||||
|
db_go
|
||||||
|
# if the default display manager file doesn't exist, write it with
|
||||||
|
# the path to the new default display manager
|
||||||
|
if [ ! -e "$DEFAULT_DISPLAY_MANAGER_FILE" ]; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER=
|
||||||
|
if db_get shared/default-x-display-manager; then
|
||||||
|
DEFAULT_DISPLAY_MANAGER="$RET"
|
||||||
|
fi
|
||||||
|
if [ -n "$DEFAULT_DISPLAY_MANAGER" ]; then
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "new default display manager has been selected; please be" \
|
||||||
|
# "sure to run \"dpkg-reconfigure $RET\" to ensure that it" \
|
||||||
|
# "is configured"
|
||||||
|
DAEMON_NAME=
|
||||||
|
if db_get "$DEFAULT_DISPLAY_MANAGER"/daemon_name; then
|
||||||
|
DAEMON_NAME="$RET"
|
||||||
|
fi
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
# if we were unable to determine the name of the selected daemon (for
|
||||||
|
# instance, if the selected default display manager doesn't provide a
|
||||||
|
# daemon_name question), guess
|
||||||
|
DAEMON_NAME=$(which "$DEFAULT_DISPLAY_MANAGER" 2>/dev/null)
|
||||||
|
if [ ! -n "$DAEMON_NAME" ]; then
|
||||||
|
echo .
|
||||||
|
# FIXME - redo this part uses shell-lib.sh from xfree86
|
||||||
|
#warn "unable to determine path to default X display manager" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER; not updating" \
|
||||||
|
# "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [ -n "$DAEMON_NAME" ]; then
|
||||||
|
echo "$DAEMON_NAME" > "$DEFAULT_DISPLAY_MANAGER_FILE"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|
@ -0,0 +1,11 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
include /usr/share/cdbs/1/class/makefile.mk
|
||||||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||||
|
|
||||||
|
DEB_BUILD_OPTIONS := nostrip
|
||||||
|
export DEB_BUILD_OPTIONS = debug nostrip
|
||||||
|
|
||||||
|
CFLAGS=-g -Wall -fPIC
|
||||||
|
|
||||||
|
DEB_MAKE_INSTALL_TARGET := install DESTDIR="$(DEB_DESTDIR)"
|
||||||
|
DEB_INSTALL_DOCS_ALL :=
|
Loading…
Reference in new issue