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.
------------
#!/bin/sh
SAMBA_VERSION="2.2.4pre"
SAMBA_RELEASE=`date +%Y%m%d`
PREFIX="/usr/local/src/"
SAMBA_SOURCE="${PREFIX}/samba"
set -e
if [ -n "$1" ] ; then
set -x
fi
cd ${SAMBA_SOURCE}
if [ -z "$1" ] ; then
cvs update -d -P
fi
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
*/