]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
Merge branch 'next' of ssh://git.ipfire.org/pub/git/ipfire-2.x into monit
authorDirk Wagner <dirk.wagner@ipfire.org>
Sat, 14 Jun 2014 07:41:59 +0000 (09:41 +0200)
committerDirk Wagner <dirk.wagner@ipfire.org>
Sat, 14 Jun 2014 07:41:59 +0000 (09:41 +0200)
1  2 
config/rootfiles/common/armv5tel/initscripts
config/rootfiles/common/i586/initscripts
make.sh

index 2fffcf5267600d5d90c99900943bed23d8f02394,5d5c6920490f847f710759131c7dc78d5a91b445..0a1a81109d553a5def8f42f0f4ccc4cb3f32360e
mode 100755,100644..100755
@@@ -34,7 -34,6 +34,6 @@@ etc/rc.d/init.d/function
  #etc/rc.d/init.d/gnump3d
  etc/rc.d/init.d/halt
  #etc/rc.d/init.d/hostapd
- #etc/rc.d/init.d/icecream
  #etc/rc.d/init.d/imspector
  etc/rc.d/init.d/ipsec
  #etc/rc.d/init.d/keepalived
@@@ -53,7 -52,6 +52,7 @@@ etc/rc.d/init.d/mISD
  #etc/rc.d/init.d/mldonkey
  etc/rc.d/init.d/modules
  #etc/rc.d/init.d/motion
 +#etc/rc.d/init.d/monit
  etc/rc.d/init.d/mountfs
  etc/rc.d/init.d/mountkernfs
  #etc/rc.d/init.d/mpd
index a264267f865f258228ca05d9e141c97968989e22,fa3dbcdb8c279fde9251a03f510b031f61a49a7d..d48d6a51be6543cc703c9cccea57e2c38a2e5313
mode 100755,100644..100755
@@@ -36,7 -36,6 +36,6 @@@ etc/rc.d/init.d/function
  #etc/rc.d/init.d/gnump3d
  etc/rc.d/init.d/halt
  #etc/rc.d/init.d/hostapd
- #etc/rc.d/init.d/icecream
  #etc/rc.d/init.d/imspector
  etc/rc.d/init.d/ipsec
  #etc/rc.d/init.d/keepalived
@@@ -54,7 -53,6 +53,7 @@@ etc/rc.d/init.d/mISD
  #etc/rc.d/init.d/miniupnpd
  #etc/rc.d/init.d/mldonkey
  etc/rc.d/init.d/modules
 +#etc/rc.d/init.d/monit
  #etc/rc.d/init.d/motion
  etc/rc.d/init.d/mountfs
  etc/rc.d/init.d/mountkernfs
diff --combined make.sh
index 8ca53165b95ccf8ae3247fec21eca3767b352c3d,c170076532f4c3995f1dd1cd2075779e19f04268..5c32f73b514bf0d07094b0ee5554d35da34872d5
+++ b/make.sh
@@@ -26,7 -26,7 +26,7 @@@ NAME="IPFire"                                                 # Software nam
  SNAME="ipfire"                                                        # Short name
  VERSION="2.15"                                                        # Version number
  CORE="78"                                                     # Core Level (Filename)
- PAKFIRE_CORE="77"                                             # Core Level (PAKFIRE)
+ PAKFIRE_CORE="78"                                             # Core Level (PAKFIRE)
  GIT_BRANCH=`git rev-parse --abbrev-ref HEAD`                  # Git Branch
  SLOGAN="www.ipfire.org"                                               # Software slogan
  CONFIG_ROOT=/var/ipfire                                               # Configuration rootdir
@@@ -34,16 -34,13 +34,13 @@@ NICE=10                                                            # Nice leve
  MAX_RETRIES=1                                                 # prefetch/check loop
  BUILD_IMAGES=1                                                        # Flash and Xen Downloader
  KVER=`grep --max-count=1 VER lfs/linux | awk '{ print $3 }'`
- MACHINE=`uname -m`
  GIT_TAG=$(git tag | tail -1)                                  # Git Tag
  GIT_LASTCOMMIT=$(git log | head -n1 | cut -d" " -f2 |head -c8)        # Last commit
  TOOLCHAINVER=7
  
- BUILDMACHINE=$MACHINE
-     if [ "$MACHINE" = "x86_64" ]; then
-         BUILDMACHINE="i686";
-     fi
+ # New architecture variables
+ BUILD_ARCH="$(uname -m)"
+ BUILDMACHINE="${BUILD_ARCH}"
  
  # Debian specific settings
  if [ ! -e /etc/debian_version ]; then
