Diff for /freem/scripts/_fmd_common.bash between versions 1.1 and 1.4

version 1.1, 2025/04/06 03:38:05 version 1.4, 2025/04/07 05:19:15
Line 23 Line 23
 #   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.4  2025/04/07 05:19:15  snw
   #   Initial work on moving rpm packaging to fmd
   #
   #   Revision 1.3  2025/04/07 01:23:10  snw
   #   Add OS detection for Raspbian
   #
   #   Revision 1.2  2025/04/07 00:45:52  snw
   #   Enhance fmd-pkg-dpkg to auto-generate the debian/changelog file from the FreeM ChangeLog
   #
 #   Revision 1.1  2025/04/06 03:38:05  snw  #   Revision 1.1  2025/04/06 03:38:05  snw
 #   Prepare for adding packaging functionality to fmd  #   Prepare for adding packaging functionality to fmd
 #  #
Line 177  function _fmd_os_detect() Line 186  function _fmd_os_detect()
                     export _fmd_can_package=1                      export _fmd_can_package=1
                     export _fmd_pkg_mechanism="dpkg"                      export _fmd_pkg_mechanism="dpkg"
                     ;;                      ;;
   
                   raspbian)
                       export _fmd_distribution="raspbian"
                       export _fmd_distfamily="debian"
                       export _fmd_can_package=1
                       export _fmd_pkg_mechanism="dpkg"
                       ;;
                                   
                 ubuntu)                  ubuntu)
                     export _fmd_distribution="ubuntu"                      export _fmd_distribution="ubuntu"
Line 203  function _fmd_os_detect() Line 219  function _fmd_os_detect()
                     export _fmd_distribution="opensuse"                      export _fmd_distribution="opensuse"
                     export _fmd_distfamily="suse"                      export _fmd_distfamily="suse"
                     export _fmd_can_package=0                      export _fmd_can_package=0
                     export _fmd_pkg_mechanism="rpm+zypper"                      export _fmd_pkg_mechanism="rpm"
                     ;;                      ;;
                                   
                 rocky)                  rockylinux)
                     export _fmd_distribution="rocky"                      export _fmd_distribution="rocky"
                     export _fmd_distfamily="redhat"                      export _fmd_distfamily="redhat"
                     export _fmd_can_package=1                      export _fmd_can_package=1
                     export _fmd_pkg_mechanism="rpm+yum"                      export _fmd_pkg_mechanism="rpm"
                     ;;                                      ;;                
                                   
                 fedora)                  fedora)
                     export _fmd_distribution="fedora"                      export _fmd_distribution="fedora"
                     export _fmd_distfamily="redhat"                      export _fmd_distfamily="redhat"
                     export _fmd_can_package=1                      export _fmd_can_package=1
                     export _fmd_pkg_mechanism="rpm+dnf"                      export _fmd_pkg_mechanism="rpm"
                     ;;                      ;;
   
                 unknown)                  unknown)
Line 280  function _fmd_chkconfig() Line 296  function _fmd_chkconfig()
     _fmd_loadconfig      _fmd_loadconfig
 }  }
   
   function _fmd_next_dpkg()
   {
       local URL="https://freem.coherent-logic.com/nextdpkg.cfm?release=${_fmd_freem_version}&arch=${_fmd_arch}"
       local RESULT=$(curl "${URL}" 2>/dev/null)
   
       echo "${RESULT}"
   }
   
 function _fmd_commands()  function _fmd_commands()
 {  {
     ls -1 ${_fmd_script_dir}/fmd-* | cut -d'-' -f2 | grep -v "~"      ls -1 ${_fmd_script_dir}/fmd-* | cut -d'-' -f2 | grep -v "~"

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


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