ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Yura Kalinichenko <yuk@iceb.vinnitsa.com>
To: community@altlinux.ru
Subject: Re: [Comm] Собственный репозиторий..
Date: Sat, 26 Feb 2005 15:32:35 +0200
Message-ID: <1109424755.2593.26.camel@yuk.home.int> (raw)
In-Reply-To: <678332641.20050226132613@mail.ru>

On Суб, 2005-02-26 at 13:26 +0300, Anton Gorlov aka Stalker wrote:
> Здравствуйте, community.
> 
> Поскольку  накопилось  довольно  таки  много  пакетов  (часть  из  них
> пересобранные  из  сизифа,часть  самосборные)  для облегчения работы с
> ними  думаю  имеет  смысл  сделать свой мини-репозиторий. Что по этому
> поводу скажет All? Как вообще создаётся репозиторий?
#!/bin/sh
root=`pwd`
subrepositories="yuk sisyphus kernel msm"

#                        subrepositories
#                        --------------- 
# root --- UPDATES ---+-- RPMS.yuk ----- *.i586.rpm
#                     |
#                     +-- SRPMS.yuk ---- *.src.rpm
#                     |
#                   ......
#                     +-- RPMS.msm ----- *.i586.rpm
#                     |
#                     +-- SRPMS.msm ---- *.src.rpm
#                     | 
#                     +-- base
# 

fatal() {
  echo -e "\007FATAL ERROR: $1"
  exit 1
}

if [ \! -d $root/UPDATES/base ]; then
   mkdir $root/UPDATES/base || fatal "Can't create directory $root/UPDATES/base"  
fi  
rpm -q apt-utils || apt-get install apt-utils || fatal "You NEED installed package apt-utils"
genbasedir --topdir=$root UPDATES $subrepositories || fatal "Can't do genbasedir"
if grep -q "UPDATES ${subrepositories}" /etc/apt/sources.list ; then
   echo "sources.list already changed."
else
   echo "rpm file:${root} UPDATES ${subrepositories}" >> /etc/apt/sources.list
fi
apt-get update




  parent reply	other threads:[~2005-02-26 13:32 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-26 10:26 Anton Gorlov aka Stalker
2005-02-26 11:09 ` Ilya V. Pobelov
2005-02-26 13:32 ` Yura Kalinichenko [this message]
2005-02-28 12:13 ` php-coder

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=1109424755.2593.26.camel@yuk.home.int \
    --to=yuk@iceb.vinnitsa.com \
    --cc=community@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 Community general discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/community/0 community/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 community community/ http://lore.altlinux.org/community \
		mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
	public-inbox-index community

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.community


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git