You are not logged in.

#1 2005-01-16 15:31:36

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

How to make PKGBUILD that downloads CVS?

I have the package version set to the date (+%F) in order to differentiate versions of the package, but I still need to download the cvs sources when the package is built.

I also need to enter a password for the cvs repo. How do I automate this?

Offline

#2 2005-01-16 16:16:16

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: How to make PKGBUILD that downloads CVS?

As I'm in a bit of rush, I can only point you here. You'll find an example of cvs package (kvirccvs) there. I don't think the 'press enter' stuff is evitable, but who knows :-)

Cheers,

lucke

Offline

#3 2005-01-16 16:25:59

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: How to make PKGBUILD that downloads CVS?

Here's another example, from the unstable repo. It doesn't seem to use the "Press enter", but I'm not sure.

http://cvs.archlinux.org/cgi-bin/viewcv … cvs-markup


And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.

Offline

#4 2005-01-16 18:08:21

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: How to make PKGBUILD that downloads CVS?

Is the password empty? You can put ":" after login to automate this.

Offline

#5 2005-01-17 13:48:54

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: How to make PKGBUILD that downloads CVS?

The password is not empty. I'll be looking at those two links above. smile

Offline

#6 2005-01-17 14:22:35

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: How to make PKGBUILD that downloads CVS?

Put ":" after password then...

EDIT: or post the pkgbuild...

Offline

#7 2005-01-17 16:40:11

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: How to make PKGBUILD that downloads CVS?

# MythTV
# Maintained by kleptophobiac <kleptophobiac@gmail.com>

pkgname=mythtv-cvs
pkgver=`date +%Y.%m.%d`
pkgrel=1
pkgdesc="A personal video recorder for Linux"
url="http://www.mythtv.org"
license="GPL"
depends=('lame' 'mysql' 'alsa-lib' 'codecs' 'wget' 'lirc' 'qt' 'xorg' 'freetype2')
makedepends=('sqlite3' 'sed')
conflicts=()
replaces=()
backup=()
install='mythtv.install'
source=()
md5sums=()

build() {
        cvs -d :pserver:mythtv@cvs.mythtv.org:/var/lib/mythcvs login
        cvs -z3 -d :pserver:mythtv@cvs.mythtv.org:/var/lib/mythcvs checkout mythtv

        cd $startdir/src/mythtv
        ./configure
        cp $startdir/settings.pro $startdir/src/mythtv/
        sed -i "s%/usr/local%/usr%g" $startdir/src/mythtv/settings.pro
        qmake mythtv.pro
        make || return 1
        sed -i "s%/usr%$startdir/pkg/usr%g" $startdir/src/mythtv/settings.pro
        qmake mythtv.pro
        make install
        install -m 0755 setup/setup $startdir/pkg/usr/bin/mythsetup
        install -m 0644 database/mc.sql $startdir/pkg/usr/share/mythtv/mc.sql
        chmod a+s $startdir/pkg/usr/bin/mythfrontend
        install -D -m 0755 $startdir/mythbackend $startdir/pkg/etc/rc.d/mythbackend

With this one, you have to type the pw, "mythtv" and press enter to continue the pkgbuild.

Offline

#8 2005-01-17 18:50:00

sarah31
Member
From: Middle of Canada
Registered: 2002-08-20
Posts: 2,975
Website

Re: How to make PKGBUILD that downloads CVS?

you have to add cvs to the makedepends and as far as I know once you log to a cvs tree you should not continually have to log the passwd (at least in most cases because it is an anonymous login).

This is one of the reasons I hate using many binary sources and CVS for packages. builds should be non-interactive.


AKA uknowme

I am not your friend

Offline

#9 2005-01-17 20:28:06

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: How to make PKGBUILD that downloads CVS?

Ok. Now I understand. Login and password are both mythtv.

This should work:

        cvs -d :pserver:mythtv:mythtv@cvs.mythtv.org:/var/lib/mythcvs login
        cvs -z3 -d :pserver:mythtv:mythtv@cvs.mythtv.org:/var/lib/mythcvs checkout mythtv

And don't forget to add cvs to makedepends.

Offline

#10 2005-01-17 21:02:18

cactus
Taco Eater
From: t͈̫̹ͨa͖͕͎̱͈ͨ͆ć̥̖̝o̫̫̼s͈̭̱̞͍̃!̰
Registered: 2004-05-25
Posts: 4,622
Website

Re: How to make PKGBUILD that downloads CVS?

lanrat wrote:

And don't forget to add cvs to makedepends.

make adult-diapers
lol


"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍

Offline

#11 2005-01-17 22:36:39

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: How to make PKGBUILD that downloads CVS?

This is actually an older version of my pkgbuild that was on my laptop (where I post from) at the time. The "new" one (which I will modify soon) already had cvs in makedepends, but also had an echo as per the other pkgbuild to notify the user to press a button. smile

Thanks for the info. smile

Offline

#12 2005-01-18 22:22:16

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: How to make PKGBUILD that downloads CVS?

lanrat wrote:
        cvs -d :pserver:mythtv:mythtv@cvs.mythtv.org:/var/lib/mythcvs login
        cvs -z3 -d :pserver:mythtv:mythtv@cvs.mythtv.org:/var/lib/mythcvs checkout mythtv

Most excellent, worked great!

Offline

#13 2005-01-19 22:26:29

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 488

Re: How to make PKGBUILD that downloads CVS?

lanrat wrote:

Is the password empty? You can put ":" after login to automate this.

Now I'm doing madwifi, which requires no password. That didn't work for me, could you post an example?

Offline

#14 2005-01-20 00:44:21

lanrat
Member
From: Poland
Registered: 2003-10-28
Posts: 1,274

Re: How to make PKGBUILD that downloads CVS?

Ok. I don't know much about madwifi compiling but this should work:

cvs -d:pserver:anonymous:@cvs.sourceforge.net:/cvsroot/madwifi login
cvs -z3 -d:pserver:anonymous:@cvs.sourceforge.net:/cvsroot/madwifi co -P madwifi

I only added ":" (between "anonymous" and "@") to the original commands from the sf madwifi cvs site (http://sourceforge.net/cvs/?group_id=82936). I also placed "madwifi" as module name (at the end of the second command). I'm not sure if this is exactly what you want but it works :-)

BTW If you still have problems with it you can download alternative cvs snapshot from http://madwifi.otaku42.de/

Offline

Board footer

Powered by FluxBB