Ticket #555: libmcrypt-2.5.7.patch

File libmcrypt-2.5.7.patch, 2.7 KB (added by martin@…, 12 years ago)

libmcrypt-2.5.7

  • package/libmcrypt

    diff -ruN package/libmcrypt.orig/Config.in package/libmcrypt/Config.in
    old new  
     1config BR2_PACKAGE_LIBMCRYPT 
     2        tristate "libmcrypt - cryptographic library" 
     3        default m if CONFIG_DEVEL 
     4        help 
     5              libmcrypt is a cryptographic library that conveniently brings together 
     6              a variety of ciphers for convenient use. 
     7 
     8              http://mcrypt.sourceforge.net/ 
  • package/libmcrypt

    diff -ruN package/libmcrypt.orig/Makefile package/libmcrypt/Makefile
    old new  
     1include $(TOPDIR)/rules.mk 
     2 
     3PKG_NAME:=libmcrypt 
     4PKG_VERSION:=2.5.7 
     5PKG_RELEASE:=1 
     6PKG_MD5SUM:=b1be163143f8e8ed0474beeb642b3bad 
     7 
     8PKG_SOURCE_URL:=http://heanet.dl.sourceforge.net/sourceforge/mcrypt/ \ 
     9        http://nchc.dl.sourceforge.net/sourceforge/mcrypt/ \ 
     10        http://kent.dl.sourceforge.net/sourceforge/mcrypt/       
     11PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz 
     12PKG_CAT:=zcat 
     13 
     14PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) 
     15PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install 
     16 
     17include $(TOPDIR)/package/rules.mk 
     18 
     19$(eval $(call PKG_template,LIBMCRYPT,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH))) 
     20 
     21$(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared 
     22        (cd $(PKG_BUILD_DIR); \ 
     23                $(TARGET_CONFIGURE_OPTS) \ 
     24                CFLAGS="$(TARGET_CFLAGS)" \ 
     25                CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \ 
     26                LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib -lm" \ 
     27                ./configure \ 
     28                        --target=$(GNU_TARGET_NAME) \ 
     29                        --host=$(GNU_TARGET_NAME) \ 
     30                        --build=$(GNU_HOST_NAME) \ 
     31                        --prefix=$(PKG_INSTALL_DIR) \ 
     32        ); 
     33        ## Add software specific configurable options above 
     34        ## See : ./configure --help 
     35        touch $@ 
     36 
     37$(PKG_BUILD_DIR)/.built: 
     38        $(MAKE) -C $(PKG_BUILD_DIR) $(TARGET_CONFIGURE_OPTS) 
     39        touch $@ 
     40 
     41$(IPKG_LIBMCRYPT): 
     42        mkdir -p $(PKG_INSTALL_DIR) 
     43        $(MAKE) -C $(PKG_BUILD_DIR) install 
     44        mkdir -p $(IDIR_LIBMCRYPT)/usr/lib 
     45        ${CP} -RPp $(PKG_INSTALL_DIR)/lib/* $(IDIR_LIBMCRYPT)/usr/lib 
     46        $(RSTRIP) $(IDIR_LIBMCRYPT)/usr/lib/libmcrypt.so 
     47        $(IPKG_BUILD) $(IDIR_LIBMCRYPT) $(PACKAGE_DIR) 
     48 
     49mostlyclean: 
     50        make -C $(PKG_BUILD_DIR) clean 
     51        rm $(PKG_BUILD_DIR)/.built 
  • ipkg/libmcrypt.control

    diff -ruN package/libmcrypt.orig/ipkg/libmcrypt.control package/libmcrypt/ipkg/libmcrypt.control
    old new  
     1Package: libmcrypt 
     2Priority: optional 
     3Section: net 
     4Description: Cryptographic Library