[devel] Menu-Packaging-Howto (was Re: ÐÏÍÏÝØ × ÓÂÏÒËÅ ÐÁËÅÔÁ )

Sergey V Turchin =?iso-8859-1?q?zerg_=CE=C1_altlinux=2Eorg?=
ðÎ íÁÒ 29 13:49:01 MSD 2004


÷ ÓÏÏÂÝÅÎÉÉ ÏÔ 27 íÁÒÔ 2004 16:31 Alexey Tourbin ÎÁÐÉÓÁÌ(a):
> On Sat, Mar 27, 2004 at 02:59:33PM +0200, Alexander Bokovoy wrote:
> > ôÁËÏÊ ÏÔ×ÅÔ ÎÁÄÏ × RPM packaging FAQ.
>
> óÀÒÐÒÉÚ, ÓÀÒÐÒÉÚ!  åÓÌÉ ÂÙ ÎÅ Á×ÁÒÉÑ ÎÁ ÏÄÎÏÍ ÉÚ ÇÌÁ×ÎÙÈ ÓÅÒ×ÅÒÏ×
> ÓÅÇÏÄÎÑ ÕÔÒÏÍ, ÔÏ ÏÎ ÂÙ ÕÖÅ ÂÙÌ.
îÅ ÎÁÄÏ ÓÀÒÐÒÉÚÏ×. îÁÏÂÏÒÏÔ, ÐÒÅÄÕÐÒÅÖÄÁÔØ ÎÁÄÏ :-)
ñ ÓÁÍ ÔÕÄÁ ÄÁÍ ÏÔ×ÅÔ. é ÏÎ ÂÕÄÅÔ ÎÅÓËÏÌØËÏ ÄÒÕÇÏÊ.

÷ÏÔ ÂÅÔÁ-×ÅÒÓÉÑ. íÏÖÅÔ Õ ËÏÇÏ ÅÓÔØ ÚÁÍÅÞÁÎÉÑ?

-- 
Regards, Sergey, ALT Linux Team, http://www.altlinux.ru
http://stinkfoot.org:11371/pks/lookup?op=get&search=0x1C2A3F08
----------- ÓÌÅÄÕÀÝÁÑ ÞÁÓÔØ -----------

1 Îåïá.
-------


1.1 Ðìðïïýå îåïåäãåôý.
----------------------

    Ðìðïïýå îåïåäãåôý, èîåáüêå ðæð÷ôâãâæû êåôâôéêá òôðúôâîî
þ þêäå îåïá äðíãïý êîåæû 2 æêòâ õæôèìæèôý îåïá.
Õæâïäâôæïâó ê ôðäïâó.

Õæâïäâôæïâó:
    Ðïâ äðíãïâ ðæð÷ôâãâæûõó òð-èîðíàâïêá. Øæð õæôèìæèôâ îåïá,
úåïåôêôèåîâó òôðúôâîîâîê, ïâéðäóüêîêõó þ ìâæâíðúå
%_sysconfdir/menu-methods òôê òðîðüê êïæåôòôåæâæðôâ êÿ òâìåæâ menu.

Ôðäïâó:
    Òðääåôãêþâåæõó õâîêî ðìðïïýî îåïåäãåôðî ê îðãåæ ÷ýæû íá÷ðúð þêäâ,
öðôîâæâ ê õæôèìæèôý, õþðëõæþåïïýé øæðîè ðìðïïðîè îåïåäãåôè
ê ïâ èõîðæôåïêå îâïæåëïåôâ òâìåæâ øæðúð ðìðïïðúð îåïåäãåôâ
þòíðæû äð åå ðæõèæõæþêó.

    Òåôåìíáàåïêå îåãäè øæêîê æêòâîê òôðêõéðäêæ þ ÿâþîõêîðõæê
ðæ ïâíêàêó/ðæõèæõæþêó öâëíðþ:
~/.menu/disable_customization
~/.menu/enable_customization
%_sysconfdir/menu/disable_customization
%_sysconfdir/menu/enable_customization
Òðíûÿðþâæåíûõìâó ïâõæôðëìâ êîååæ òôåêîèüåõæþð ïâä õêõæåîïðë.


1.2 Òôêíðãåïêó.
---------------

    Æåìõæðþýå ê úôâöêàåõìêå òôêíðãåïêó, ìðæðôýî ïåð÷éðäêîð òðóþíåïêå
òèïìæâ îåïá äíó ïêé þ íá÷ðî ðìðïïðî îåïåäãåôå äðíãïý êîåæû þ ìâæâíðúå
%_menudir öâëí(ý), þ öðôîâæå, ðòêõâïïðî þ òâìåæå menu.

    Öâëí þ öðôîâæå menu îðãïð òðíèàêæû ìðïþåôæâçêåë êÿ öâëíâ .desktop
òôê òðîðüê òôðúôâîîý freedesktop2menu.pl êÿ òâìåæâ menu-devel.

Òôêîåô:
freedesktop2menu.pl \
	package_name \
        Applications/Monitoring \
	%buildroot/%_datadir/applications/SuperMonitor.desktop \
	%buildroot/%_menudir/supermonitor \
	windiow_manager

    package_name - êîó òâìåæâ. Åõíê øæðæ òâìåæ ïå èõæâïðþíåï,
æð õððæþåæõæþèáüêë òèïìæ îåïá ïå úåïåôêôèåæõó.
    window_manager - øæð æð, àæð òðòâäåæ þ ÿïâàåïêå needs è menu-öâëíâ. 
