Warly <[EMAIL PROTECTED]> writes:

> Here is the menu structure we now use for Mandrake
> packages. Please make your packages compliant with it ASAP,
> contact me or [EMAIL PROTECTED] for any questions.
> 
To add a menu for a package, you have to create a file under
/usr/lib/menu/<package> with a content like that:

?package(<package>):needs="x11" section="<hieratrchy from bellow>"  title="<menu 
text>" \
longtitle="<my long description>" command="<command>"

and add to the %post and %postun of the spec file, the following:

%post
if [ -x /usr/bin/update-menus ]; then
  /usr/bin/update-menus
fi

%postun

if [ "$1" = 0 ]; then
  if [ -x /usr/bin/update-menus ]; then
    /usr/bin/update-menus
  fi
fi

For example, a menu entry for lavaps a graphical process viewer will
look like that in /usr/lib/menu/lavaps:

?package(lavaps):needs="x11" section="Monitoring"  title="lavaps" \
longtitle="a graphical process viewer" command="lavaps"

For more info, read the doc in the menu package in /usr/doc/menu-*.

> ------------ snip --------- snip ----------------
> 
> - Configuration
>   - Hardware
>   - Packaging
>   - Networking
>   - Printing
>   - Boot and Init
>   - Other
> - Applications
>   - Development
>     - Interpreters
>     - Code generators
>     - Development environments
>     - Tools
>   - Sciences
>     - Astronomy       
>     - Biology 
>     - Chemistry
>     - Computer science
>     - Geosciences 
>     - Mathematics
>     - Physics
>     - Other    
>   - Communications
>   - Editors
>   - Emulators
>   - Archiving
>      - Compression
>      - Cd burning
>      - Backup
>      - Other
>   - Monitoring
>   - Publishing
>   - Terminals
>   - Shells
>   - File tools
>   - Text tools
> - Documentation
> - Office
> - Networking
>   - File transfer
>   - IRC
>   - ICQ
>   - Chat
>   - News
>   - Mail
>   - WWW
>   - Remote access
>   - Other
> - Amusement
>   - Adventure
>   - Arcade
>   - Boards
>   - Cards
>   - Puzzles
>   - Sports
>   - Strategy
>   - Other
>   - Toys
> - Multimedia
>   - Sound
>   - Graphics
>   - Video
> - Session...
>   - Windowmanagers...
>   - Restart session
>   - Exit session
> 
-- 
Fred - May the source be with you

Reply via email to