forked from Normation/rudder-techniques
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Normation#326 from Kegeruneku/ust_4798/int/4799_up…
…grade_to_cfengine_3_6 Fixes #4798: Switch to CFEngine 3.6.0rc1 for Rudder
- Loading branch information
Showing
18 changed files
with
122 additions
and
771 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 41 additions & 39 deletions
80
...patch-DEBIAN_5-compile-tokyocabinet.patch → ...EBIAN_8/0001-use-lmdb-from-packages.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,73 +1,75 @@ | ||
diff -Naurw debian/control debian-new/control | ||
--- debian/control 2014-05-02 17:06:59.654516718 +0200 | ||
+++ debian/control 2014-05-02 17:06:59.654516718 +0200 | ||
@@ -2,7 +2,7 @@ Source: rudder-agent | ||
--- debian/control 2014-05-13 12:20:49.811777659 +0200 | ||
+++ debian/control 2014-05-13 12:19:51.151566236 +0200 | ||
@@ -2,7 +2,7 @@ | ||
Section: admin | ||
Priority: extra | ||
Maintainer: Rudder packaging team <rudder-packaging@rudder-project.org> | ||
-Build-Depends: debhelper (>= 7), libssl-dev, bison, gcc, flex, libpcre3-dev, libtokyocabinet-dev | ||
+Build-Depends: debhelper (>= 7), libssl-dev, bison, gcc, flex, libpcre3-dev, zlib1g-dev, libbz2-dev | ||
-Build-Depends: debhelper (>= 7), libssl-dev, bison, gcc, flex, libpcre3-dev, libpam0g-dev | ||
+Build-Depends: debhelper (>= 7), libssl-dev, bison, gcc, flex, libpcre3-dev, libpam0g-dev, liblmdb-dev | ||
Standards-Version: 3.8.0 | ||
Homepage: http://www.rudder-project.org | ||
|
||
diff -Naurw debian/postinst debian-new/postinst | ||
--- debian/postinst 2014-05-02 17:06:59.654516718 +0200 | ||
+++ debian/postinst 2014-05-02 17:06:59.654516718 +0200 | ||
@@ -33,6 +33,9 @@ case "$1" in | ||
fi | ||
fi | ||
|
||
+ # Reload library of ldd | ||
+ if [ -e /etc/ld.so.conf.d/rudder.conf ]; then ldconfig; fi | ||
+ | ||
# Copy new binaries to workdir, make sure daemons are stopped first | ||
|
||
# Set a "lock" to avoid CFEngine being restarted during the upgrade process | ||
diff -Naurw debian/rules debian-new/rules | ||
--- debian/rules 2014-05-02 17:06:59.654516718 +0200 | ||
+++ debian/rules 2014-05-02 17:06:59.654516718 +0200 | ||
@@ -14,9 +14,16 @@ | ||
--- debian/rules 2014-05-13 14:00:36.748017941 +0200 | ||
+++ debian/rules 2014-05-13 12:19:51.151566236 +0200 | ||
@@ -14,17 +14,9 @@ | ||
configure: configure-stamp | ||
configure-stamp: | ||
dh_testdir | ||
+ # dh_prep has been moved from 'install' target since we need to build tokyocabinet first | ||
+ dh_prep | ||
- # dh_prep has been moved from 'install' target since we need to build LMDB first | ||
- dh_prep | ||
# Add here commands to configure the package. | ||
cd SOURCES && ./perl-prepare.sh | ||
- cd SOURCES/cfengine-source && ./configure --prefix=/opt/rudder --with-workdir=/var/rudder/cfengine-community --enable-static=yes --enable-shared=no | ||
+ # Compile Tokyocabinet library and install it in /opt/rudder/lib | ||
+ cd SOURCES/tokyocabinet-source && ./configure --prefix=/opt/rudder | ||
+ cd SOURCES/tokyocabinet-source && make | ||
+ cd SOURCES/tokyocabinet-source && make install DESTDIR=$(CURDIR)/debian/tmp | ||
+ # Prepare CFEngine 3.4.x build with defined path of tokyocabinet library | ||
+ cd SOURCES/cfengine-source && ./configure --prefix=/opt/rudder --with-workdir=/var/rudder/cfengine-community --enable-static=yes --enable-shared=no --with-tokyocabinet=$(CURDIR)/debian/tmp/opt/rudder | ||
- # Compile the LMDB library and install it in /opt/rudder | ||
- # LMDB source code does not know how to create destination folders, do it ourselves | ||
- for i in bin lib include man/man1; do mkdir -p $(CURDIR)/debian/tmp/opt/rudder/$$i; done | ||
- cd SOURCES/lmdb-source/libraries/liblmdb && make | ||
- cd SOURCES/lmdb-source/libraries/liblmdb && make install prefix=/opt/rudder DESTDIR=$(CURDIR)/debian/tmp | ||
- # Prepare CFEngine 3.6.x build with defined path of LMDB | ||
- cd SOURCES/cfengine-source && ./configure --prefix=/opt/rudder --with-workdir=/var/rudder/cfengine-community --enable-static=yes --enable-shared=no --with-lmdb=$(CURDIR)/debian/tmp/opt/rudder | ||
+ cd SOURCES/cfengine-source && ./configure --prefix=/opt/rudder --with-workdir=/var/rudder/cfengine-community --enable-static=yes --enable-shared=no | ||
|
||
touch configure-stamp | ||
|
||
@@ -47,7 +54,6 @@ clean: | ||
@@ -55,6 +47,7 @@ | ||
install: build | ||
dh_testdir | ||
dh_testroot | ||
- dh_prep | ||
+ dh_prep | ||
dh_installdirs | ||
|
||
# Add here commands to install the package into debian/tmp | ||
@@ -79,6 +85,9 @@ binary-arch: install | ||
@@ -86,9 +79,6 @@ | ||
dh_install --SOURCEDIR=$(CURDIR)/SOURCES initial-promises /opt/rudder/share | ||
# Install an empty uuid.hive file before generating an uuid | ||
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/ uuid.hive /opt/rudder/etc/ | ||
+ # Install /etc/ld.so.conf.d/rudder.conf in order to use libraries contain | ||
+ # in /opt/rudder/lib like tokyocabinet | ||
+ dh_install --SOURCEDIR=$(CURDIR)/SOURCES/ rudder.conf /etc/ld.so.conf.d | ||
- # Install /etc/ld.so.conf.d/rudder.conf in order to use libraries contain | ||
- # in /opt/rudder/lib like LMDB | ||
- dh_install --SOURCEDIR=$(CURDIR)/SOURCES/ rudder.conf /etc/ld.so.conf.d | ||
# Install a verification script for cron | ||
dh_install --SOURCEDIR=$(CURDIR)/SOURCES/ check-rudder-agent /opt/rudder/bin/ | ||
# Install script to get local processes on VZ systems | ||
@@ -91,7 +100,7 @@ binary-arch: install | ||
@@ -101,7 +91,7 @@ | ||
dh_compress | ||
dh_fixperms | ||
# dh_perl | ||
-# dh_makeshlibs | ||
+ dh_makeshlibs | ||
- dh_makeshlibs | ||
+# dh_makeshlibs | ||
dh_installdeb | ||
dh_shlibdeps | ||
dh_gencontrol | ||
|
||
diff -Naurw debian/control debian-new/control | ||
--- debian/postinst 2014-05-13 14:12:43.838564255 +0200 | ||
+++ debian/postinst 2014-05-13 12:19:51.151566236 +0200 | ||
@@ -33,9 +33,6 @@ | ||
fi | ||
fi | ||
|
||
- # Reload the linker cache (to acknowledge LMDB's presence if needed) | ||
- if [ -e /etc/ld.so.conf.d/rudder.conf ]; then ldconfig; fi | ||
- | ||
# Copy new binaries to workdir, make sure daemons are stopped first | ||
|
||
# Set a "lock" to avoid CFEngine being restarted during the upgrade process |
Oops, something went wrong.