OpenWrt Forum Archive

Topic: Crosscompile perl module Crypt-Rijndael

The content of this topic has been archived on 28 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hello,

I would like to crosscompile the perl module Crypt-Rijndael from

http://search.cpan.org/dist/Crypt-Rijndael/

for OpenWrt Kamikaze 7.09 by using the build system.

Can someone (with some more skills then me) provide me a Makefile for it?

Thank you, Artem

Probably not possible with 7.09. Try with trunk. In trunk there is a full perl package and some Makefiles to package extra CPAN modules.

Hi,

perl is availibe on https://svn.openwrt.org/openwrt/packages/ so it is not a problem to compile perl and the modules which comes with it for openwrt 7.09.

The problem i am running into is that Crypt-Rijndael is not availible on SVN and I am not able to write a proper Makefile for it...

Thanks, Artem

Hi,

finally I understand how the OpenWrt Makefiles for perl work.

Here is the Makefile for Crypt-Rijndael:

# $Id$

include $(TOPDIR)/rules.mk

PKG_NAME:=perl-crypt-rijndael
PKG_VERSION:=1.06
PKG_RELEASE:=1
PKG_MD5SUM:=adba5ba76f086d691a02021a3569a8e4

PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY
PKG_SOURCE:=Crypt-Rijndael-$(PKG_VERSION).tar.gz
PKG_CAT:=zcat

PKG_BUILD_DIR:=$(BUILD_DIR)/perl/Crypt-Rijndael-$(PKG_VERSION)

include $(INCLUDE_DIR)/package.mk
include ../perl/perlmod.mk

define Package/perl-crypt-rijndael
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=CBC compliant Rijndael encryption module
URL:=http://search.cpan.org/dist/Crypt-Rijndael/
DEPENDS:=perl
endef

define Build/Configure
        $(call perlmod/Configure,,)
endef

define Build/Compile
        $(call perlmod/Compile,,)
endef

define Package/perl-crypt-rijndael/install
        $(call perlmod/Install,$(1),Crypt auto/Crypt)
endef


$(eval $(call BuildPackage,perl-crypt-rijndael))

Regards, Artem

The discussion might have continued from here.