diff options
Diffstat (limited to 'autoscripts')
32 files changed, 60 insertions, 57 deletions
diff --git a/autoscripts/postinst-doc-base b/autoscripts/postinst-doc-base deleted file mode 100644 index c3653bed..00000000 --- a/autoscripts/postinst-doc-base +++ /dev/null @@ -1,3 +0,0 @@ -if command -v install-docs >/dev/null 2>&1; then - install-docs -i /usr/share/doc-base/#DOC-ID# -fi diff --git a/autoscripts/postinst-emacsen b/autoscripts/postinst-emacsen deleted file mode 100644 index 45f1deec..00000000 --- a/autoscripts/postinst-emacsen +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/emacsen-common/emacs-package-install #PACKAGE# diff --git a/autoscripts/postinst-info b/autoscripts/postinst-info deleted file mode 100644 index 59881a19..00000000 --- a/autoscripts/postinst-info +++ /dev/null @@ -1 +0,0 @@ -install-info --quiet --section "#SECTION#" "#SECTION#" #FILE# diff --git a/autoscripts/postinst-info-nosection b/autoscripts/postinst-info-nosection deleted file mode 100644 index cba27d27..00000000 --- a/autoscripts/postinst-info-nosection +++ /dev/null @@ -1 +0,0 @@ -install-info --quiet #FILE# diff --git a/autoscripts/postinst-init b/autoscripts/postinst-init deleted file mode 100644 index 976c6b34..00000000 --- a/autoscripts/postinst-init +++ /dev/null @@ -1,2 +0,0 @@ -update-rc.d #SCRIPT# #INITPARMS# >/dev/null -/etc/init.d/#SCRIPT# start diff --git a/autoscripts/postinst-init-norestart b/autoscripts/postinst-init-norestart deleted file mode 100644 index b33702c5..00000000 --- a/autoscripts/postinst-init-norestart +++ /dev/null @@ -1,6 +0,0 @@ -update-rc.d #SCRIPT# #INITPARMS# >/dev/null -if [ "$1" = "configure" ]; then - if [ -z "$2" -o "$2" = "<unknown>" ]; then - /etc/init.d/#SCRIPT# start - fi -fi diff --git a/autoscripts/postinst-init-nostart b/autoscripts/postinst-init-nostart new file mode 100644 index 00000000..5d882b6f --- /dev/null +++ b/autoscripts/postinst-init-nostart @@ -0,0 +1,3 @@ +if [ -x "/etc/init.d/#SCRIPT#" ]; then + update-rc.d #SCRIPT# #INITPARMS# >/dev/null +fi diff --git a/autoscripts/postinst-menu b/autoscripts/postinst-menu deleted file mode 100644 index 2be88247..00000000 --- a/autoscripts/postinst-menu +++ /dev/null @@ -1 +0,0 @@ -if test -x /usr/bin/update-menus ; then update-menus ; fi diff --git a/autoscripts/postinst-menu-method b/autoscripts/postinst-menu-method index 03acde7f..01913d82 100644 --- a/autoscripts/postinst-menu-method +++ b/autoscripts/postinst-menu-method @@ -1,5 +1,5 @@ inst=/etc/menu-methods/#PACKAGE# -if [ -x /usr/bin/update-menus -a -f $inst ] ; then +if [ -x /usr/bin/update-menus ] && [ -f $inst ] ; then chmod a+x $inst update-menus fi diff --git a/autoscripts/postinst-mime b/autoscripts/postinst-mime deleted file mode 100644 index e993233b..00000000 --- a/autoscripts/postinst-mime +++ /dev/null @@ -1 +0,0 @@ -if [ -x /usr/sbin/update-mime ]; then update-mime; fi diff --git a/autoscripts/postinst-modules b/autoscripts/postinst-modules deleted file mode 100644 index a8f4ce70..00000000 --- a/autoscripts/postinst-modules +++ /dev/null @@ -1,2 +0,0 @@ -update-modules -depmod -a diff --git a/autoscripts/postinst-python b/autoscripts/postinst-python new file mode 100644 index 00000000..6f1f9a5b --- /dev/null +++ b/autoscripts/postinst-python @@ -0,0 +1,8 @@ +PYTHON=#PYVER# +if which $PYTHON >/dev/null 2>&1; then + DIRLIST="#DIRLIST#" + for i in $DIRLIST ; do + $PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i + $PYTHON /usr/lib/$PYTHON/compileall.py -q $i + done +fi diff --git a/autoscripts/postinst-scrollkeeper b/autoscripts/postinst-scrollkeeper new file mode 100644 index 00000000..5f2a255d --- /dev/null +++ b/autoscripts/postinst-scrollkeeper @@ -0,0 +1,3 @@ +if [ "$1" = "configure" ]; then + scrollkeeper-update -q +fi diff --git a/autoscripts/postinst-sgmlcatalog b/autoscripts/postinst-sgmlcatalog new file mode 100644 index 00000000..100dee2f --- /dev/null +++ b/autoscripts/postinst-sgmlcatalog @@ -0,0 +1,7 @@ +if [ "$1" = "configure" ]; then + rm -f #CENTRALCAT# + for ordcat in #ORDCATS#; do + update-catalog --quiet --add #CENTRALCAT# ${ordcat} + done + update-catalog --quiet --add --super #CENTRALCAT# +fi diff --git a/autoscripts/postinst-suid b/autoscripts/postinst-suid deleted file mode 100644 index dcc277fd..00000000 --- a/autoscripts/postinst-suid +++ /dev/null @@ -1,6 +0,0 @@ -if command -v suidregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then - suidregister -s #PACKAGE# /#FILE# #OWNER# #GROUP# #PERMS# -elif [ -e /#FILE# ]; then - chown #OWNER#.#GROUP# /#FILE# - chmod #PERMS# /#FILE# -fi diff --git a/autoscripts/postinst-usrlocal b/autoscripts/postinst-usrlocal new file mode 100644 index 00000000..a2f004db --- /dev/null +++ b/autoscripts/postinst-usrlocal @@ -0,0 +1,16 @@ +if [ "$1" = configure ]; then +( + while read line; do + set -- $line + dir="$1"; mode="$2"; user="$3"; group="$4" + if [ ! -e "$dir" ]; then + if mkdir "$dir" 2>/dev/null; then + chown "$user":"$group" "$dir" + chmod "$mode" "$dir" + fi + fi + done +) << DATA +#DIRS# +DATA +fi diff --git a/autoscripts/postinst-wm b/autoscripts/postinst-wm deleted file mode 100644 index 925c7883..00000000 --- a/autoscripts/postinst-wm +++ /dev/null @@ -1,3 +0,0 @@ -if command -v register-window-manager >/dev/null 2>&1; then - register-window-manager --add #WM# -fi diff --git a/autoscripts/postinst-xaw b/autoscripts/postinst-xaw deleted file mode 100644 index 3d8e2d1b..00000000 --- a/autoscripts/postinst-xaw +++ /dev/null @@ -1,6 +0,0 @@ -if test -x /usr/sbin/update-xaw-wrappers; then - /usr/sbin/update-xaw-wrappers -fi -for opts in #OPTS#; do - update-alternatives --quiet --install $opts 25 -done diff --git a/autoscripts/postrm-init b/autoscripts/postrm-init index 1c292982..9596dd97 100644 --- a/autoscripts/postrm-init +++ b/autoscripts/postrm-init @@ -1,3 +1,3 @@ if [ "$1" = "purge" ] ; then - update-rc.d #SCRIPT# remove >/dev/null + update-rc.d #SCRIPT# remove #INITPARMS# >/dev/null fi diff --git a/autoscripts/postrm-menu-method b/autoscripts/postrm-menu-method deleted file mode 100644 index 3270b7c7..00000000 --- a/autoscripts/postrm-menu-method +++ /dev/null @@ -1,3 +0,0 @@ -inst=/etc/menu-methods/#PACKAGE# -if [ "$1" = "remove" -a -f "$inst" ]; then chmod a-x $inst ; fi -if test -x /usr/bin/update-menus ; then update-menus; fi diff --git a/autoscripts/postrm-scrollkeeper b/autoscripts/postrm-scrollkeeper new file mode 100644 index 00000000..47b71544 --- /dev/null +++ b/autoscripts/postrm-scrollkeeper @@ -0,0 +1,3 @@ +if [ "$1" = "remove" ] && which scrollkeeper-update >/dev/null 2>&1; then + scrollkeeper-update -q +fi diff --git a/autoscripts/postrm-sgmlcatalog b/autoscripts/postrm-sgmlcatalog new file mode 100644 index 00000000..168a6949 --- /dev/null +++ b/autoscripts/postrm-sgmlcatalog @@ -0,0 +1,3 @@ +if [ "$1" = "purge" ]; then + rm -f #CENTRALCAT# #CENTRALCAT#.old +fi diff --git a/autoscripts/postrm-suid b/autoscripts/postrm-suid deleted file mode 100644 index d4a76199..00000000 --- a/autoscripts/postrm-suid +++ /dev/null @@ -1,3 +0,0 @@ -if command -v suidunregister >/dev/null 2>&1 && [ -e /etc/suid.conf ]; then - suidunregister -s #PACKAGE# /#FILE# -fi diff --git a/autoscripts/postrm-wm b/autoscripts/postrm-wm deleted file mode 100644 index 6a7eb47a..00000000 --- a/autoscripts/postrm-wm +++ /dev/null @@ -1,4 +0,0 @@ -if [ "$1" = "purge" ] && command -v register-window-manager >/dev/null 2>&1 -then - register-window-manager --remove #WM# -fi diff --git a/autoscripts/postrm-xaw b/autoscripts/postrm-xaw deleted file mode 100644 index b8d718ea..00000000 --- a/autoscripts/postrm-xaw +++ /dev/null @@ -1,3 +0,0 @@ -if test -x /usr/sbin/update-xaw-wrappers; then - /usr/sbin/update-xaw-wrappers -fi diff --git a/autoscripts/prerm-doc-base b/autoscripts/prerm-doc-base deleted file mode 100644 index 9678003e..00000000 --- a/autoscripts/prerm-doc-base +++ /dev/null @@ -1,3 +0,0 @@ -if command -v install-docs >/dev/null 2>&1; then - install-docs -r #DOC-ID# -fi diff --git a/autoscripts/prerm-emacsen b/autoscripts/prerm-emacsen deleted file mode 100644 index d11dafab..00000000 --- a/autoscripts/prerm-emacsen +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/emacsen-common/emacs-package-remove #PACKAGE# diff --git a/autoscripts/prerm-init b/autoscripts/prerm-init deleted file mode 100644 index 64975a38..00000000 --- a/autoscripts/prerm-init +++ /dev/null @@ -1 +0,0 @@ -/etc/init.d/#SCRIPT# stop diff --git a/autoscripts/prerm-python b/autoscripts/prerm-python new file mode 100644 index 00000000..0dc12731 --- /dev/null +++ b/autoscripts/prerm-python @@ -0,0 +1,5 @@ +if [ "$1" = remove ]; then + dpkg -L #PACKAGE# | + awk '$0~/\.py$/ {print $0"c\n" $0"o"}' | + xargs rm -f >&2 +fi diff --git a/autoscripts/prerm-sgmlcatalog b/autoscripts/prerm-sgmlcatalog new file mode 100644 index 00000000..cdc96e02 --- /dev/null +++ b/autoscripts/prerm-sgmlcatalog @@ -0,0 +1,3 @@ +if [ "$1" = "remove" ]; then + update-catalog --quiet --remove --super #CENTRALCAT# +fi diff --git a/autoscripts/prerm-usrlocal b/autoscripts/prerm-usrlocal new file mode 100644 index 00000000..baafc23e --- /dev/null +++ b/autoscripts/prerm-usrlocal @@ -0,0 +1,7 @@ +( + while read dir; do + rmdir "$dir" 2>/dev/null || true + done +) << DATA +#JUSTDIRS# +DATA diff --git a/autoscripts/prerm-xaw b/autoscripts/prerm-xaw deleted file mode 100644 index 2507a2f5..00000000 --- a/autoscripts/prerm-xaw +++ /dev/null @@ -1,4 +0,0 @@ -for opts in #OPTS#; do - update-alternatives --quiet --remove $opts -done - |