Re: lug-bg: .deb creation questions
- Subject: Re: lug-bg: .deb creation questions
- From: danchev@xxxxxxxxx (George Danchev)
- Date: Wed, 2 Oct 2002 13:38:53 +0300
On 02 10 2002 13:36, Ivan Dimitrov wrote:
> Çäðàâåé ãðóïà
>
> Îò èçâåñòíî âðåìå ñå îïòâàì äà ñúçäàì íÿêîëêî äåáèàíñêè ïàêåòà (çà ôèðìåíà
> óïîòðåáà ñ íàø ñè ñîôòóåð). Èìàì îáà÷å íÿêîëêî âúïðîñà. Äîêîëêîòî ðàçáðàõ,
àç íÿìàì îïèò ïðè ïàêåòèðàíåòî, íî ïúðâî ñå ÷åòå:
apt-get install debian-policy maint-guide
/usr/share/doc/debian-policy/
/usr/share/doc/maint-guide/
> â debian/conffiles òðÿáâà äà îïèøà ôàéëîâåòå êîèòî èñêàì äà ìå ïèòà äàëè
> èñêàì äà ïðîìåíÿ àêî èìà ðàçëèêà ìåæäó äâàòà. Îáà÷å èñêàì äà ïðîìåíÿ
> ôàéëîâå, êîèòî ãè èìà è â äðóãè ïàêåòè êàòî ïðèìåðà êîèòî ñúì äàë â bind9:
> /etc/bind/named.conf.
>
> dpkg: error processing all-bastun-1.0.1_0.0.1-1_all.deb (--install):
> trying to overwrite `/etc/bind/named.conf', which is also in package
> bind9
> dpkg-deb: subprocess paste killed by signal (Broken pipe)
òî÷íî â òîçè ñëó÷àé, ñå ïðåïîðú÷âà äà íå îïèñâàø named.conf â conffiles íà
òâîÿ debian source package (upstream + debian/ dir)
òî÷êà 5.2:
file:///usr/share/doc/maint-guide/maint-guide.en.html/ch-dother.en.html
ãëàâà 6:
file:///usr/share/doc/debian-policy/policy.html/ch-maintainerscripts.html
>
> Îñâåí òîâà èñêàì äà ïèòàì â debian/postinst|rm debian/preinst|rm è â
> debian/rules ôàéëà ìîãà ëè äà ïèøà îáèêíîâåí shell ñêðèïò?
preinst, prerm, postinst, postrm çà øåë ñêðèïòîâå, ïàçè ñå îò bash-èçúì, ùîòî
user-à ìîæå äà èìà çà sh íå bash è zsh äà ðå÷åì (sh->shell). rules å
íàé-îáèêíîâåí Makefile çà GNU make (ùîòî èìà è BSD make), âèæ ïúòÿ äî
interpreter-a â íà÷àëîòî íà rules. Òà îò åäèí source package-a, ìîæå äà ñå
ïîëó÷àò íÿêîëêî binary packages (deb, man deb, see magic number, òîâà å ar
àðõèâ). Ñëåä èíñòàëë àêî èìà ãðèæè ñ áúãàâè post- pre- scripts ìîæåø ãè
ðåäàêòèðàø íàïðàâî â /var/liv/dpkg/info/ per package è dpkg-reconfigure
bad_scripted_package ;-) ; è ò.í.
--
Greets, fr33zb1
[catching up with Sid (the boy next door who destroyed toys :-)]
============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|