1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 04:48:06 +01:00

debian: Update with version 0.95.8-2 packaging.

This commit is contained in:
Doug Torrance
2017-08-14 23:17:28 -04:00
committed by Carlos R. Mafra
parent b07075aed3
commit d6f754e747
23 changed files with 102 additions and 333 deletions

31
debian/changelog vendored
View File

@@ -1,3 +1,34 @@
wmaker (0.95.8-2) unstable; urgency=low
[ Doug Torrance ]
* Remove and replace the deprecated Debian menu. The list of
applications is now generated by the wmmenugen utility (with some
patches from upstream's development branch) from .desktop files in
/usr/share/applications. This gives a decent approximation of
compliance with freedesktop.org's menu standards (Closes: #868431).
* Bump Standards-Version to 4.0.1.
* Use dh_installwm to register Window Maker with update-alternatives.
In particular, we add a new file, debian/wmaker.wm, and a new target,
override_dh_installwm, to debian/rules which sets the priority.
To accommodate this, we move the manpage from wmaker-common to
wmaker.
* Bump debhelper compatibility level to 10.
* Remove explicit call to dh_autoreconf; enabled by default in
debhelper 10.
[ Andreas Metzler ]
* Handle removal of menu-methods on upgrades (orphaned conffiles) with
debian/wmaker{,-common}.maintscript. Remove generated menufiles
(etc/GNUstep/Defaults/appearance.menu and /etc/GNUstep/Defaults/menu.hook
on upgrades and purge.
* Because of the moved manpage (which in turn is needed for using
dh_installwm) wmaker breaks/replaces wmaker-common (<< 0.95.8-2~).
* Ship our menu as /etc/GNUstep/Defaults/plmenu.Debian and add a symlink
to it as /usr/share/WindowMaker/menu.hook to make the menu accessible for
upgraded installations.
-- Andreas Metzler <ametzler@debian.org> Mon, 14 Aug 2017 14:11:24 +0200
wmaker (0.95.8-1) unstable; urgency=low wmaker (0.95.8-1) unstable; urgency=low
* Upload to unstable. * Upload to unstable.

2
debian/compat vendored
View File

@@ -1 +1 @@
9 10

8
debian/control vendored
View File

@@ -4,10 +4,9 @@ Priority: optional
Maintainer: Debian Window Maker Team <pkg-wmaker-devel@lists.alioth.debian.org> Maintainer: Debian Window Maker Team <pkg-wmaker-devel@lists.alioth.debian.org>
Uploaders: Andreas Metzler <ametzler@debian.org>, Uploaders: Andreas Metzler <ametzler@debian.org>,
Doug Torrance <dtorrance@piedmont.edu> Doug Torrance <dtorrance@piedmont.edu>
Standards-Version: 3.9.7 Standards-Version: 4.0.1
Build-Depends: automake (>= 1:1.12), Build-Depends: automake (>= 1:1.12),
debhelper (>= 9), debhelper (>= 10),
dh-autoreconf,
gettext, gettext,
libfontconfig1-dev, libfontconfig1-dev,
libgif-dev, libgif-dev,
@@ -39,12 +38,13 @@ Depends: wmaker-common (= ${source:Version}),
${shlibs:Depends} ${shlibs:Depends}
Provides: x-window-manager Provides: x-window-manager
Suggests: desktop-base, Suggests: desktop-base,
menu,
wmaker-data, wmaker-data,
wmaker-utils, wmaker-utils,
x-terminal-emulator, x-terminal-emulator,
x11-apps, x11-apps,
xterm xterm
Breaks: wmaker-common (<< 0.95.8-2~)
Replaces: wmaker-common (<< 0.95.8-2~)
Description: NeXTSTEP-like window manager for X Description: NeXTSTEP-like window manager for X
Written by Alfredo Kojima almost from scratch, resembles the NeXTStep look Written by Alfredo Kojima almost from scratch, resembles the NeXTStep look
very closely, and it is now an official GNU project. Window Maker (originally very closely, and it is now an official GNU project. Window Maker (originally

29
debian/debianfiles/conf/plmenu.Debian vendored Normal file
View File

@@ -0,0 +1,29 @@
(
Debian,
(
Applications,
OPEN_PLMENU,
"|| wmmenugen -parser:xdg /usr/share/applications/"
),
(Run..., EXEC, "%A(Run,Type command to run)"),
(
"Window Maker",
("Info Panel ...", INFO_PANEL),
("Legal Panel ...", LEGAL_PANEL),
(Preferences, EXEC, WPrefs),
("Refresh screen", REFRESH),
(Restart, RESTART)
),
(
WorkSpace,
(Appearance, OPEN_MENU, appearance.menu),
("Arrange Icons", ARRANGE_ICONS),
("Clear Session", CLEAR_SESSION),
("Hide Others", HIDE_OTHERS),
("Save Session", SAVE_SESSION),
("Show All", SHOW_ALL),
(Workspaces, WORKSPACE_MENU)
),
(Exit, EXIT),
("Exit session", SHUTDOWN)
)

View File

@@ -1,26 +0,0 @@
#!/usr/bin/install-menu
#
# Generates the Window Maker Appereance menu
compat="menu-1"
#!include menu.h
genmenu="appearance.menu"
rootprefix="/etc/GNUstep/Defaults"
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker"
treewalk=(M)
supported
wmappearance = " \"" $title "\" " $command "\n"
endsupported
# Please note that items should specify "section=Appearance"
preoutput="/* Automatically generated file. Do not edit. */\n\n#include \"wmmacros\"\n\n"
postoutput="\n"
mainmenutitle=""
submenutitle= ""
startmenu= ifnempty ($title, $title " MENU \n")
endmenu= ifnempty ($title, $title " END \n")

8
debian/rules vendored
View File

@@ -30,15 +30,12 @@ COMMON_OPTIONS := --datadir=$(SHAREDIR) \
--with-defsdatadir=$(DEFSDATADIR) --with-defsdatadir=$(DEFSDATADIR)
%: %:
dh $@ --parallel --with autoreconf dh $@ --parallel
override_dh_auto_configure: override_dh_auto_configure:
env LINGUAS="$(LINGUAS)" dh_auto_configure --verbose -- \ env LINGUAS="$(LINGUAS)" dh_auto_configure --verbose -- \
$(COMMON_OPTIONS) $(WMAKER_OPTIONS) $(COMMON_OPTIONS) $(WMAKER_OPTIONS)
override_dh_installmenu:
dh_installmenu -a --noscripts
override_dh_installdocs: override_dh_installdocs:
# Readmes - Copy+rename before install # Readmes - Copy+rename before install
# We use the root of the temporal directory debian/tmp # We use the root of the temporal directory debian/tmp
@@ -61,3 +58,6 @@ override_dh_install:
# Install files # Install files
dh_install dh_install
override_dh_installwm:
dh_installwm --priority=50

View File

@@ -1,2 +1 @@
etc/menu-methods
usr/share/xsessions usr/share/xsessions

View File

@@ -5,7 +5,7 @@ debian/debianfiles/Themes/debian.tiff usr/share/WindowMaker/Backgrounds
debian/debianfiles/conf/WMRootMenu etc/GNUstep/Defaults debian/debianfiles/conf/WMRootMenu etc/GNUstep/Defaults
debian/debianfiles/conf/WMWindowAttributes etc/GNUstep/Defaults debian/debianfiles/conf/WMWindowAttributes etc/GNUstep/Defaults
debian/debianfiles/conf/WindowMaker etc/GNUstep/Defaults debian/debianfiles/conf/WindowMaker etc/GNUstep/Defaults
debian/debianfiles/menu/wmappearance etc/menu-methods debian/debianfiles/conf/plmenu.Debian etc/GNUstep/Defaults
debian/debianfiles/wmaker usr/bin debian/debianfiles/wmaker usr/bin
debian/debianfiles/wmaker-common.desktop usr/share/xsessions debian/debianfiles/wmaker-common.desktop usr/share/xsessions
etc/GNUstep/Defaults/WMGLOBAL etc/GNUstep/Defaults/WMGLOBAL

1
debian/wmaker-common.links vendored Normal file
View File

@@ -0,0 +1 @@
etc/GNUstep/Defaults/plmenu.Debian usr/share/WindowMaker/menu.hook

View File

@@ -1,3 +0,0 @@
# The Window Maker Appereance menu don't needs the menu.h
# because the Window Maker menu is not Debian standard
wmaker-common: menu-method-should-include-menu-h

View File

@@ -3,3 +3,4 @@ mv_conffile /etc/X11/WindowMaker/wmmacros /usr/share/WindowMaker/wmmacros 0.95.7
rm_conffile /etc/X11/WindowMaker/appearance.menu 0.95.7-5~ rm_conffile /etc/X11/WindowMaker/appearance.menu 0.95.7-5~
rm_conffile /etc/X11/WindowMaker/menu.posthook 0.95.7-5~ rm_conffile /etc/X11/WindowMaker/menu.posthook 0.95.7-5~
rm_conffile /etc/X11/WindowMaker/menu.prehook 0.95.7-5~ rm_conffile /etc/X11/WindowMaker/menu.prehook 0.95.7-5~
rm_conffile /etc/menu-methods/wmappearance 0.95.8-2~

View File

@@ -1,2 +0,0 @@
doc/WindowMaker.1
doc/wmaker.1

View File

@@ -1,41 +1,14 @@
#!/bin/sh #!/bin/sh
set -e set -e
# Window Maker postinst.
#
# Marcelo Magallon <mmagallo@debian.org>
# Rodolfo "kix" García <kix@kix.es>
inst="/etc/menu-methods/wmappearance"
case "$1" in
configure)
for file in $inst ; do
if [ -f $file ] ; then
chmod a+x $file
fi
done
if [ -x /usr/bin/update-menus -a -x /usr/bin/install-menu ] ; then
# Remove the menu.hook from all the possible paths.
rm -f /etc/X11/WindowMaker/menu.hook
rm -f /usr/share/WindowMaker/menu.hook
# Remove appearance.menu
rm -f /usr/share/WindowMaker/appearance.menu
update-menus
fi
;;
abort-upgrade|abort-deconfigure|abort-remove)
# how did we got here? Force a non-zero exit code
exit 1
;;
*)
echo "postinst called with unkown argument: \$1" >&2
;;
esac
#DEBHELPER# #DEBHELPER#
exit 0 # run after debhelper code, which removes menu-methods.
if [ "$1" = "configure" ] &&
[ x"$2" != "x" ] &&
test -e /etc/GNUstep/Defaults/appearance.menu &&
dpkg --compare-versions "$2" '<<' '0.95.8-2~' ; then
if head -n1 /etc/GNUstep/Defaults/appearance.menu |
grep -q 'Automatically generated file. Do not edit.' ; then
rm /etc/GNUstep/Defaults/appearance.menu
fi
fi

View File

@@ -1,38 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
if [ "$1" = "purge" ] && test -e /etc/GNUstep/Defaults/appearance.menu ; then
inst="/etc/menu-methods/wmaker /etc/menu-methods/wmappearance" rm /etc/GNUstep/Defaults/appearance.menu
fi
case "$1" in
remove)
for file in $inst ; do
if [ -f $file ] ; then
chmod a-x $file
fi
done
;;
purge)
if which update-menus >/dev/null 2>&1 ; then
update-menus
rm -f /etc/GNUstep/Defaults/menu.hook /etc/GNUstep/Defaults/appearance.menu
fi
;;
upgrade|abort-install|disappear)
# nothing to do
;;
failed-upgrade)
# this is an upgrade, and it has failed. What can fail?
exit 1
;;
abort-upgrade)
# preinst failed, leave things like they were
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER# #DEBHELPER#
exit 0

