You are not logged in.
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
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
Here's another example, from the unstable repo. It doesn't seem to use the "Press enter", but I'm not sure.
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
Is the password empty? You can put ":" after login to automate this.
Offline
The password is not empty. I'll be looking at those two links above.
Offline
Put ":" after password then...
EDIT: or post the pkgbuild...
Offline
# 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
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
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
And don't forget to add cvs to makedepends.
make adult-diapers
"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
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.
Thanks for the info.
Offline
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
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
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