Hi! I need to make some multi-RPM's for monitoring system of our company, but have a problems. First multi-rpm must include nagios-2.0b1, nsca-2.4 server and some .pl-check. My spec: ------------------------ Summary: Nagios monitoring system Name: nagios Version: 2.0b1 Release: 0 Copyright: GPL Group: oilspace Source0: http://mesh.dl.sourceforge.net/sourceforge/nagios/nagios-2.0b1.tar.gz Source1: http://belnet.dl.sourceforge.net/sourceforge/nagios/nsca-2.4.tar.gz #Patch0: nagios-plugins-1.4-beta1.check_ntp.pl.patch Patch0: nsca-2.4.configure.patch URL: http://www.nagios.org Packager: Oilspace sysadmin <sysadmin@xxxxxxxxxxxx> Buildrequires: gd-devel >= 1.6.3 Requires: gd >= 1.6.3 Requires: httpd prefix: /usr/local/nagios %description Nagios is a host and service monitor ... %prep %setup -n nagios -c -b0 -b1 %patch0 %build cd nagios-2.0b1 ./configure --prefix=%{prefix} --with-gd-lib=/usr/lib --with-nagios-user=netsaint --with-nagios-group=netsaint --with-command-user=netsaint --with-command-group=netsaint --enable-event-broker --with-perlcache --enable-embedded-perl make all cd ../nsca-2.4 ./configure --prefix=%{prefix} --with-nsca-user=netsaint --with-nsca-grp=netsaint make all %install cd nagios-2.0b1 make install install-init install-commandmode cd ../nsca-2.4 [ ! -d %{prefix}/bin ] && mkdir -p %{prefix}/bin [ ! -d %{prefix}/etc ] && mkdir -p %{prefix}/etc [ ! -x %{prefix}/bin/send_nsca ] && cp src/send_nsca %{prefix}/bin/ [ ! -f %{prefix}/etc/send_nsca.cfg ] && cp send_nsca.cfg %{prefix}/etc/ [ ! -x %{prefix}/bin/nsca ] && cp src/nsca %{prefix}/bin/ [ ! -f %{prefix}/etc/nsca.cfg ] && cp nsca.cfg %{prefix}/etc/ [ ! -f /etc/xinetd.d/nsca ] && cp nsca.xinetd /etc/xinetd.d/nsca [ ! -x %{prefix}/bin/send_nsca ] && cp src/send_nsca %{prefix}/bin/ [ ! -f %{prefix}/etc/send_nsca.cfg ] && cp send_nsca.cfg %{prefix}/etc/ [ -z "`grep nsca /etc/services`" ] && echo "nsca 5667/tcp # NSCA" >> /etc/services || echo "record in /etc/services is present" %post /etc/init.d/xinetd restart [ -f /etc/httpd/conf/httpd.conf ] && (grep -qsE "[:blank:]*Include conf\.d/\*\.conf" /etc/httpd/conf/httpd.conf && echo "Config including present" || echo "Include conf.d/*.conf" >> /etc/httpd/conf/httpd.conf) || echo "You have not /etc/httpd/conf/httpd.conf. Manualy add to your config \"Include /etc/httpd/conf.d/*.conf\"" /etc/init.d/httpd graceful %files %{prefix}/etc/send_nsca.cfg %{prefix}/bin/send_nsca %{prefix}/etc/nsca.cfg ... ------------------------ It work, but nagios-2.0b1.tar.gz extracted 2 times. Why? And how I can use mixed sourced (.tar.gz and .pm) in this situation? Thnx. WBR -- Dmitriy Kirhlarov OILspace, 4, B. Spasskaya str. room 01, 107978 Moscow, Russia P:+7 095 787 4700 F:+7 095 787 4701 E:DmitriyKirhlarov@xxxxxxxxxxxx OILspace - The resource enriched - www.oilspace.com _______________________________________________ Rpm-list mailing list Rpm-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/rpm-list