From: Stanislav Ievlev <inger@altlinux.org> To: ALT Devel discussion list <devel@altlinux.ru> Subject: Re: [devel] How to use alternatives ? Date: Tue, 28 Dec 2004 11:13:46 +0300 Message-ID: <20041228081346.GA22023@basalt.office.altlinux.org> (raw) In-Reply-To: <20041227083620.GE31552@basalt.office.altlinux.org> On Mon, Dec 27, 2004 at 11:36:20AM +0300, Stanislav Ievlev wrote: > On Mon, Dec 27, 2004 at 11:35:13AM +0300, Stanislav Ievlev wrote: > > On Mon, Dec 27, 2004 at 03:36:06AM +0300, Илья Евсеев wrote: > > > %__cat << __EOF__ > %buildroot%_altdir/%name > > > <group name="candidate"> > > > <option name="link">%_bindir/%name</option> > > > <option name="real">%_bindir/%name-wrapper</option> > > > <option name="weight" type="number">10</option> > > > </group> > > > __EOF__ > > > > > > %post > > > %post_register_alternatives %name -- %name > > > > > > %preun > > > %preun_unregister_alternatives %name > > > ------------------------------------------------------- > > > При его инсталляции правильно создается симлинк > > > /usr/bin/dosbox, указывающий на /usr/bin/dosbox-wrapper. > > > > > > Спек второго пакета (%name = dosbox-russian, %name0 = dosbox): > > > ------------------------------------------------------- > > > %install > > > ... > > > # Alternatives support > > > %__mkdir_p %buildroot%_altdir > > > %__cat << __EOF__ > %buildroot%_altdir/%name > ^^^^^ > И ещё тут ;) Только сейчас понял, что какую-то ерунду сказал - вредно думать о нескольких делах одновременно. Возможно следующее замечание поможет: Альтернативные симлинки не появляются в случае если им не на что указывать. > > _______________________________________________ > Devel mailing list > Devel@altlinux.ru > https://lists.altlinux.ru/mailman/listinfo/devel
prev parent reply other threads:[~2004-12-28 8:13 UTC|newest] Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top 2004-12-27 0:36 Илья Евсеев 2004-12-27 8:35 ` Stanislav Ievlev 2004-12-27 8:36 ` Stanislav Ievlev 2004-12-28 8:13 ` Stanislav Ievlev [this message]
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20041228081346.GA22023@basalt.office.altlinux.org \ --to=inger@altlinux.org \ --cc=devel@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git