View File

@@ -1,15 +0,0 @@
# wmaker (WindowMaker) has a different menu system,
# non debian-standard.
#
# wmaker has menus for Appearance, Workspaces,...
# These menus are created as new root sections.
wmaker: menu-item-creates-new-root-section
# wmaker has commands like SHUTDOWN, EXEC, OPEN_MENU,...
# that are not system/package/binary commands (hooks?)
wmaker: menu-command-not-in-package
# arg is used to pass an argument to the hook command
# eg: command="OPEN_MENU" arg="appearance.menu"
wmaker: menu-item-contains-unknown-tag
# needs has the tag "wmaker"
# eg: ?package(wmaker):needs="wmaker"
wmaker: menu-item-needs-tag-has-unknown-value

1
debian/wmaker.maintscript vendored Normal file
View File

@@ -0,0 +1 @@
rm_conffile /etc/menu-methods/wmaker 0.95.8-2~

View File

@@ -1,4 +1,5 @@
doc/WPrefs.1 doc/WPrefs.1
doc/WindowMaker.1
doc/geticonset.1 doc/geticonset.1
doc/getstyle.1 doc/getstyle.1
doc/seticons.1 doc/seticons.1
@@ -6,6 +7,7 @@ doc/setstyle.1
doc/wdread.1 doc/wdread.1
doc/wdwrite.1 doc/wdwrite.1
doc/wmagnify.1 doc/wmagnify.1
doc/wmaker.1
doc/wmgenmenu.1 doc/wmgenmenu.1
doc/wmiv.1 doc/wmiv.1
doc/wmmenugen.1 doc/wmmenugen.1

