Using rpmbuild to Compile the logcheck Source

bible:/tmp # rpmbuild -bb /tmp/logcheck.spec Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.48125 + umask 022

+ cd /usr/src/packages/BUILD + cd /usr/src/packages/BUILD + rm -rf logcheck-1.1.2

+ /usr/bin/gzip -dc /usr/src/packages/SOURCES/logcheck-1.1.2.tar.gz

+ STATUS=0

Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.48125 + umask 022

+ cd /usr/src/packages/BUILD + /bin/rm -rf /tmp/logcheck-buildroot ++ dirname /tmp/logcheck-buildroot + /bin/mkdir -p /tmp + /bin/mkdir /tmp/logcheck-buildroot + cd logcheck-1.1.2

Making logcheck cc -O -o ,/src/logtail ,/src/logtail.c src/logtail.c: In function 'main':

src/logtail.c:56: warning: return type of 'main' is not 'int' + exit 0

Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.85959 + umask 022

+ cd /usr/src/packages/BUILD + cd logcheck-1.1.2 + rm -rf /tmp/logcheck-buildroot + mkdir -p /tmp/logcheck-buildroot/usr/sbin +mkdir -p /tmp/logcheck-buildroot/etc/logcheck + mkdir -p /tmp/logcheck-buildroot/etc/cron.hourly

+ install ,/systems/linux/logcheck.hacking /tmp/logcheck-buildroot/etc/logcheck + install ,/systems/linux/logcheck.violations /tmp/logcheck-buildroot/etc/logcheck + install ,/systems/linux/logcheck.violations.ignore /tmp/logcheck-buildroot/etc/logcheck + install ,/systems/linux/logcheck.ignore /tmp/logcheck-buildroot/etc/logcheck + install ,/systems/linux/logcheck.sh /tmp/logcheck-buildroot/usr/sbin + install ,/src/logtail /tmp/logcheck-buildroot/usr/sbin + cat

+ RPM_BUILD_ROOT=/tmp/logcheck-buildroot + export RPM_BUILD_ROOT

+ test -x /usr/sbin/Check -a 0 = 0 -o -x /usr/sbin/Check -a '!' -z /tmp/logcheck-buildroot + echo 'I call /usr/sbin/Check ... ' I call /usr/sbin/Check ... + /usr/sbin/Check + /usr/lib/rpm/brp-compress Processing files: logcheck-1.1.2-2 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.11584 + umask 022

+ cd /usr/src/packages/BUILD + cd logcheck-1.1.2

+ DOCDIR=/tmp/logcheck-buildroot/usr/share/doc/packages/logcheck + export DOCDIR

+ rm -rf /tmp/logcheck-buildroot/usr/share/doc/packages/logcheck + /bin/mkdir -p /tmp/logcheck-buildroot/usr/share/doc/packages/logcheck + cp -pr CHANGES CREDITS README README.how.to.interpret README.keywords systems/linux/README.linux systems/linux/README.linux.IMPORTANT /tmp/logcheck-buildroot/usr/share/doc/packages/logcheck + exit 0

Finding Provides: /usr/lib/rpm/find-provides Finding Requires: /usr/lib/rpm/find-requires

Requires(rpmlib): rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(CompressedFileNames) <= 3.0.4-1

Requires: cron /usr/sbin/sendmail /bin/sh libc.so.6 libc.so.6(GLIBC_2.0) libc.so.6(GLIBC_2.1)

Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/logcheck-buildroot

Wrote: /usr/src/packages/RPMS/i586/logcheck-1.1.2-2.i586.rpm Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.14217 + umask 022

+ cd /usr/src/packages/BUILD + cd logcheck-1.1.2 + rm -rf /tmp/logcheck-buildroot + exit 0

The RPM has been successfully created. In the next section, you check the RPM and install it.

Was this article helpful?

0 0

Post a comment