Browse Source

linux uses rsync nowadays to copy headers

Waldemar Brodkorb 3 years ago
parent
commit
8ba4645f6b
3 changed files with 19 additions and 0 deletions
  1. 3 0
      package/rsync/Makefile
  2. 12 0
      scripts/prereq.sh
  3. 4 0
      target/config/Config.in.tools

+ 3 - 0
package/rsync/Makefile

@@ -16,12 +16,15 @@ PKG_SITES:=		http://rsync.samba.org/ftp/rsync/
 
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
 
+include $(ADK_TOPDIR)/mk/host.mk
 include ${ADK_TOPDIR}/mk/package.mk
 
+$(eval $(call HOST_template,RSYNC,rsync,$(PKG_VERSION)-$(PKG_RELEASE)))
 $(eval $(call PKG_template,RSYNC,rsync,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
 
 rsync-install:
 	${INSTALL_DIR} ${IDIR_RSYNC}/usr/bin
 	${INSTALL_BIN} ${WRKINST}/usr/bin/rsync ${IDIR_RSYNC}/usr/bin
 
+include $(ADK_TOPDIR)/mk/host-bottom.mk
 include ${ADK_TOPDIR}/mk/pkg-bottom.mk

+ 12 - 0
scripts/prereq.sh

@@ -521,6 +521,15 @@ else
   printf "found\n"
 fi
 
+printf " --->  checking if rsync is installed.. "
+host_build_rsync=0
+if ! which rsync >/dev/null 2>&1; then
+  printf "not found\n"
+  host_build_rsync=1
+else
+  printf "found\n"
+fi
+
 host_build_tar=0
 if which tar >/dev/null 2>&1; then
   if ! tar --version 2>/dev/null|grep GNU >/dev/null;then
@@ -692,6 +701,9 @@ fi
 if [ $host_build_patch -eq 1 ]; then 
   printf "\t%s\n" "select ADK_HOST_BUILD_PATCH" >> $topdir/target/config/Config.in.prereq
 fi
+if [ $host_build_rsync -eq 1 ]; then 
+  printf "\t%s\n" "select ADK_HOST_BUILD_RSYNC" >> $topdir/target/config/Config.in.prereq
+fi
 if [ $host_build_findutils -eq 1 ]; then
   printf "\t%s\n" "select ADK_HOST_BUILD_FINDUTILS" >> $topdir/target/config/Config.in.prereq
 fi

+ 4 - 0
target/config/Config.in.tools

@@ -121,6 +121,10 @@ config ADK_HOST_BUILD_PATCH
 	bool
 	default n
 
+config ADK_HOST_BUILD_RSYNC
+	bool
+	default n
+
 config ADK_HOST_BUILD_SED
 	bool
 	default n