72
debian/wmaker.menu vendored
View File

@@ -1,72 +0,0 @@
?package(wmaker):needs="wm" \
section="Window Managers" title="Window Maker" \
command="/usr/bin/wmaker"
?package(wmaker):needs="wmaker" \
section="/" title="Run..." \
command="SHEXEC \"%A(Run,Type Command:)\""
?package(wmaker):needs="wmaker" \
section="/" title="Exit" sort="ZZ" \
command="EXIT"
?package(wmaker):needs="wmaker" \
section="/" title="Exit session" sort="ZZ" \
command="SHUTDOWN"
?package(wmaker):needs="wmaker" \
section="Window Maker" title="Restart" \
command="RESTART"
?package(wmaker):needs="wmaker" \
section="Window Maker" title="Info Panel ..." \
command="INFO_PANEL"
?package(wmaker):needs="wmaker" \
section="Window Maker" title="Legal Panel ..." \
command="LEGAL_PANEL"
?package(wmaker):needs="wmaker" \
section="Window Maker" title="Preferences" \
command="EXEC" arg="WPrefs"
?package(wmaker):needs="wmaker" \
section="WorkSpace" title="Workspaces" \
command="WORKSPACE_MENU"
?package(wmaker):needs="wmaker" \
section="WorkSpace" title="Hide Others" \
command="HIDE_OTHERS"
?package(wmaker):needs="wmaker" \
section="WorkSpace" title="Show All" \
command="SHOW_ALL"
?package(wmaker):needs="wmaker" \
section="WorkSpace" title="Arrange Icons" \
command="ARRANGE_ICONS"
?package(wmaker):needs="wmaker" \
section="WorkSpace" title="Save Session" \
command="SAVE_SESSION"
?package(wmaker):needs="wmaker" \
section="WorkSpace" title="Clear Session" \
command="CLEAR_SESSION"
?package(wmaker):needs="wmaker" \
section="Window Maker" title="Refresh screen" \
command="REFRESH"
?package(wmaker):needs="wmaker" \
section="WorkSpace" title="Appearance" \
command="OPEN_MENU" arg="appearance.menu"
?package(wmaker):needs="wmappearance" \
section="Appearance" title="Background"\
sort="$" \
command="OPEN_MENU background.menu"
?package(wmaker):needs="wmappearance" \
section="Appearance" title="Styles"\
sort="$" \
command="OPEN_MENU -noext LOCAL_STYLES_DIR STYLES_DIR USER_STYLES_DIR WITH setstyle"
?package(wmaker):needs="wmappearance" \
section="Appearance" title="Themes"\
sort="$" \
command="OPEN_MENU -noext LOCAL_THEMES_DIR THEMES_DIR USER_THEMES_DIR WITH setstyle"
?package(wmaker):needs="wmappearance" \
section="Appearance" title="Icon Sets"\
sort="ss" \
command="OPEN_MENU -noext LOCAL_ICON_SETS_DIR ICON_SETS_DIR USER_ICON_SETS_DIR WITH seticons"
?package(wmaker):needs="wmappearance" \
section="Appearance" title="Save IconSet"\
sort="zz" \
command="EXEC geticonset USER_ICON_SETS_DIR/\"%a(IconSet name)\""
?package(wmaker):needs="wmappearance" \
section="Appearance" title="Save Theme"\
sort="zz" \
command="EXEC getstyle -t USER_THEMES_DIR/\"%a(Theme name)\""

