2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/librsync
17 PKG_MD5SUM
:=24cdb6b78f45e0e83766903fd4f6bc84
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/librsync
24 TITLE
:=implementation of the rolling-checksum algorithm
27 define Package
/librsync
/description
28 librsync implements the rolling-checksum algorithm of remote file
29 synchronization that was popularized by the rsync utility and is
30 used in rproxy. This algorithm transfers the differences between
2
31 files without needing both files on the same system.
34 define Build
/Configure
35 $(call Build
/Configure
/Default
, \
41 TARGET_CFLAGS
+= $(FPIC
)
44 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
45 DESTDIR
="$(PKG_INSTALL_DIR)" \
49 define Build
/InstallDev
50 mkdir
-p
$(1)/usr
/include
51 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/librsync
{,-config
}.h
$(1)/usr
/include/
53 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librsync.
{a
,so
*} $(1)/usr
/lib
/
56 define Package
/librsync
/install
57 $(INSTALL_DIR
) $(1)/usr
/lib
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librsync.so.
* $(1)/usr
/lib
/
61 $(eval
$(call BuildPackage
,librsync
))