symlinks for $configdirectory
changed cron permissions to 644
minor documentation fixes
+ improved RPM build process allowing 'make rpm-package' and 'make
+ srpm-package' targets (thanks Robert Napier)
version 0.9.3 -- February 1st, 2006
autotools fixes
backupninja.spec backupninja.spec.in autogen.sh
SUBDIRS = etc examples handlers lib man src
+
+rpm_topdir=`cd $(top_srcdir) && pwd`/rpm
+rpm-package: dist
+ if test x$(HAVE_RPM) = xyes ; then \
+ mkdir -p $(rpm_topdir) ; \
+ cd $(rpm_topdir) ; \
+ mkdir -p BUILD RPMS SOURCES SPECS ; \
+ cd SOURCES ; \
+ ln -sf ../../$(distdir).tar.gz ; \
+ cd .. ; \
+ cd SPECS ; \
+ ln -sf ../../backupninja.spec . ; \
+ cd .. ; \
+ rpmbuild --define "_topdir `cd . && pwd`" -bb SPECS/backupninja.spec && \
+ echo "Package successfully built in `pwd`/RPMS." ; \
+ else \
+ echo "Error: RPM executable and/or source directory not found." ; \
+ fi
+srpm-package: dist
+ if test x$(HAVE_RPM) = xyes ; then \
+ cd $(rpm_topdir) ; \
+ mkdir -p BUILD SRPMS SOURCES SPECS ; \
+ cd SOURCES ; \
+ ln -s ../../$(distdir).tar.gz ; \
+ cd .. ; \
+ cd SPECS ; \
+ ln -sf ../../backupninja.spec .
+ rpmbuild --define "_topdir `cd . && pwd`" -bs SPECS/backupninja.spec && \
+ echo "Package successfully built in `pwd`/SRPMS." ; \
+ else \
+ echo "Error: RPM executable and/or source directory not found." ; \
+ fi
if test x$AWK = "x"; then
AC_MSG_ERROR([awk is required])
fi
+AC_CHECK_PROG(ac_cv_have_rpm, rpm, "yes", "no")
+if test "x$ac_cv_have_rpm" = "xyes"; then
+ rpm --define '_topdir /tmp' > /dev/null 2>&1
+ AC_MSG_CHECKING(to see if we can redefine _topdir)
+ if test $? -eq 0 ; then
+ AC_MSG_RESULT(yes)
+ HAVE_RPM=yes
+ else
+ AC_MSG_RESULT(no. You'll have to build packages manually.)
+ HAVE_RPM=no
+ fi
+fi
+AC_SUBST(HAVE_RPM)
AC_SUBST([CFGDIR], "${sysconfdir}")