[Samba] rpm build with samba

Anthony J. Breeds-Taurima tony at cantech.net.au
Thu Apr 18 20:26:02 GMT 2002

On Fri, 19 Apr 2002, Sam Khean wrote:

> Hi,
> I'm trying to figure out how to use rpmbuild with samba. I know you need to
> make a spec file, but i was wandering if there's like a file similiar to the
> redhat ks.cfg which tells you what packages you have installed. So you can
> use this file to automate the samba installation.

look in .../samba/packaging/RedHat

It should give you enough info on how to build RPMS of samba.

I this script to build RPMS every night.  As yet I don't install them
automagically BUT there is no technical reason you can't.


SAMBA_RELEASE=`date +%Y%m%d`

set -e

if [ -n "$1" ] ; then
        set -x

if [ -z "$1" ] ; then
        cvs update -d -P
cd ${PREFIX}

[ -d  samba-${SAMBA_VERSION} ] && rm -rf samba-${SAMBA_VERSION}

cp -a samba samba-${SAMBA_VERSION}

cd samba-${SAMBA_VERSION}/packaging
bin/update-pkginfo ${SAMBA_VERSION} ${SAMBA_RELEASE}
cd RedHat/
sh makerpms.sh
> Thanks
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  http://lists.samba.org/mailman/listinfo/samba

Yours Tony.

 * "The significant problems we face cannot be solved at the 
 * same level of thinking we were at when we created them."
 * --Albert Einstein

More information about the samba mailing list