View File

@@ -1,45 +0,0 @@
#!/usr/bin/install-menu
#
# Generates Window Maker menus for all registered applications.
!include menu.h
compat="menu-1";
outputencoding="UTF-8"
outputlanguage="C"
genmenu="menu.hook"
rootprefix="/etc/GNUstep/Defaults"
userprefix=shell("echo -n /${GNUSTEP_USER_ROOT-GNUstep}") "/Library/WindowMaker/"
treewalk="(M)"
rootsection="/Debian"
function mytitle()=replacewith(title(),"\"","'")
function exec($action,$com)= \
" \"" translate(,mytitle()) "\" " ifnempty($shortcut, "SHORTCUT " $shortcut " ") $action " " esc($com,"*") "\n"
supported
x11= exec("SHEXEC",$command)
wm= exec("RESTART",$command)
text= exec("SHEXEC",term())
wmaker= exec("",$command ifnempty($arg," " $arg))
endsupported
preoutput= "/* Automatically generated file. Do not edit (see /usr/share/doc/menu/menu.txt.gz) */\n\n#include \"wmmacros\"\n"
mainmenutitle=""
submenutitle= ""
startmenu= "\n" \
ifelse( \
title(), \
ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" MENU"), \
"Debian MENU\n\n" \
) \
"\n"
endmenu= ifelse( \
title(), \
ifneq(mytitle(), "Applications", "\"" translate(,mytitle()) "\" END"), \
"\n\nDebian END" \
) \
"\n"

