@ -26,7 +26,7 @@ PKG_BUILD_PARALLEL:=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 ) / v e r s i o n . m k
d e f i n e P a c k a g e / m i n i u p n p d / D e f a u l t
d e f i n e P a c k a g e / m i n i u p n p d
SECTION:= net
CATEGORY:= Network
DEPENDS:= \
@ -43,26 +43,10 @@ define Package/miniupnpd/Default
URL:= https://miniupnp.tuxfamily.org/
e n d e f
d e f i n e P a c k a g e / m i n i u p n p d
$( call Package/miniupnpd/Default)
TITLE += ( IGDv2)
CONFLICTS:= miniupnpd-igdv1
VARIANT:= igdv2
e n d e f
d e f i n e P a c k a g e / m i n i u p n p d - i g d v 1
$( call Package/miniupnpd/Default)
TITLE += ( IGDv1)
PROVIDES:= miniupnpd
VARIANT:= igdv1
e n d e f
d e f i n e P a c k a g e / m i n i u p n p d / c o n f f i l e s
/ e t c / c o n f i g / u p n p d
e n d e f
P a c k a g e / m i n i u p n p d - i g d v 1 / conffiles = $( Package/miniupnpd/conffiles)
d e f i n e B u i l d / P r e p a r e
$( call Build/Prepare/Default)
echo " $( VERSION_NUMBER) " | tr '() ' '_' >$( PKG_BUILD_DIR) /os.openwrt
@ -70,15 +54,12 @@ endef
CONFIGURE_ARGS = \
$( if $( CONFIG_IPV6) ,--ipv6) \
--igd2 \
--leasefile \
--portinuse \
--firewall= iptables \
--disable-fork
i f e q ( $( BUILD_VARIANT ) , i g d v 2 )
CONFIGURE_ARGS += --igd2
e n d i f
TARGET_CFLAGS += $( FPIC) -flto
TARGET_LDFLAGS += -Wl,--gc-sections,--as-needed
@ -98,7 +79,4 @@ define Package/miniupnpd/install
$( INSTALL_DATA) ./files/firewall.include $( 1) /usr/share/miniupnpd/firewall.include
e n d e f
P a c k a g e / m i n i u p n p d - i g d v 1 / install = $( Package/miniupnpd/install)
$( eval $ ( call BuildPackage ,miniupnpd ) )
$( eval $ ( call BuildPackage ,miniupnpd -igdv 1) )