Browse Source

Merge pull request #4485 from pprindeville/php7-enable-snmp

php7: add SNMP module to bundle
lilik-openwrt-22.03
Michael Heimpold 8 years ago
committed by GitHub
parent
commit
c258748126
1 changed files with 10 additions and 3 deletions
  1. +10
    -3
      lang/php7/Makefile

+ 10
- 3
lang/php7/Makefile View File

@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=php PKG_NAME:=php
PKG_VERSION:=7.1.6 PKG_VERSION:=7.1.6
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de> PKG_MAINTAINER:=Michael Heimpold <mhei@heimpold.de>
@ -37,7 +37,7 @@ PHP7_MODULES = \
mbstring mcrypt mysqli \ mbstring mcrypt mysqli \
opcache openssl \ opcache openssl \
pcntl pdo pdo-mysql pdo-pgsql pdo-sqlite pgsql phar \ pcntl pdo pdo-mysql pdo-pgsql pdo-sqlite pgsql phar \
session shmop simplexml soap sockets sqlite3 sysvmsg sysvsem sysvshm \
session shmop simplexml snmp soap sockets sqlite3 sysvmsg sysvsem sysvshm \
tokenizer \ tokenizer \
xml xmlreader xmlwriter zip \ xml xmlreader xmlwriter zip \
@ -288,7 +288,7 @@ else
CONFIGURE_ARGS+= --disable-opcache CONFIGURE_ARGS+= --disable-opcache
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-openssl),)
ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-openssl)$(CONFIG_PACKAGE_php7-mod-snmp),)
CONFIGURE_ARGS+= \ CONFIGURE_ARGS+= \
--with-openssl=shared,"$(STAGING_DIR)/usr" \ --with-openssl=shared,"$(STAGING_DIR)/usr" \
--with-kerberos=no \ --with-kerberos=no \
@ -354,6 +354,12 @@ else
CONFIGURE_ARGS+= --disable-simplexml CONFIGURE_ARGS+= --disable-simplexml
endif endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-snmp),)
CONFIGURE_ARGS+= --with-snmp=shared,"$(STAGING_DIR)/usr"
else
CONFIGURE_ARGS+= --without-snmp
endif
ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-soap),) ifneq ($(SDK)$(CONFIG_PACKAGE_php7-mod-soap),)
CONFIGURE_ARGS+= --enable-soap=shared CONFIGURE_ARGS+= --enable-soap=shared
else else
@ -585,6 +591,7 @@ $(eval $(call BuildModule,phar,Phar Archives,+php7-mod-hash))
$(eval $(call BuildModule,session,Session)) $(eval $(call BuildModule,session,Session))
$(eval $(call BuildModule,shmop,Shared Memory)) $(eval $(call BuildModule,shmop,Shared Memory))
$(eval $(call BuildModule,simplexml,SimpleXML,+@PHP7_LIBXML +PACKAGE_php7-mod-simplexml:libxml2)) $(eval $(call BuildModule,simplexml,SimpleXML,+@PHP7_LIBXML +PACKAGE_php7-mod-simplexml:libxml2))
$(eval $(call BuildModule,snmp,SNMP,+PACKAGE_php7-mod-snmp:libnetsnmp +PACKAGE_php7-mod-snmp:libopenssl))
$(eval $(call BuildModule,soap,SOAP,+@PHP7_LIBXML +PACKAGE_php7-mod-soap:libxml2)) $(eval $(call BuildModule,soap,SOAP,+@PHP7_LIBXML +PACKAGE_php7-mod-soap:libxml2))
$(eval $(call BuildModule,sockets,Sockets)) $(eval $(call BuildModule,sockets,Sockets))
$(eval $(call BuildModule,sqlite3,SQLite3,+PACKAGE_php7-mod-sqlite3:libsqlite3)) $(eval $(call BuildModule,sqlite3,SQLite3,+PACKAGE_php7-mod-sqlite3:libsqlite3))


Loading…
Cancel
Save