Åõíê ðòèüåï, òð-èîðíàâïêá èõæâïâþíêþâåæõó needs="x11"

Îðãåæ òôêïêîâæû ÿïâàåïêó äíó ðìðïïýé îåïåäãåôðþ. - gnome,kde,icewm ê äô.
(cî. menu-method äíó ìðïìôåæïðúð ðìðïïðúð îåïåäãåôâ),
â æâì ãå õíèãå÷ïýå ÿïâàåïêó - x11,text,wm.
wm   - èìâÿýþâåæõó æðíûìð þ ðìðïïýé îåïåäãåôâé äíó êõòðíûÿðþâïêó þ äôèúêé
       ðìðïïýé îåïåäãåôâé, êÿ ìðæðôýé îðãïð òåôåÿâúôèãâæûõó þ òåôþýå
       òôóîð êÿ îåïá.
x11  - äíó íá÷ýé úôâöêàåõìêé òôðúôâîî þ íá÷ýé ðìðïïýé îåïåäãåôâé.
text - äíó æåìõæðþýé òôðúôâîî. Þ úôâöêàåõìðë õôåäå âþæðîâæðî ÿâòèõìâáæõó
       þ æåôîêïâíå. Æ.å. þ òâôâîåæôå command ïå ïèãïð èìâÿýþâæû
       øîèíóæðô æåôîêïâíâ.

Åõíê þ òâôâîåæôå command èìâÿâï ÿâòèõì òôðúôâîî, ðæõèæõæþèáüêé þ òâìåæå,
æð øæðæ òâìåæ äðíãåï êîåæû õððæþåæõæþèáüèá ÿâþêõêîðõæû.

    Ïåìðæðôýå .desktop öâëíý, õðäåôãâüêå òåôåþðäý ïâ ôâÿíêàïýå óÿýìê îðãïð
ïâëæê òð âäôåõè ftp://ftp.altlinux.ru/pub/people/zerg/menu/desktop-files

    Ôåìðîåïäèåæõó ïâíêàêå öâëíðþ .desktop þ %_datadir/applications/
ïâôóäè õ menu-öâëíâîê. Øæð òðíåÿïð äíó äíó ðìðïïýé îåïåäãåôðþ,
òðääåôãêþâáüêé õæâïäâôæ îåïá, ðòêõâïïýë ïâ http://freedesktop.org .


1.3 Òêìæðúôâîîý.
----------------

    Õæâïäâôæïýî ôâõòðíðãåïêåî òêìæðúôâîî, òôåäïâÿïâàåïïýé äíó êõòðíûÿðþâïêó
þ òôêíðãåïêóé êÿ äôèúêé òâìåæðþ(ïâòôêîåô þ îåïá ìâìðúð-íê÷ð ðìðïïðúð îåïåäãåôâ),
óþíóåæõó %_iconsdir/hicolor þ õððæþåæõæþêê õð õæâïäâôæðî,
ðòêõâïïðî ïâ http://freedesktop.org ê òð âïâíðúêê õ òâìåæðî icon-theme-hicolor.


1.4 Õæâïäâôæïâó õæôèìæèôâ.
--------------------------

Amusement
    Adventure
    Arcade
    Boards
    Cards
    Other
    Puzzles
    Sports
    Strategy
    Toys
Applications
    Accessibility
    Archiving
	Compression
	Cd burning
	Backup
	Other
    Communications
    Databases
    Development
	Interpreters
	Code generators
	Development environments
	Tools
    Editors
    Edutainment
    Emulators
    File tools
    Finances
    Monitoring
    Publishing
    Sciences
	Astronomy
	Biology
	Chemistry
	Computer science
	Geosciences
	Mathematics
	Physics
	Other
    Shells
    Text tools
Configuration
    Boot and Init
    Hardware
    Networking
    Packaging
    Printing
    Other
Chinese
Documentation
Office
    Accessories
    AddressBooks
    Graphs
    Presentations
    PDA
    Spreadsheets
    Time management
    Tasks management
    Wordprocessors
Multimedia
    Sound
    Graphics
    Video
Networking
    Chat
    File transfer
    IRC
    Instant messaging
    News
    Mail
    Remote access
    WWW
    Other
Session
    Windowmanagers
Terminals

1.5 Äðòðíïêæåíûïâó êïöðôîâçêó.
------------------------------

    Äðòðíïêæåíûïâó êïöðôîâçêó ïâéðäêæõó þ äðìèîåïæâçêê
òâìåæâ menu.
----------- ÓÌÅÄÕÀÝÁÑ ÞÁÓÔØ -----------
âÙÌÏ ÕÄÁÌÅÎÏ ×ÌÏÖÅÎÉÅ ÎÅ × ÔÅËÓÔÏ×ÏÍ ÆÏÒÍÁÔÅ...
éÍÑ     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
ôÉÐ     : application/pgp-signature
òÁÚÍÅÒ  : 189 ÂÁÊÔÏ×
ïÐÉÓÁÎÉÅ: signature
Url     : <http://lists.altlinux.org/pipermail/devel/attachments/20040329/1bcba9b0/attachment-0001.bin>


ðÏÄÒÏÂÎÁÑ ÉÎÆÏÒÍÁÃÉÑ Ï ÓÐÉÓËÅ ÒÁÓÓÙÌËÉ Devel