#---------------------------------------------------------------------------- # build_sdparm.txt - how to build the cpio binaries and create folder and packages # # Creation : 2010-08-21 holbru # Last update: $Id$ # # !!! this is not a script but an step-by-step howto !!! #------------------------------------------------------------------------------ exit 1 ### download the source code from the internet, e.g. # http://sg.danny.cz/sg/sdparm.html # sdparm-1.05.tgz ### extract file in a temporary location tar -xzvf sdparm-1.05.tgz # 2010-08-21 sdparm-1.05 # 2012-05-27 sdparm 1.07 # 2013-01-05 sdparm-1.07 LibC-2.8 # 2013-07-21 -> sdparm-1.08 LibC-2.11.3 # 2013-07-29 -> sdparm-1.08 rebuild with ld-2.22 # 2015-05-25 -> sdüarm-1.09 # build with rpm Suse # sdparm-1.09-1.2.src.rpm # 2016-03-19 -> sdparm-1.10 # build with rpm # sdparm-1.10-1.1.src.rpm # hbfl # 2018-04-21 - sdparm-1.10 # build with rpm Suse # sdparm-1.10-1.5.src.rpm # hbfl # 2020-06-13 - sdparm-1.10 # rebuild with rpm Suse -> gcc-9 -> glibc-2.31 # sdparm-1.10-1.12.src.rpm # build with sg3_utils now # hbfl # 2021-09-08 - sdparm-1.12 # build with rpm Suse -> gcc-10 -> glibc-2.33 # sdparm-1.12-1.1.src.rpm # build with sg3_utils # hbfl # 2023-05-19 - sdparm-1.12 # rebuild with rpm Suse -> gcc-12 -> glibc-2.37 # sdparm-1.12-2.3.src.rpm cd sdparm-1.05 ### build export CFLAGS='-O2 -march=i486' export CXXFLAGS="${CFLAGS}" ./configure \ --prefix=/usr \ --build=i486-pc-linux-gnu \ --host=i486-pc-linux-gnu make make DESTDIR=/public/utils/sdparm/1.08 install bindir=/usr/sbin # strip files/binarys for filename in `find /public/utils/sdparm/1.08/usr/sbin/* -type f` do echo $filename strip -R .note -R .comment "$filename" done