#------------------------------------------------------------------------------ # Copyright (c) 2014-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 - user 'nut' with group 'nogroup'. # - needs the following library packages to be build: - libfreetype6 - freetype2-dev - libfontconfig1 - fontconfig-dev - libgd-dev - libssl-dev - libusb-dev - libusb-compat-dev - libwrap-dev - libxml2-dev - libxml2-tools - libxslt-dev - libxslt-tools # - needs the following packages to be build: + base 2.8.2 ### RPM build info ### RPM package source: https://download.opensuse.org/repositories/openSUSE:/Factory/standard/src/nut-2.7.4-9.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: # - apache2-dev # - asciidoc # - avahi-dev # - dblatex # - libcppunit-dev # - libnsl-dev # - net-snmp-dev # - source-highlight # - tcpd-dev # - pkgconfig(dbus-glib-1) # - pkgconfig(libpowerman) # - pkgconfig(libsystemd) # - tex(upquote.sty) # - pkgconfig(bash-completion) # - pkgconfig(libfreeipmi) # # RPM build command: # rpmbuild -ba --rmsource ./SPECS/nut.spec ### manual build info ### ### download wget.sh http://www.networkupstools.org/source/2.7/nut-2.7.2.tar.gz ### extract tar xvzf nut-2.7.2.tar.gz cd ./nut-2.7.1 ### build make distclean package='nut-2.7.1' cd ./${package} export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr --sysconfdir=/etc/ups --with-statepath=/var/lib/nut \ --with-drvpath=/usr/lib/ups/driver --with-pidpath=/var/run \ --with-serial --with-usb --with-openssl --without-wrap --with-cgi \ --with-user=ups --with-group=nogroup --enable-option-checking=fatal make make DESTDIR=/public/${package} install cd /public/${package}/usr/bin strip -s * cd /public/${package}/usr/sbin strip -s * cd /public tar cvzf ${package}-e1.tgz ${package}