]> git.ipfire.org Git - people/ummeegge/ipfire-2.x.git/blobdiff - lfs/netatalk
Switch checksums from MD5 to BLAKE2
[people/ummeegge/ipfire-2.x.git] / lfs / netatalk
index 16fd292ebb5e14039cf3b0a43126b119b5b6590d..61ba193a5436a381bd580d411a6aef24654f07d2 100644 (file)
@@ -24,6 +24,8 @@
 
 include Config
 
+SUMMARY    = AppleShare file server
+
 VER        = 3.1.12
 
 THISAPP    = netatalk-$(VER)
@@ -36,7 +38,9 @@ PAK_VER    = 2
 
 DEPS       = avahi dbus krb5
 
-CFLAGS    += -Wno-unused-result
+SERVICES   = netatalk
+
+CFLAGS    += -fcommon -Wno-unused-result
 
 ###############################################################################
 # Top-level Rules
@@ -46,7 +50,7 @@ objects = $(DL_FILE)
 
 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
 
-$(DL_FILE)_MD5 = 5aea4b1765171b8d2d240cf265d84171
+$(DL_FILE)_BLAKE2 = 912bb85045952202becc42899f87ada33427ded987de6c7a6b56c061c1eb6d1a96d95a1700522bfe2119c6db8bbec94eeb4c64c480f59ff7d406542390705efc
 
 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
@@ -79,6 +83,7 @@ $(subst %,%_MD5,$(objects)) :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
        @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       $(UPDATE_AUTOMAKE)
        cd $(DIR_APP) && ./configure \
                --prefix=/usr \
                --sysconfdir=/etc \
@@ -92,7 +97,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
                /var/ipfire/backup/addons/includes/netatalk
 
        # Install initscript
-       $(call INSTALL_INITSCRIPT,netatalk)
+       $(call INSTALL_INITSCRIPTS,$(SERVICES))
 
        @rm -rf $(DIR_APP)
        @$(POSTBUILD)