#------------------------------------------------------------------------------ # Copyright (c) 2015-2024 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2014-05-07 jed # Last Update: $Id$ # # !!! this is not a script but an step-by-step howto !!! #------------------------------------------------------------------------------ exit 1 # - needs the following environment to build: gcc v3.3.4 # - needs the following library packages to be build: # - needs the following packages to be build: + base 2.8.2 + systemd-rpm-macros ### RPM build info ### RPM package source: https://download.opensuse.org/repositories/openSUSE:/Factory/standard/src/redis-4.0.8-1.1.src.rpm http://download.opensuse.org/repositories/openSUSE:/Factory/standard/src/redis-4.0.9-2.1.src.rpm # if the RPM build process is used instead of the manual build process, # the following package can be ignored and aren't required for this # package: # - procps # - pkgconfig(systemd) # # RPM build command: # rpmbuild -ba --rmsource --nocheck ./SPECS/redis.spec ### download wget.sh http://download.redis.io/releases/redis-3.0.7.tar.gz ### extract tar xvzf http://download.redis.io/releases/redis-3.0.7.tar.gz ### build package='redis' version='3.0.7' destpath=/data/public make distclean cd ./${package} export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" make strip -s ./src/redis-* rm -rf ${destpath}/${package}-${version}/ mkdir -p ${destpath}/${package}-${version}/usr/local/bin/doc mkdir -p ${destpath}/${package}-${version}/etc for FNAME in `ls ./src/redis-* | grep -v -E "\.c$|\.o$|\.rb$"` do cp $FNAME ${destpath}/${package}-${version}/usr/local/bin/ done cp ./*.conf ${destpath}/${package}-${version}/etc/ for FNAME in 00-RELEASENOTES BUGS CONTRIBUTING COPYING INSTALL MANIFESTO README do cp ./$FNAME ${destpath}/${package}-${version}/usr/local/bin/doc/ done rm -f ${destpath}/${package}-${version}-e1.tgz tar cvzf ${destpath}/${package}-${version}-e1.tgz ${destpath}/${package}-${version} >>./jed_conf.log 2>>./jed_conf.log