Diff for /freem/scripts/fmd-pkg-rpm between versions 1.1 and 1.2

version 1.1, 2025/04/07 05:19:36 version 1.2, 2025/04/07 05:39:23
Line 25 Line 25
 #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.  #   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
 #  #
 #   $Log$  #   $Log$
   #   Revision 1.2  2025/04/07 05:39:23  snw
   #   Further work on fmd rpm porting
   #
 #   Revision 1.1  2025/04/07 05:19:36  snw  #   Revision 1.1  2025/04/07 05:19:36  snw
 #   Initial work on moving rpm packaging to fmd  #   Initial work on moving rpm packaging to fmd
 #  #
Line 51  mkdir -p "${TMPDIR}" Line 54  mkdir -p "${TMPDIR}"
 LOGFILE="${TMPDIR}/pkgbuild.log"  LOGFILE="${TMPDIR}/pkgbuild.log"
 echo "${PGM}:  logging to ${LOGFILE}"  echo "${PGM}:  logging to ${LOGFILE}"
   
   RPM_RELEASE=$(echo "${_fmd_freem_version}" | sed "s/-/~/g")
   
 if [[ ! -f Makefile ]]  if [[ ! -f Makefile ]]
 then  then
     echo -n "${PGM}:  running autogen.sh..."      echo -n "${PGM}:  running autogen.sh..."
Line 85  else Line 90  else
     echo "[OK]"      echo "[OK]"
 fi  fi
   
   ORIG_TARBALL="freem-${_fmd_freem_version.tar.gz}"
   
   echo -n "${PGM}:  decompressing source tarball..."
   tar xzf "${TARBALL}"
   if [[ $? != 0 ]]
   then
       echo "[FAIL]"
       exit 1
   else
       echo "[OK]"
   fi
   
   
 echo -n "${PGM}:  uploading source tarball..."  echo -n "${PGM}:  uploading source tarball..."
 scp freem*.tar.gz jpw@freem.coherent-logic.com://var/www/freem.coherent-logic.com/downloads/ &>> "${LOGFILE}"  scp freem*.tar.gz jpw@freem.coherent-logic.com://var/www/freem.coherent-logic.com/downloads/ &>> "${LOGFILE}"
 if [[ $? != 0 ]]  if [[ $? != 0 ]]
 then  then
     echo "[FAIL]"      echo "[FAIL]"
       exit 1
   else
       echo "[OK]"
   fi
   
   echo "${PGM}:  performing substitutions on specfile..."
   cat scripts/rpm/freem.spec.in | sed "s/FREEM_VERSION/${RPM_RELEASE}/g" > scripts/rpm/freem.spec
   
   echo -n "${PGM}:  running spectool..."
   spectool -g -R scripts/rpm/freem.spec &>> "${LOGFILE}"
   if [[ $? != 0 ]]
   then
       echo "[FAIL]"
       exit 1
   else
       echo "[OK]"
   fi
   
   echo -n "${PGM}:  building package..."
   rpmbuild -ba scripts/rpm/freem.spec &>> "${LOGFILE}"
   if [[ $? != 0 ]]
   then
       echo "[FAIL]"
     exit 1      exit 1
 else  else
     echo "[OK]"      echo "[OK]"

Removed from v.1.1  
changed lines
  Added in v.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>