You are not logged in.

#1 2005-06-21 17:44:14

Pajaro
Member
Registered: 2004-04-21
Posts: 884

make abs compile new packages or p4 mirror?

Is there any script that makes abs compile updated cvs sntries?

What I want is to have a server that keeps running abs every 24 hours and automatically compiling new packages for my arch: pentium3 and pentium4

Or easier: Is there a mirror that holds p3 and p4 packages?

Offline

#2 2005-06-21 17:45:21

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: make abs compile new packages or p4 mirror?

couldn't you run a simple cron job using abs and srcpac?

Dusty

Offline

#3 2005-06-21 22:19:32

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: make abs compile new packages or p4 mirror?

Then I have to have the compilation server with all packages installed... and it is not possible, because some of them conflict with each other

Offline

#4 2005-06-22 01:28:17

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: make abs compile new packages or p4 mirror?

Well it shouldn't be to hard to hack at srcpac and make your own script that runs it.
Basically, you would modify (around line 100):

if [ "$action" = "install" ]; then
   makepkg -icbrfw /var/cache/pacman
else
  makepkg -cbrfw /var/cache/pacman
fi

to something like:

            
[ ! -d /var/cache/P4 ] && mkdir -p /var/cache/P4
[ ! -d /var/cache/P3 ] && mkdir -p /var/cache/P3
if [ "$scriptselect" = "P4" ]; then                                        
     makepkg -cbrfw /var/cache/P4
else
     makepkg -cbrfw /var/cache/P3
fi

Then you could make a script that be something like:

mv /etc/makepkg.conf /etc/makepkg.conf.temp
mv /etc/makepkg.conf.P4 /etc/makepkg.conf
scriptselect="P4"
srcpac -Sbyu --noconfirm #what ever it is
mv /etc/makepkg.conf /etc/makepkg.conf.P4
mv /etc/makepkg.conf.P3 /etc/makepkg.conf
sriptselect="P3"
srcpac -Sbyu --noconfirm
mv /etc/makepkg.conf /etc/makepkg.conf.P3
mv /etc/makepkg.conf.temp /etc/makepkg.conf

...and your makepkg.conf.Px's would be the opt. code for each cpu.
Probably a good idea to copy and rename srcpac to something else too afterwards because it would be pretty much mangled after that.

Offline

#5 2005-06-29 08:42:43

Pajaro
Member
Registered: 2004-04-21
Posts: 884

Re: make abs compile new packages or p4 mirror?

thank you a lot

Is anyone interested in this optimized packages?

Could I upload them somewhere?

Offline

Board footer

Powered by FluxBB