diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-18 18:10:19 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-18 18:10:19 +0100 |
commit | 46b2bb3001ce838ba2483a08418587d8a027f3a9 (patch) | |
tree | b2b618839b5afcc859fcb90556e6f199d9a9a10c /package/nut | |
parent | 88d3e6d6c572143bd95a589a44e30bfefd616b88 (diff) | |
parent | 902ee7e7b23751ca7a8264d36a837aa4aae12032 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/nut')
-rw-r--r-- | package/nut/Makefile | 35 | ||||
-rw-r--r-- | package/nut/patches/patch-ltmain_sh | 11 |
2 files changed, 26 insertions, 20 deletions
diff --git a/package/nut/Makefile b/package/nut/Makefile index 833f271e7..6af495cb6 100644 --- a/package/nut/Makefile +++ b/package/nut/Makefile @@ -12,16 +12,16 @@ PKG_SECTION:= net/misc PKG_URL:= http://www.networkupstools.org/ PKG_SITES:= http://www.networkupstools.org/source/2.4/ -PKG_FLAVOURS:= SSL SNMP USB -PKGFD_SNMP:= enable SNMP support -PKGFS_SNMP:= libnetsnmp -PKGFB_SNMP:= net-snmp -PKGFD_USB:= enable USB support -PKGFS_USB:= libusb -PKGFB_USB:= libusb -PKGFD_SSL:= enable SSL support -PKGFS_SSL:= libopenssl -PKGFB_SSL:= openssl +PKG_FLAVOURS_NUT:= WITH_SSL WITH_SNMP WITH_USB +PKGFD_WITH_SNMP:= enable SNMP support +PKGFS_WITH_SNMP:= libnetsnmp +PKGFB_WITH_SNMP:= net-snmp +PKGFD_WITH_USB:= enable USB support +PKGFS_WITH_USB:= libusb +PKGFB_WITH_USB:= libusb +PKGFD_WITH_SSL:= enable SSL support +PKGFS_WITH_SSL:= libopenssl +PKGFB_WITH_SSL:= openssl include ${TOPDIR}/mk/package.mk @@ -65,10 +65,10 @@ $(eval $(call DRIVER_template,RHINO,rhino)) CONFIG_DRIVERS=$(shell echo ${DRIVERS_y} | tr ' ' ',') INSTALL_DRIVERS_tmp=${DRIVERS_y} -ifneq (${ADK_PACKAGE_NUT_USB},) +ifneq (${ADK_PACKAGE_NUT_WITH_USB},) INSTALL_DRIVERS_tmp+= usbhid-ups tripplite_usb endif -ifneq (${ADK_PACKAGE_NUT_SNMP},) +ifneq (${ADK_PACKAGE_NUT_WITH_SNMP},) INSTALL_DRIVERS_tmp+= snmp-ups endif INSTALL_DRIVERS=$(shell echo ${INSTALL_DRIVERS_tmp} | tr ' ' ',') @@ -79,7 +79,7 @@ CONFIGURE_ARGS+= --with-linux-hiddev=${LINUX_DIR}/include/linux/hiddev.h \ --with-group=0 \ --with-user=0 -ifneq (${ADK_PACKAGE_NUT_SSL},) +ifneq (${ADK_PACKAGE_NUT_WITH_SSL},) CONFIGURE_ARGS+= --with-ssl CONFIGURE_ENV+= CPPFLAGS="${TCPPFLAGS} ${TLDFLAGS}" MAKE_FLAGS+= SSL_CFLAGS="${TCPPFLAGS}" SSL_LDFLAGS="${TLDFLAGS} -lssl -lcrypto" @@ -88,11 +88,11 @@ endif ALL_TARGET:= all INSTALL_TARGET:= install -ifneq (${ADK_PACKAGE_NUT_USB},) +ifneq (${ADK_PACKAGE_NUT_WITH_USB},) ALL_TARGET+= usb INSTALL_TARGET+= install-usb endif -ifneq (${ADK_PACKAGE_NUT_SNMP},) +ifneq (${ADK_PACKAGE_NUT_WITH_SNMP},) ALL_TARGET+= snmp INSTALL_TARGET+= install-snmp endif @@ -108,10 +108,5 @@ post-install: ${INSTALL_BIN} ${WRKINST}/usr/bin/ups{c,cmd,drvctl,log,rw} \ ${IDIR_NUT}/usr/bin/ ${INSTALL_DATA} ./files/ups{d,}.conf ${IDIR_NUT}/etc/ -ifneq (${ADK_PACKAGE_NUT_VARDESC},) - ${INSTALL_DIR} ${IDIR_NUT}/usr/share - ${INSTALL_DATA} ${WRKINST}/usr/share/cmdvartab \ - ${IDIR_NUT}/usr/share/ -endif include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/nut/patches/patch-ltmain_sh b/package/nut/patches/patch-ltmain_sh new file mode 100644 index 000000000..806117687 --- /dev/null +++ b/package/nut/patches/patch-ltmain_sh @@ -0,0 +1,11 @@ +--- nut-2.4.1.orig/ltmain.sh 2009-02-17 10:23:41.000000000 +0100 ++++ nut-2.4.1/ltmain.sh 2011-01-16 01:03:10.000000000 +0100 +@@ -4238,7 +4238,7 @@ func_mode_link () + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC + # @file GCC response files + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ +- -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*) ++ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto) + func_quote_for_eval "$arg" + arg="$func_quote_for_eval_result" + func_append compile_command " $arg" |