Project

General

Profile

Actions

Architecture #8028

closed

Slackware support : rudder-agent.SlackBuild and method to build slackware package

Added by Jérémy HOCDÉ over 8 years ago. Updated over 5 years ago.

Status:
Rejected
Priority:
N/A
Assignee:
-
Category:
Packaging
Effort required:
Name check:
Fix check:
Regression:

Description

It's PoC - gruik - but functionnal

Adaptation de la documentation https://www.rudder-project.org/foswiki/Development/AgentBuild pour rudder-agent 3.2 sur slackware64 14.1

What you'll need

on SBo : lmdb perl-Module-Install rubygem-asciidoctor
asciidoctor : j'ai buildé un paquet (slackbuild en piece jointe)

wget http://www.rudder-project.org/archives/rudder-sources-3.2.0.tar.bz2
wget https://s3.amazonaws.com/cfengine-package-repos/tarballs/cfengine-3.7.1.tar.gz
wget https://github.com/fusioninventory/fusioninventory-agent/archive/2.3.6.tar.gz
mv 2.3.6.tar.gz fusioninventory-agent-2.3.6.tar.gz

mkdir files && cd files
wget http://www.normation.com/tarball/App-cpanminus-1.0004.tar.gz
wget http://www.normation.com/tarball/Archive-Extract-0.42.tar.gz
wget http://www.normation.com/tarball/Compress-Raw-Bzip2-2.027.tar.gz
wget http://www.normation.com/tarball/Compress-Raw-Zlib-2.027.tar.gz
wget http://www.normation.com/tarball/Digest-MD5-2.39.tar.gz
wget http://www.normation.com/tarball/File-Which-1.09.tar.gz
wget http://www.normation.com/tarball/HTML-Parser-3.65.tar.gz
wget http://www.normation.com/tarball/HTML-Tagset-3.20.tar.gz
wget http://www.normation.com/tarball/IO-Compress-2.027.tar.gz
wget http://www.normation.com/tarball/IPC-Run3-0.048.tar.gz
wget http://www.normation.com/tarball/Net-IP-1.25.tar.gz
wget http://www.normation.com/tarball/Probe-Perl-0.03.tar.gz
wget http://www.normation.com/tarball/Test-Script-1.07.tar.gz
wget http://www.normation.com/tarball/UNIVERSAL-require-0.13.tar.gz
wget http://www.normation.com/tarball/URI-1.56.tar.gz
wget http://www.normation.com/tarball/XML-NamespaceSupport-1.11.tar.gz
wget http://www.normation.com/tarball/XML-SAX-0.96.tar.gz
wget http://www.normation.com/tarball/XML-Simple-2.18.tar.gz
wget http://www.normation.com/tarball/XML-TreePP-0.41.tar.gz
wget http://www.normation.com/tarball/libwww-perl-5.836.tar.gz

patch detect_os.sh and perl-prepare.sh

Need to patch detect_os.sh for slackware support :
elif [ -f /etc/slackware-version ]; then
export OS="slackware"
+ export OSVERSION=$(cat /etc/slackware-version | awk '{ print $2 }')

perl-prepare.sh need to be patched to find perl module install on building host
-PERL_MM_USE_DEFAULT=1 $TMP/perl$PERL_PREFIX/bin/perl Makefile.PL --default PREFIX=$PERL_PREFIX
+PERL_MM_USE_DEFAULT=1 $TMP/perl$PERL_PREFIX/bin/perl -I /usr/share/perl5/vendor_perl Makefile.PL --default PREFIX=$PERL_PREFIX

Build package :

sh rudder-agent.SlackBuild

Slackware package /tmp/rudder-agent-3.2.0-x86_64-1_m0g.tgz created.

rudder-agent slackbuild files :
rudder-agent/0010-configure-without-pam.patch
rudder-agent/0014-fix-slack-inventory.patch
rudder-agent/README
rudder-agent/detect_os.sh
rudder-agent/doinst.sh
rudder-agent/perl-prepare.sh
rudder-agent/rudder-agent.SlackBuild
rudder-agent/rudder-agent.info
rudder-agent/slack-desc

all in rudder-agent.tgz


Files

rubygem-asciidoctor.tgz (349 KB) rubygem-asciidoctor.tgz Jérémy HOCDÉ, 2016-03-03 13:33
detect_os-slackware.patch (344 Bytes) detect_os-slackware.patch Jérémy HOCDÉ, 2016-03-03 13:40
perl-prepare-slackware.patch (568 Bytes) perl-prepare-slackware.patch Jérémy HOCDÉ, 2016-03-03 13:40
rudder-agent.tgz (9.57 KB) rudder-agent.tgz Jérémy HOCDÉ, 2016-03-03 13:46
rudder-agent_4.1.5_Slackware64-14.2.tar.gz (139 KB) rudder-agent_4.1.5_Slackware64-14.2.tar.gz Jérémy HOCDÉ, 2017-07-28 17:28
Actions

Also available in: Atom PDF