Buildsystem C5/32 and a question

14 views
Skip to first unread message

Danny Terweij | LxCenter

unread,
Sep 22, 2013, 12:40:35 PM9/22/13
to lxd...@googlegroups.com
Hi,

As it is not good to build packages from root, i do change the build
systems to use builduser lxcenter.

Also started with pgp signing for the packages.
Added some macros to the rpmmacros
And changed the way the SOURCES is used. At the moment everything is
inside SOURCES. A big messy directory.
So it will be SOURCES/PACKAGENAME-VERSION/ (tho not tested yet if it
works, but start a test in some mins hehe)

I placed the key here:
rpm --import http://download.lxcenter.org/RPM-GPG-KEY-LXCENTER


If this is working well, then the other 3 BuildSystems will be the same.


Does anyone know how i can do semi automatic upload by FTP ?

I want this:
# release [path/to/]myrpm-1.0-1.i386.rpm --OS=C5 --M=32 --REPO=test
or
# release [path/to/]myrpm-1.0-1.src.rpm --OS=C6 --M=64 --REPO=update --SRPM


It needs to FTP it to the download server.
/download.lxcenter.org/download/[test/update]/[centos-5/centos-6]/[i386/x86_64/SRPM/noarch]/

At the moment i use mc (midnight commander) and select FTP link to do it
by hand. I want to get rid of that :)

Regards,
Danny.

Otártics András

unread,
Sep 22, 2013, 1:09:26 PM9/22/13
to lxd...@googlegroups.com
Hi Danny,

   you can use lftp.  here is a quick cheat sheet for it: http://russbrooks.com/2010/11/19/lftp-cheetsheet
 

Danny Terweij | LxCenter

unread,
Sep 22, 2013, 3:25:29 PM9/22/13
to lxd...@googlegroups.com
Op 22-9-2013 19:09, Ot�rtics Andr�s schreef:
> # release [path/to/]myrpm-1.0-1.i386.rpm --OS=C5 --M=32 --REPO=test
>
> Hi Danny,
>
> you can use lftp. here is a quick cheat sheet for it:
> http://russbrooks.com/2010/11/19/lftp-cheetsheet
>

Okay i shall take a look into that.


The new way of building is working well. Now i do see bad written
specfiles too because they complains :)
signing seems to work. Tho i do not like the passphrase that is asked at
every build. I dont like user inputs :)
So i might go without the pgp signing for a while until i find a way
without a password.

Danny.

András Otártics

unread,
Sep 22, 2013, 4:38:02 PM9/22/13
to lxd...@googlegroups.com
2013/9/22 Danny Terweij | LxCenter <d.te...@lxcenter.org>
Op 22-9-2013 19:09, Otártics András schreef:

# release [path/to/]myrpm-1.0-1.i386.rpm --OS=C5 --M=32 --REPO=test

Hi Danny,

   you can use lftp.  here is a quick cheat sheet for it: http://russbrooks.com/2010/11/19/lftp-cheetsheet


Okay i shall take a look into that.


The new way of building is working well. Now i do see bad written specfiles too because they complains :)
signing seems to work. Tho i do not like the passphrase that is asked at every build. I dont like user inputs :)ó



 
So i might go without the pgp signing for a while until i find a way without a password.

Danny.


--
You received this message because you are subscribed to the Google Groups "LxCenter Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lxdevel+unsubscribe@googlegroups.com.
To post to this group, send email to lxd...@googlegroups.com.
Visit this group at http://groups.google.com/group/lxdevel.
To view this discussion on the web visit https://groups.google.com/d/msgid/lxdevel/523F4429.7040301%40lxcenter.org.

For more options, visit https://groups.google.com/groups/opt_out.



--
Otártics András
Villamosmérnök
Telefon: +3620-503-96-11
E-mail: otart...@gmail.com

Danny Terweij | LxCenter

unread,
Sep 22, 2013, 5:49:59 PM9/22/13
to lxd...@googlegroups.com
Op 22-9-2013 22:38, András Otártics schreef:
2013/9/22 Danny Terweij | LxCenter <d.te...@lxcenter.org>
signing seems to work. Tho i do not like the passphrase that is asked at every build. I dont like user inputs :)ó


That wont work as the passphrase is asked from RPM (the tool). The only sollution is to make a own rpm.x.x.x.rpm  with disabled passphrase code.

rpmqv.c:
                  case RPMSIGTAG_GPG:
                    passPhrase = rpmGetPassPhrase(_("Enter pass phrase: "), sigTag);

So in my eyes, signing is good, but has some negative effects.

We will see.. tho i can not put signed packages online now. Key has to be imported first :)

Regards,
Danny

Danny Terweij | LxCenter

unread,
Sep 24, 2013, 4:22:42 PM9/24/13
to lxd...@googlegroups.com
Op 22-9-2013 19:09, Otártics András schreef:


On Sunday, September 22, 2013 6:40:35 PM UTC+2, Danny Terweij wrote:
Does anyone know how i can do semi automatic upload by FTP ?

I want this:
# release [path/to/]myrpm-1.0-1.i386.rpm --OS=C5 --M=32 --REPO=test
or
# release [path/to/]myrpm-1.0-1.src.rpm --OS=C6 --M=64 --REPO=update --SRPM

   you can use lftp.  here is a quick cheat sheet for it: http://russbrooks.com/2010/11/19/lftp-cheetsheet
 


Such a great tool is that. I have created a base shellscript with static values.
Always a shame that "man"  is not showing examples etc. So i had to use google to find out my questions.

Now time to add the commandline options and the script is ready to rock. It will save a lot of time for me!

Here the script i have at the moment and maybe some reader is intrested in it.


#!/bin/sh

#Turn on debug mode with "debug"
#Turn off debug mode with ""
DEBUG=""

#Siteinfo is read from file ~/.netrc
SITE="srvc.lxcenter.org"

TOOL="/usr/bin/lftp -c"
UPLOAD="put -a"

#user switches
OS="centos-5"
ARCH="i386"
REPO="test"
PACKAGE="xx.rpm"

#build the line
DEST="cd /public_html/download/$REPO/$OS/$ARCH/;$UPLOAD $PACKAGE;ls *.rpm"

#action
$TOOL "$DEBUG;open $SITE;$DEST;quit;"


Regards,
Danny.

Reply all
Reply to author
Forward
0 new messages