]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blobdiff - lfs/mdns-repeater
Switch checksums from MD5 to BLAKE2
[people/pmueller/ipfire-2.x.git] / lfs / mdns-repeater
index 4b3d3a78499315ca9e38446ad59ec535a87882eb..9d5d5182f28729f777b77c1c0dc5d587adceea55 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007  Michael Tremer & Christian Schmidt                      #
+# Copyright (C) 2007-2018  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        #
@@ -24,6 +24,8 @@
 
 include Config
 
+SUMMARY    = A mDNS repeater
+
 VER        = 1.10
 
 THISAPP    = mdns-repeater-$(VER)
@@ -34,7 +36,9 @@ TARGET     = $(DIR_INFO)/$(THISAPP)
 PROG       = mdns-repeater
 PAK_VER    = 1
 
-DEPS       = ""
+DEPS       =
+
+SERVICES   = mdns-repeater
 
 CFLAGS    += -DHGVERSION='\"$(VER)\"'
 
@@ -46,7 +50,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 6dba5f891b50c2267f45a7760894fcb6
+$(DL_FILE)_BLAKE2 = 7fb9278808deff0f62ce1e0ada3e1c367fafa0e27b12714b6df4fe25f2d2eefb6401390fdd74bf5ee98e361b969c7422a01053cf3181993a99ad05ae1605d795
 
 install : $(TARGET)
 
@@ -54,13 +58,13 @@ check : $(patsubst %,$(DIR_CHK)/%,$(objects))
 
 download :$(patsubst %,$(DIR_DL)/%,$(objects))
 
-md5 : $(subst %,%_MD5,$(objects))
+b2 : $(subst %,%_BLAKE2,$(objects))
 
-dist: 
+dist:
        @$(PAK)
 
 ###############################################################################
-# Downloading, checking, md5sum
+# Downloading, checking, b2sum
 ###############################################################################
 
 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
@@ -69,8 +73,8 @@ $(patsubst %,$(DIR_CHK)/%,$(objects)) :
 $(patsubst %,$(DIR_DL)/%,$(objects)) :
        @$(LOAD)
 
-$(subst %,%_MD5,$(objects)) :
-       @$(MD5)
+$(subst %,%_BLAKE2,$(objects)) :
+       @$(B2SUM)
 
 ###############################################################################
 # Installation Details
@@ -83,7 +87,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        cd $(DIR_APP) && install -v -m 755 mdns-repeater /usr/bin
 
        # install initscripts
-       $(call INSTALL_INITSCRIPT,mdns-repeater)
+       $(call INSTALL_INITSCRIPTS,$(SERVICES))
 
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)