@ -37,7 +37,7 @@ PKG_INSTALL:=1
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / h o s t - b u i l d . m k
d e f i n e P a c k a g e / o p k g / D e f a u l t
d e f i n e P a c k a g e / o p k g
SECTION:= base
CATEGORY:= Base system
TITLE:= opkg package manager
@ -46,7 +46,7 @@ define Package/opkg/Default
MENU:= 1
e n d e f
d e f i n e P a c k a g e / o p k g / D e f a u l t / d e s c r i p t i o n
d e f i n e P a c k a g e / o p k g / d e s c r i p t i o n
Lightweight package management system
opkg is the opkg Package Management System, for handling
installation and removal of packages on a system. It can
@ -66,47 +66,12 @@ config OPKG_SUPPORT_MD5
Old opkg used md5s, new uses sha. This options enables understanding both while prefering sha.
e n d e f
d e f i n e P a c k a g e / o p k g
$( call Package/opkg/Default)
VARIANT:= unsigned
e n d e f
d e f i n e P a c k a g e / o p k g / d e s c r i p t i o n
$( call Package/opkg/Default/description)
e n d e f
d e f i n e P a c k a g e / o p k g / c o n f f i l e s
/ e t c / o p k g . c o n f
/ e t c / o p k g / k e y s /
/ e t c / o p k g / c u s t o m f e e d s . c o n f
e n d e f
d e f i n e P a c k a g e / o p k g - s m i m e
$( call Package/opkg/Default)
TITLE += ( with S/MIME signature support)
DEPENDS += +PACKAGE_opkg-smime:libopenssl
VARIANT:= smime
e n d e f
d e f i n e P a c k a g e / o p k g - s m i m e / d e s c r i p t i o n
$( call Package/opkg/Default/description)
This package allows the Package index to be verified with S/MIME.
e n d e f
d e f i n e P a c k a g e / o p k g - s m i m e / c o n f i g
c o n f i g O P K G _ S M I M E _ S U P P O R T _ M D 5
bool
default n
depends on PACKAGE_opkg-smime
prompt "Support reading old md5 hashes."
help
Old opkg used md5s, new uses sha. This options enables understanding both while prefering sha.
e n d e f
P a c k a g e / o p k g - s m i m e / conffiles = $( Package/opkg/conffiles)
TARGET_CFLAGS += -ffunction-sections -fdata-sections
EXTRA_CFLAGS += $( TARGET_CPPFLAGS)
@ -117,22 +82,13 @@ CONFIGURE_ARGS += \
--with-opkgetcdir= /etc \
--with-opkglockfile= /var/lock/opkg.lock
i f e q ( $( BUILD_VARIANT ) , s m i m e )
CONFIGURE_ARGS += --enable-openssl --disable-usign
ifeq ( $( CONFIG_OPKG_SMIME_SUPPORT_MD5) ,y)
CONFIGURE_ARGS += --enable-md5
else
CONFIGURE_ARGS += --disable-md5
endif
i f n d e f C O N F I G _ S I G N E D _ P A C K A G E S
CONFIGURE_ARGS += --disable-usign
e n d i f
i f e q ( $( CONFIG_OPKG_SUPPORT_MD 5) , y )
CONFIGURE_ARGS += --enable-md5
e l s e
ifndef CONFIG_SIGNED_PACKAGES
CONFIGURE_ARGS += --disable-usign
endif
ifeq ( $( CONFIG_OPKG_SUPPORT_MD5) ,y)
CONFIGURE_ARGS += --enable-md5
else
CONFIGURE_ARGS += --disable-md5
endif
CONFIGURE_ARGS += --disable-md5
e n d i f
MAKE_FLAGS = \
@ -163,12 +119,6 @@ define Package/opkg/install
$( INSTALL_BIN) ./files/opkg-key $( 1) /usr/sbin/
e n d e f
d e f i n e P a c k a g e / o p k g - s m i m e / i n s t a l l
$( call Package/opkg/Default/install,$( 1) ,-smime)
$( INSTALL_DIR) $( 1) /etc/ssl/certs
$( if $( CONFIG_OPKGSMIME_CERT) ,$( INSTALL_DATA) $( call qstrip,$( CONFIG_OPKGSMIME_CERT) ) $( 1) /etc/ssl/certs/opkg.pem,)
e n d e f
d e f i n e B u i l d / I n s t a l l D e v
mkdir -p $( 1) /usr/include
$( CP) $( PKG_INSTALL_DIR) /usr/include/libopkg $( 1) /usr/include/
@ -191,5 +141,4 @@ define Host/Install
e n d e f
$( eval $ ( call BuildPackage ,opkg ) )
$( eval $ ( call BuildPackage ,opkg -smime ) )
$( eval $ ( call HostBuild ) )