@ -8,7 +8,7 @@
i n c l u d e $( TOPDIR ) / r u l e s . m k
PKG_NAME := uhttpd
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE_PROTO := git
PKG_SOURCE_URL = $( LEDE_GIT) /project/uhttpd.git
@ -46,9 +46,12 @@ define Package/uhttpd/config
config PACKAGE_uhttpd_debug
bool "Build with debug messages"
default n
config uhttpd_lua
depends on PACKAGE_uhttpd-mod-lua
bool "Enable Integrated Lua interpreter"
default y
e n d e f
d e f i n e P a c k a g e / u h t t p d - m o d - l u a
$( Package/uhttpd/default)
TITLE += ( Lua plugin)
@ -106,6 +109,16 @@ define Package/uhttpd-mod-ubus/install
$( INSTALL_DATA) ./files/ubus.default $( 1) /etc/uci-defaults/00_uhttpd_ubus
e n d e f
d e f i n e P a c k a g e / u h t t p d - m o d - l u a / p o s t i n s t
$( if $( CONFIG_uhttpd_lua) ,
#!/bin/sh
if [ -f $$ { IPKG_INSTROOT} /www/index.html ]
then
sed -e 's:/cgi-bin::g' -i $$ { IPKG_INSTROOT} /www/index.html
fi
,)
e n d e f
$( eval $ ( call BuildPackage ,uhttpd ) )
$( eval $ ( call BuildPackage ,uhttpd -mod -lua ) )