@@@ -72,6 -69,12 +69,12 @@@ if [ -f .config ]; the
        . .config
  fi
  
+ if [ -n "${TARGET_ARCH}" ]; then
+       configure_target "${TARGET_ARCH}"
+ else
+       configure_target "default"
+ fi
  if [ -z $EDITOR ]; then
        for i in nano emacs vi; do
                EDITOR=$(which $i 2>/dev/null)
@@@ -241,7 -244,7 +244,7 @@@ prepareenv() 
  
  buildtoolchain() {
      local error=false
-     case "${MACHINE}:$(uname -m)" in
+     case "${TARGET_ARCH}:${BUILD_ARCH}" in
          # x86
          i586:i586|i586:i686|i586:x86_64)
              # These are working.
@@@ -352,7 -355,7 +355,7 @@@ buildbase() 
      lfsmake2 groff
      lfsmake2 gperf
      lfsmake2 gzip
-     lfsmake2 inetutils
+     lfsmake2 hostname
      lfsmake2 iproute2
      lfsmake2 jwhois
      lfsmake2 kbd
@@@ -399,61 -402,62 +402,62 @@@ buildipfire() 
    ipfiremake bc
    ipfiremake u-boot
  
-   if [ "${MACHINE_TYPE}" != "arm" ]; then
-     # x86-pae (Native and new XEN) kernel build
-     ipfiremake linux                  KCFG="-pae"
- #    ipfiremake kvm-kmod                      KCFG="-pae"
- #    ipfiremake v4l-dvb                       KCFG="-pae"
- #    ipfiremake mISDN                 KCFG="-pae"
-     ipfiremake cryptodev              KCFG="-pae"
- #    ipfiremake compat-drivers                KCFG="-pae"
- #    ipfiremake r8169                 KCFG="-pae"
- #    ipfiremake r8168                 KCFG="-pae"
- #    ipfiremake r8101                 KCFG="-pae"
-     ipfiremake e1000e                 KCFG="-pae"
-     ipfiremake igb                    KCFG="-pae"
-     # x86 kernel build
-     ipfiremake linux                  KCFG=""
- #    ipfiremake kvm-kmod                      KCFG=""
- #    ipfiremake v4l-dvb                       KCFG=""
- #    ipfiremake mISDN                 KCFG=""
-     ipfiremake cryptodev              KCFG=""
- #    ipfiremake compat-drivers                KCFG=""
- #    ipfiremake r8169                 KCFG=""
- #    ipfiremake r8168                 KCFG=""
- #    ipfiremake r8101                 KCFG=""
-     ipfiremake e1000e                 KCFG=""
-     ipfiremake igb                    KCFG=""
-   else
-     # arm-rpi (Raspberry Pi) kernel build
-     ipfiremake linux                  KCFG="-rpi"
- #    ipfiremake v4l-dvb                       KCFG="-rpi"
- #    ipfiremake mISDN                 KCFG="-rpi" NOPCI=1
-     ipfiremake cryptodev              KCFG="-rpi"
- #    ipfiremake compat-drivers                KCFG="-rpi"
-     # arm multi platform (Panda, Wandboard ...) kernel build
-     ipfiremake linux                  KCFG="-multi"
-     ipfiremake cryptodev              KCFG="-multi"
-     ipfiremake e1000e                 KCFG="-multi"
-     ipfiremake igb                    KCFG="-multi"
-     # arm-kirkwood (Dreamplug, ICY-Box ...) kernel build
-     ipfiremake linux                  KCFG="-kirkwood"
- #    ipfiremake v4l-dvb                       KCFG="-kirkwood"
- #    ipfiremake mISDN                 KCFG="-kirkwood"
-     ipfiremake cryptodev              KCFG="-kirkwood"
- #    ipfiremake compat-drivers                KCFG="-kirkwood"
- #    ipfiremake r8169                 KCFG="-kirkwood"
- #    ipfiremake r8168                 KCFG="-kirkwood"
- #    ipfiremake r8101                 KCFG="-kirkwood"
- #    ipfiremake e1000e                        KCFG="-kirkwood"
-     ipfiremake igb                    KCFG="-kirkwood"
+   case "${TARGET_ARCH}" in
+       i586)
+               # x86-pae (Native and new XEN) kernel build
+               ipfiremake linux                        KCFG="-pae"
+ #             ipfiremake kvm-kmod                     KCFG="-pae"
+ #             ipfiremake v4l-dvb                      KCFG="-pae"
+ #             ipfiremake mISDN                        KCFG="-pae"
+               ipfiremake cryptodev                    KCFG="-pae"
+ #             ipfiremake compat-drivers               KCFG="-pae"
+ #             ipfiremake r8169                        KCFG="-pae"
+ #             ipfiremake r8168                        KCFG="-pae"
+ #             ipfiremake r8101                        KCFG="-pae"
+               ipfiremake e1000e                       KCFG="-pae"
+               ipfiremake igb                          KCFG="-pae"
+               # x86 kernel build
+               ipfiremake linux                        KCFG=""
+ #             ipfiremake kvm-kmod                     KCFG=""
+ #             ipfiremake v4l-dvb                      KCFG=""
+ #             ipfiremake mISDN                        KCFG=""
+               ipfiremake cryptodev                    KCFG=""
+ #             ipfiremake compat-drivers               KCFG=""
+ #             ipfiremake r8169                        KCFG=""
+ #             ipfiremake r8168                        KCFG=""
+ #             ipfiremake r8101                        KCFG=""
+               ipfiremake e1000e                       KCFG=""
+               ipfiremake igb                          KCFG=""
+               ;;
  
