I now, all of a sudden :-) I seem to be getting this error message when I build my package.
I don't recall changing my spec file since the last time it worked properly, only adding some files 'inside' my package.
I'm using a simple scenario, probably not the best/correct approach, but it basically is:
a) develop the app in its target (installed) directory, b) when rpm-build'ing, copy the necessary files into the 'build' directory and continue.
So I don't know what I'm doing wrong, the error message isn't helping me to understand what is going wrong, and I don't think I changed anything since the last time it worked. :-) Can someone shed some light please.
TIA Fulko
PS. I'm building on a Fedora 8 box using RPM version 4.4.2.2
%post #chown apache:apache /var/www/html/nia
#chown root:root /var/www/html/nia/scripts/adjust_vsftpd_helper.pl /var/www/html/nia/scripts/create #chmod 04555 /var/www/html/nia/scripts/adjust_vsftpd_helper.pl /var/www/html/nia/scripts/create
cp /var/www/html/nia/support/netwatch /etc/rc.d/init.d/ /sbin/chkconfig --add netwatch; /sbin/chkconfig httpd on /sbin/chkconfig mysqld on /sbin/chkconfig netwatch on
# test to see if we can connect to the default mysql server (with the user's tool and an empty command)...
# if it fails to connect, then its not running and we need to start it (mysqld) # (but we don't want to use the 'restart' because that could incur a glitch to whomever may be using it at the time)
mysql -e '' 2>/dev/null; [ $? -ne 0 ] && service mysqld start
if test -f /etc/httpd/conf/httpd.conf; then if ! grep "^[[:space:]]*Include[[:space:]]*/var/www/html/nia/support/httpd-netwatch.conf" /etc/httpd/conf/httpd.conf > /dev/null; then
echo "Include /var/www/html/nia/support/httpd-netwatch.conf" >> /etc/httpd/conf/httpd.conf /etc/rc.d/init.d/httpd restart fi fi
if test -f /etc/sudoers; then
if ! egrep "^%apache[[:space:]]+ALL=\(ALL\)[[:space:]]+NOPASSWD:[[:space:]]+/var/www/html/nia/scripts/adjust_vsftpd_helper.pl[[:space:]]*,[[:space:]]*/var/www/html/nia/scripts/create[[:space:]]*,[[:space:]]*/etc/init.d/netwatch" /etc/sudoers > /dev/null; then
echo "%apache ALL=(ALL) NOPASSWD: /var/www/html/nia/scripts/adjust_vsftpd_helper.pl, /var/www/html/nia/scripts/create, /etc/init.d/netwatch" >> /etc/sudoers
fi if egrep "^[[:space:]]*#*[[:space:]]*Defaults[[:space:]]+requiretty" /etc/sudoers > /dev/null; then TEMPFILE=`mktemp /etc/sudoers.tmp.XXXXXX` egrep -v "Defaults[[:space:]]+requiretty" /etc/sudoers > $TEMPFILE
echo "#Defaults requiretty" >> $TEMPFILE mv $TEMPFILE /etc/sudoers fi chmod 440 /etc/sudoers fi setsebool -P httpd_can_network_connect=1
if test -f /etc/httpd/conf/httpd.conf; then if egrep "^[[:space:]]*Include[[:space:]]*/var/www/html/nia/support/httpd-netwatch.conf" /etc/httpd/conf/httpd.conf > /dev/null; then
TEMPFILE=`mktemp /etc/httpd/conf/httpd.conf.tmp.XXXXXX` egrep -v "^[[:space:]]*Include[[:space:]]*/var/www/html/nia/support/httpd-netwatch.conf" /etc/httpd/conf/httpd.conf > $TEMPFILE
mv $TEMPFILE /etc/httpd/conf/httpd.conf chmod 664 /etc/httpd/conf/httpd.conf /etc/rc.d/init.d/httpd restart fi fi
if test -f /etc/sudoers; then if egrep "^%apache[[:space:]]+ALL=\(ALL\)[[:space:]]+NOPASSWD:[[:space:]]+/var/www/html/nia/scripts/adjust_vsftpd_helper.pl[[:space:]]*,[[:space:]]*/var/www/html/nia/scripts/create[[:space:]]*,[[:space:]]*/etc/init.d/netwatch" /etc/sudoers > /dev/null; then
TEMPFILE=`mktemp /etc/sudoers.tmp.XXXXXX` egrep -v "^%apache[[:space:]]+ALL=\(ALL\)[[:space:]]+NOPASSWD:[[:space:]]+/var/www/html/nia/scripts/adjust_vsftpd_helper.pl, /var/www/html/nia/scripts/create, /etc/init.d/netwatch" /etc/sudoers > $TEMPFILE
mv $TEMPFILE /etc/sudoers chmod 440 /etc/sudoers fi fi fi