]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/motion
kernel: update to 4.14.206
[people/pmueller/ipfire-2.x.git] / lfs / motion
index 39c6b7352469ac7f67dfc040931778b450dd70a7..4197fd1f5855b22f1973c7bfd7152a592f05c1e7 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2020  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
 
 include Config
 
-VER        = 3.2.12
+VER        = 4.3.0
 
-THISAPP    = motion-$(VER)
+THISAPP    = motion-Release-$(VER)
 DL_FILE    = $(THISAPP).tar.gz
 DL_FROM    = $(URL_IPFIRE)
 DIR_APP    = $(DIR_SRC)/$(THISAPP)
 TARGET     = $(DIR_INFO)/$(THISAPP)
 
 PROG       = motion
-PAK_VER    = 1
-DEPS       = "ffmpeg"
+PAK_VER    = 3
+DEPS       = ffmpeg libmicrohttpd
+
+CFLAGS    += -fcommon
 
 ###############################################################################
 # Top-level Rules
@@ -44,7 +46,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 1ba0065ed50509aaffb171594c689f46
+$(DL_FILE)_MD5 = 297aab6ec3de74ce1a0d2b1711ac9062
 
 install : $(TARGET)
 
@@ -67,7 +69,7 @@ $(patsubst %,$(DIR_DL)/%,$(objects)) :
 $(subst %,%_MD5,$(objects)) :
        @$(MD5)
 
-dist:
+dist: 
        @$(PAK)
 
 ###############################################################################
@@ -81,6 +83,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        #Install obsolete V4L1 videodev.h
        cp $(DIR_SRC)/config/include/obsolete_videodev.h /usr/include/linux/videodev.h
 
+       cd $(DIR_APP) && autoreconf -fiv
+
        cd $(DIR_APP) && ./configure --prefix=/usr --sysconfdir=/etc
        cd $(DIR_APP) && make $(MAKETUNING)
        cd $(DIR_APP) && make install
@@ -91,5 +95,8 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        #Remove obsolete V4L1 videodev.h
        rm -f /usr/include/linux/videodev.h
 
+       #install initscripts
+       $(call INSTALL_INITSCRIPT,motion)
+
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)