![]() |
2009-12-22
, 19:48
|
Posts: 236 |
Thanked: 223 times |
Joined on Oct 2009
@ NE UK
|
#2
|
A package to be installed in /opt must locate its static files in a separate /opt/<package> or /opt/<provider> directory tree, where <package> is a name that describes the software package and <provider> is the provider's LANANA registered name.
The Following 4 Users Say Thank You to kwotski For This Useful Post: | ||
![]() |
2009-12-22
, 19:52
|
|
Posts: 670 |
Thanked: 359 times |
Joined on May 2007
|
#3
|
The Following User Says Thank You to fnordianslip For This Useful Post: | ||
![]() |
2009-12-22
, 22:04
|
Posts: 355 |
Thanked: 566 times |
Joined on Nov 2009
@ Redstone Canyon, Colorado
|
#4
|
/etc/opt : Configuration files for /opt Purpose Host-specific configuration files for add-on application software packages must be installed within the directory /etc/opt/<subdir>, where <subdir> is the name of the subtree in /opt where the static data from that package is stored.
ln -s /opt/etc /etc/opt
![]() |
2009-12-22
, 22:40
|
Posts: 1,208 |
Thanked: 1,028 times |
Joined on Oct 2007
|
#5
|
maemo-optify will only do files greater than 2k, but this isn't so great in all cases. Asterisk, for example, has a jillion little sound files, so if it used maemo-optify, it would still write like 1M to /.
![]() |
2010-02-05
, 17:23
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#6
|
![]() |
2010-02-05
, 17:27
|
|
Posts: 1,559 |
Thanked: 1,786 times |
Joined on Oct 2009
@ Boston
|
#7
|
The Following User Says Thank You to Flandry For This Useful Post: | ||
![]() |
2010-02-05
, 17:31
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#8
|
You should keep the settings in the user's config directory, so /home/user/.appname/. If the app needs to download large amounts of data, you should probably store it in opt or ~/MyDocs, depending on the nature of the data.
For PrBoom i tell users they can put their own wads in /opt/doom/wads, and to make that easier, chown it to user in the postinst script.
![]() |
2010-02-05
, 18:13
|
|
Posts: 1,559 |
Thanked: 1,786 times |
Joined on Oct 2009
@ Boston
|
#9
|
![]() |
2010-02-05
, 20:55
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#10
|
Yeah that's right. It's a script in ./debian called postinst or <packagename>.postinst that runs after the installation. .......
#!/bin/sh gtk-update-icon-cache -f /usr/share/icons/hicolor chown -R user /opt/myapp/ set -e case "$1" in configure) ;; abort-upgrade|abort-remove|abort-deconfigure) ;; *) echo "postinst called with unknown argument \`$1'" >&2 exit 1 ;; esac exit 0
I look into /opt and see:
/opt/maemo
/opt/openvpn
/opt/fmradio
etc... etc... etc...
Also what needs to be optified? libs? or only large media files, executables etc...?
Reading:
http://wiki.maemo.org/Documentation/...opt_and_MyDocs
Doesn't reveal much, the same for it's root:
http://wiki.maemo.org/Documentation/...d_Distributing
The way I would see it is just have a secondary /usr like tree under /opt/maemo and use that only. Anything outside of that should be a valid bug... no need to put more of a mess than necessary.