packages:alternatives
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
packages:alternatives [2016-02-01 06:14] – created glen | packages:alternatives [2016-02-01 06:25] (current) – glen | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== alternatives ====== | ====== alternatives ====== | ||
- | [[http:// | + | [[http:// |
+ | |||
+ | Default implementation in PLD Linux is provided by '' | ||
+ | |||
+ | ===== switching alternative ===== | ||
+ | |||
+ | By default '' | ||
+ | |||
+ | //TODO: how to enforce sysadmin preference// | ||
+ | |||
+ | ===== integrating ===== | ||
+ | |||
+ | from [[http:// | ||
+ | |||
+ | <code rpmspec> | ||
+ | Requires: | ||
+ | ... | ||
+ | |||
+ | %install | ||
+ | ... | ||
+ | # touch for ghost | ||
+ | %{__rm} $RPM_BUILD_ROOT%{_bindir}/ | ||
+ | touch $RPM_BUILD_ROOT%{_bindir}/ | ||
+ | |||
+ | %post phar | ||
+ | update-alternatives \ | ||
+ | | ||
+ | | ||
+ | |||
+ | %postun phar | ||
+ | if [ $1 -eq 0 ]; then | ||
+ | | ||
+ | fi | ||
+ | |||
+ | ... | ||
+ | %files | ||
+ | ... | ||
+ | %ghost %{_bindir}/ | ||
+ | %ghost %{_mandir}/ | ||
+ | </ | ||
+ | |||
+ | - add '' | ||
+ | - the path must be ghost and regular file, otherwise rpm will complin about file-conflicts | ||
+ | - use '' | ||
+ | - the '' | ||
+ | - use proper '' | ||
+ | |||
+ | <note warning> | ||
+ | Currently it remains unclear how to handle optional files, as for above example: | ||
+ | - '' | ||
+ | - '' | ||
+ | </ |
packages/alternatives.1454303693.txt.gz · Last modified: 2016-02-01 06:14 by glen