Wayne Blaszczyk wrote:
> On 20/11/11 04:16, Ken Moffat wrote:
>> On Sat, Nov 19, 2011 at 07:46:20PM +1100, Wayne Blaszczyk wrote:
>>> Based on the current build instructions, Cups creates files under
>>> /usr/etc and /usr/var.
>>> Glib2 creates bash completion scripts under /usr/etc.
>>> Not directly related to BLFS, but it also looks like Coreutils has
>>> installed a library (libstdbuf.so) under /usr/libexec, unless I did
>>> something wrong there?
>>> Regards,
>>> Wayne.
>> In my own most recent cups-1.5.0 build (./configure *without*
>> --prefix) there is nothing in /usr/etc.
>>
>> Thanks for the heads-up about glib2, I'd not spotted that. I also
>> hadn't spotted that my own ImageMagick build has installed a vast
>> amount of xml delegates into /usr/etc.
>>
>> For /usr/var I hadn't actually looked before. I can see fcron
>> run and spool files, plus /usr/var/lib/rarian/ (which is empty) -
>> again, nothing from cups.
>>
>> ĸen
>
> It might be that certain combination of dependencies created the etc and
> var directories? I had dbus, libusb, acl, PAM, gnutls, openssl, and
> Python installed at the time of building CUPS.
>
> Under /usr/etc/cups
>
> ./cupsd.conf.default
> ./cupsd.conf
> ./snmp.conf
> ./cupsd.conf.N
> ./subscriptions.conf
> ./snmp.conf.N
> ./ppd
> ./ssl
> ./interfaces
>
> Under /usr/var
>
> ./cache
> ./cache/cups
> ./cache/cups/job.cache.O
> ./cache/cups/rss
> ./cache/cups/job.cache
> ./spool
> ./spool/cups
> ./spool/cups/tmp
> ./log
> ./log/cups
> ./log/cups/page_log
> ./log/cups/error_log
> ./log/cups/access_log
> ./run
> ./run/cups
> ./run/cups/certs
This is what I used to build cups. The --docdir is not being honored.
There are some other install issues that need to be worked out too. The
files are all placed in /tmp/cups. Just comment out the two stats lines.
-- Bruce
#!/bin/bash
source /usr/src/stats
#######################
DIR=`pwd`
PROGRAM=cups-1.5.0
FILE=$PROGRAM-source
LOG=$DIR/$PROGRAM.log
TITLE=$PROGRAM
TIMEFORMAT="$TIMEFMT $TITLE"
BUILDDIR=/tmp/cups
DEST=$BUILDDIR/install
rm -rf $BUILDDIR
mkdir $BUILDDIR
cd $BUILDDIR
before=`df -k / | grep / | sed -e "s/ \{2,\}/ /g" | cut -d' ' -f3`
DEST=$BUILDDIR/install
tar -xf $DIR/$FILE.tar.?z* || exit 1
cd $PROGRAM
{ time \
{
echo Making $TITLE
date
#useradd -c "Print Service User" -d /dev/null -g lp -s /bin/false
-u 9 lp
./configure --prefix=/usr --docdir=/usr/share/doc/$PROGRAM &&
make &&
echo "BLFS Start CHECK" &&
make check
echo "BLFS Start INSTALL" &&
make BUILDROOT=$DEST install &&
pushd $DEST/usr/share/man &&
find -name cups\*gz -type l -print -delete &&
find -name \*gz -exec gunzip -v {} \; &&
popd &&
ln -v -s cupsaccept.8 $DEST/usr/share/man/man8/reject.8 &&
ln -v -s cupsaccept.8 $DEST/usr/share/man/man8/cupsreject.8 &&
ln -v -s cupsaccept.8 $DEST/usr/share/man/man8/accept.8 &&
ln -v -s cupsenable.8 $DEST/usr/share/man/man8/cupsdisable.8
}
} 2>&1 | tee -a $LOG
if [ $PIPESTATUS -ne 0 ]; then exit 1; fi;
stats $LOG $DIR/$FILE.tar.?z* $before
exit 0
--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page