Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
backupninja
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Aurélien
backupninja
Commits
8e154d59
Commit
8e154d59
authored
Aug 6, 2006
by
micah
Browse files
Options
Downloads
Patches
Plain Diff
Added patch to improve RPM building
parent
32e13d4c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
AUTHORS
+1
-0
1 addition, 0 deletions
AUTHORS
ChangeLog
+2
-0
2 additions, 0 deletions
ChangeLog
Makefile.am
+32
-0
32 additions, 0 deletions
Makefile.am
configure.in
+13
-0
13 additions, 0 deletions
configure.in
with
48 additions
and
0 deletions
AUTHORS
+
1
−
0
View file @
8e154d59
...
...
@@ -19,3 +19,4 @@ garcondumonde@riseup.net
Martin Krafft madduck@debian.org -- admingroup patch
Anarcat
rhatto
Robert Napier -- improved RPM build
This diff is collapsed.
Click to expand it.
ChangeLog
+
2
−
0
View file @
8e154d59
...
...
@@ -67,6 +67,8 @@ version 0.9.4 -- unreleased
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
...
...
This diff is collapsed.
Click to expand it.
Makefile.am
+
32
−
0
View file @
8e154d59
...
...
@@ -5,3 +5,35 @@ EXTRA_DIST = README COPYING AUTHORS INSTALL NEWS ChangeLog \
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
This diff is collapsed.
Click to expand it.
configure.in
+
13
−
0
View file @
8e154d59
...
...
@@ -26,6 +26,19 @@ AC_CHECK_PROGS(AWK, awk)
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}")
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment