Changeset 29062


Ignore:
Timestamp:
2011-11-13T23:15:50+01:00 (6 years ago)
Author:
nico
Message:

packages/mini_snmpd: cleanup makefile

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/mini_snmpd/Makefile

    r29040 r29062  
    1616PKG_MD5SUM:=9e432c50ba8216d7fab0983b11b7112a 
    1717 
    18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)/$(PKG_NAME) 
     18PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME) 
    1919PKG_BUILD_PARALLEL:=1 
    2020PKG_INSTALL:=1 
     
    2222include $(INCLUDE_DIR)/package.mk 
    2323 
    24 define Package/mini-snmpd/Default 
     24define Package/mini-snmpd 
     25  SECTION:=net 
     26  CATEGORY:=Network 
    2527  TITLE:=SNMP server for embedded systems 
    2628  URL:=http://members.aon.at/linuxfreak/linux/mini_snmpd.html 
    2729endef 
    2830 
    29 define Package/mini-snmpd 
    30 $(call Package/mini-snmpd/Default) 
    31   SECTION:=net 
    32   CATEGORY:=Network 
    33   TITLE+= Mini Snmpd 
    34 endef 
    35  
    36 PKG_OFLAGS:=$(TARGET_CFLAGS) -DSYSLOG 
    37  
    38 ifeq ($(CONFIG_IPV6),y) 
    39   PKG_OFLAGS+= -D__IPV6__ 
     31ifneq ($(CONFIG_IPV6),) 
     32  TARGET_CFLAGS+= -D__IPV6__ 
    4033else 
    41   PKG_OFLAGS+= -D__IPV4__ 
     34  TARGET_CFLAGS+= -D__IPV4__ 
    4235endif 
    4336 
     37TARGET_CFLAGS+= -DSYSLOG 
     38 
    4439MAKE_FLAGS+= \ 
    45         OFLAGS="$(PKG_OFLAGS)" \ 
     40        OFLAGS="$(TARGET_CFLAGS)" \ 
    4641        STRIP="/bin/true" \ 
    4742        INSTALL_ROOT="$(PKG_INSTALL_DIR)" 
     
    6055endef 
    6156 
    62 Package/mini-snmpd6/install=$(Package/mini-snmpd/install) 
    63  
    6457$(eval $(call BuildPackage,mini-snmpd)) 
Note: See TracChangeset for help on using the changeset viewer.