Hey TiTo,

Cool. I've got the --target=$ARCH added to my new script. Testing is coming along, but I still have a few dependency issues to resolve. I hope to have it done this week.
Thanks.

--
-Eric 'shubes'
TiTo wrote:
hi eric ^_^,

i use --with $DISTRO --target=$ARCH for every rpmbuild command including zlib ...
i think the rpm files will be more specific for the system ...
actually i'm not using djbdns yet, but i've tested to rebuild using those parameters above ... and so far it works well in my production system (CentOS 4.3) ... rebuild and installing ... :)

this is quote for rpmbuild & rpm command for my upgrade.sh script :

[---cut---]

clear
echo ""
echo "Installing zlib . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $ZLIB
  rpm -Uvh --replacefiles --replacepkgs /usr/src/$BDIR/RPMS/$ARCH/zlib*.rpm
fi

echo ""
echo "Installing daemontools-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $DAEM
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/daemontools-toaster*.rpm
fi

echo ""
echo "Installing ucspi-tcp-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $UCSP
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/ucspi-tcp-toaster*.rpm
fi

echo ""
echo "Installing vpopmail-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $VPOP
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/vpopmail-toaster*.rpm
fi
echo ""
echo "Installing libdomainkeys-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $DKEY
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/libdomainkeys-toaster*.rpm
fi

echo ""
echo "Installing qmail-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $QMLT
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/qmail-toaster*.rpm
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/qmail-pop3d*.rpm
fi

echo ""
echo "Installing courier-authlib-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $AUTH
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/courier-authlib-toaster*.rpm
fi

echo ""
echo "Installing courier-imap-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $IMAP
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/courier-imap-toaster*.rpm
fi

echo ""
echo "Installing autorespond-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $AUTO
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/autorespond-toaster*.rpm
fi

echo ""
echo "Installing control-panel-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $CPNL
  rpm -Uvh /usr/src/$BDIR/RPMS/noarch/control-panel-toaster*.rpm
fi

echo ""
echo "Installing ezmlm-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $EZML
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/ezmlm*.rpm
fi

echo ""
echo "Installing qmailadmin-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $ADMN
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/qmailadmin-toaster*.rpm
fi

echo ""
echo "Installing qmailmrtg-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $MRTG
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/qmailmrtg-toaster*.rpm
fi

echo ""
echo "Installing maildrop-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $MDRP
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/maildrop-toaster*.rpm
fi

echo ""
echo "Installing isoqlog-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $ISOQ
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/isoqlog-toaster*.rpm
fi

echo ""
echo "Installing vqadmin-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $VQAD
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/vqadmin-toaster*.rpm
fi

echo ""
echo "Installing squirrelmail-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $SQML
  rpm -Uvh /usr/src/$BDIR/RPMS/noarch/squirrelmail-toaster*.rpm
fi

echo ""
echo "Installing spamassassin-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $SPAM
  rpm -Uvh --nodeps /usr/src/$BDIR/RPMS/$ARCH/spamassassin-toaster*.rpm
fi

echo ""
echo "Installing clamav-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $CLAM
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/clamav-toaster*.rpm
fi

echo ""
echo "Installing ripmime-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $RIPM
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/ripmime-toaster*.rpm
fi

echo ""
echo "Installing simscan-toaster . . ."
inquire
clear

if [ $PROCEED = "y" ]; then
  rpmbuild --rebuild --with $DISTRO --target=$ARCH $SIMS
  rpm -Uvh /usr/src/$BDIR/RPMS/$ARCH/simscan-toaster*.rpm
fi

[---cut---]


thx ^_^,

 ~tito.web.id~
::Nero!!Rider::


<snip>

---------------------------------------------------------------------
    QmailToaster hosted by: VR Hosted <http://www.vr.org>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to