View File

@@ -1,44 +1,14 @@
#!/bin/sh #!/bin/sh
set -e set -e
# Window Maker postinst.
#
# Marcelo Magallon <mmagallo@debian.org>
# Rodolfo "kix" García <kix@kix.es>
x_wm_link=/etc/alternatives/x-window-manager
x_wm_man_link=/usr/share/man/man1/x-window-manager.1.gz
inst="/etc/menu-methods/wmaker"
case "$1" in
configure)
for file in $inst ; do
if [ -f $file ] ; then
chmod a+x $file
fi
done
update-alternatives --install /usr/bin/x-window-manager \
x-window-manager /usr/bin/wmaker 50 \
--slave /usr/share/man/man1/x-window-manager.1.gz \
x-window-manager.1.gz /usr/share/man/man1/wmaker.1.gz
if [ -x /usr/bin/update-menus -a -x /usr/bin/install-menu ] ; then
update-menus
fi
;;
abort-upgrade|abort-deconfigure|abort-remove)
# how did we got here? Force a non-zero exit code
exit 1
;;
*)
echo "postinst called with unkown argument: \$1" >&2
;;
esac
#DEBHELPER# #DEBHELPER#
exit 0 # run after debhelper code, which removes menu-methods.
if [ "$1" = "configure" ] &&
[ x"$2" != "x" ] &&
test -e /etc/GNUstep/Defaults/menu.hook &&
dpkg --compare-versions "$2" '<<' '0.95.8-2~' ; then
if head -n1 /etc/GNUstep/Defaults/menu.hook |
grep -q 'Automatically generated file. Do not edit' ; then
rm /etc/GNUstep/Defaults/menu.hook
fi
fi

28
debian/wmaker.postrm vendored
View File

@@ -1,28 +1,6 @@
#!/bin/sh #!/bin/sh
set -e set -e
if [ "$1" = "purge" ] && test -e /etc/GNUstep/Defaults/menu.hook ; then
case "$1" in rm /etc/GNUstep/Defaults/menu.hook
remove) fi
if which update-menus >/dev/null 2>&1 ; then
update-menus
fi
;;
purge|upgrade|abort-install|disappear)
# nothing to do
;;
failed-upgrade)
# this is an upgrade, and it has failed. What can fail?
exit 1
;;
abort-upgrade)
# preinst failed, leave things like they were
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER# #DEBHELPER#
exit 0

22
debian/wmaker.prerm vendored
View File

@@ -1,22 +0,0 @@
#!/bin/sh
set -e
case "$1" in
failed-upgrade|abort-upgrade|deconfigure)
update-alternatives --remove x-window-manager /usr/bin/wmaker
;;
remove)
update-alternatives --remove x-window-manager /usr/bin/wmaker
;;
upgrade)
;;
*)
echo "postrm called with unknown argument \`$1'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0

1
debian/wmaker.wm vendored Normal file
View File

@@ -0,0 +1 @@
/usr/bin/wmaker