-   fi
+       armv5tel)
+               # arm-rpi (Raspberry Pi) kernel build
+               ipfiremake linux                        KCFG="-rpi"
+ #             ipfiremake v4l-dvb                      KCFG="-rpi"
+ #             ipfiremake mISDN                        KCFG="-rpi" NOPCI=1
+               ipfiremake cryptodev                    KCFG="-rpi"
+ #             ipfiremake compat-drivers               KCFG="-rpi"
+               # arm multi platform (Panda, Wandboard ...) kernel build
+               ipfiremake linux                        KCFG="-multi"
+               ipfiremake cryptodev                    KCFG="-multi"
+               ipfiremake e1000e                       KCFG="-multi"
+               ipfiremake igb                          KCFG="-multi"
+               # arm-kirkwood (Dreamplug, ICY-Box ...) kernel build
+               ipfiremake linux                        KCFG="-kirkwood"
+ #             ipfiremake v4l-dvb                      KCFG="-kirkwood"
+ #             ipfiremake mISDN                        KCFG="-kirkwood"
+               ipfiremake cryptodev                    KCFG="-kirkwood"
+ #             ipfiremake compat-drivers               KCFG="-kirkwood"
+ #             ipfiremake r8169                        KCFG="-kirkwood"
+ #             ipfiremake r8168                        KCFG="-kirkwood"
+ #             ipfiremake r8101                        KCFG="-kirkwood"
+ #             ipfiremake e1000e                       KCFG="-kirkwood"
+               ipfiremake igb                          KCFG="-kirkwood"
+               ;;
+   esac
    ipfiremake pkg-config
    ipfiremake linux-atm
    ipfiremake cpio
    ipfiremake netpbm
    ipfiremake phpSANE
    ipfiremake tunctl
+   ipfiremake netsnmpd
    ipfiremake nagios
    ipfiremake nagios_nrpe
+   ipfiremake icinga
    ipfiremake ebtables
    ipfiremake directfb
    ipfiremake dfb++
    ipfiremake ffmpeg
    ipfiremake vdr
    ipfiremake vdr_streamdev
+   ipfiremake vdr_vnsiserver5
    ipfiremake vdr_vnsiserver3
    ipfiremake vdr_epgsearch
    ipfiremake vdr_dvbapi
    ipfiremake perl-Sort-Naturally
    ipfiremake vdradmin
    ipfiremake miau
-   ipfiremake netsnmpd
    ipfiremake perl-DBI
    ipfiremake perl-DBD-mysql
    ipfiremake perl-DBD-SQLite
    ipfiremake perl-File-ReadBackwards
    ipfiremake cacti
-   ipfiremake icecc
    ipfiremake openvmtools
    ipfiremake nagiosql
    ipfiremake iftop
    ipfiremake motion
    ipfiremake joe
 +  ipfiremake monit
    ipfiremake nut
    ipfiremake watchdog
    ipfiremake libpri
@@@ -898,6 -902,22 +903,22 @@@ ipfirepackages() 
    rm -rf  $BASEDIR/build/install/packages/*
  }
  
+ while [ $# -gt 0 ]; do
+       case "${1}" in
+               --target=*)
+                       configure_target "${1#--target=}"
+                       ;;
+               -*)
+                       exiterror "Unknown configuration option: ${1}"
+                       ;;
+               *)
+                       # Found a command, so exit options parsing.
+                       break
+                       ;;
+       esac
+       shift
+ done
  # See what we're supposed to do
  case "$1" in 
  build)