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::


Eric "Shubes" wrote:
Thanks, TiTo. I've updated the upgrade.sh script I'm working on, but it's not quite ready for release yet (should be very soon).

I noticed that you have "--with $DISTRO" specified for build of the $ZLIB package. The upgrade.sh script I have doesn't have that parameter for $ZLIB. Should it?

Also, what build/install parameters should be used for djbdns? Same as $ZLIB, or same as all *-toaster* others?


TiTo wrote:
hi nick ^_^,

i've tested your upgrade.sh script, and it works well if the ARCH variable is i386 ...
but when i change it to i686, it will error, because the rpmbuild command is always use the default i386 value ...

example original script :

[...cut...]

DISTRO=cnt40
ARCH=i386
BDIR=redhat

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

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

[...cut...]

when i change ARCH to i686, the rpmbuild command will still build using i386 value ...
and when the rpm command execute, it will error, because the command will become :

rpm -Uvh --replacefiles --replacepkgs /usr/src/redhat/RPMS/i686/zlib*.rpm

the rpm command can't find the zlib*.rpm file, because it was built in /usr/src/redhat/RPMS/i386 ...

so, i've modified every rpmbuild command become like this :

rpmbuild --rebuild --with $DISTRO --target=$ARCH $ZLIB

i've tested, and it works well ...

thx ^_^,

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





------------------------------------------------------------------------

Subject:
upgrade.sh script
From:
"Nick Hemmesch" <[EMAIL PROTECTED]>
Date:
Mon, 12 Jun 2006 08:48:45 -0500 (CDT)
To:
[email protected]

To:
[email protected]


Hi All,

We did have a little glitch with the upgrade script. It has been fixed,
thanks to Devendra.

If you have downloaded the upgrade script, please download the corrected
script.

The error was: $DISTRO variable missing in libdomainkeys-toaster build
statement.

Regards,

Nick

 




Reply via email to