2013-09-13 22:57:04 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# aiccu
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
|
|
|
AICCU_VERSION = 20070115
|
|
|
|
AICCU_SOURCE = aiccu_$(AICCU_VERSION).tar.gz
|
2014-07-31 10:46:58 +02:00
|
|
|
AICCU_SITE = http://www.sixxs.net/archive/sixxs/aiccu/unix
|
2013-09-13 22:57:04 +02:00
|
|
|
AICCU_LICENSE = SixXS License, concise redistribution license
|
|
|
|
AICCU_LICENSE_FILES = doc/LICENSE
|
|
|
|
AICCU_DEPENDENCIES = gnutls
|
|
|
|
|
2013-10-01 21:18:52 +02:00
|
|
|
AICCU_LFDLAGS = $(TARGET_LDFLAGS)
|
|
|
|
|
|
|
|
# aiccu forgets to link with gnutls' dependencies breaking the build when
|
|
|
|
# linking statically
|
2014-12-03 22:41:29 +01:00
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
2015-07-12 16:35:26 +02:00
|
|
|
AICCU_LDFLAGS += `$(PKG_CONFIG_HOST_BINARY) --static --libs gnutls`
|
2013-10-01 21:18:52 +02:00
|
|
|
endif
|
|
|
|
|
2013-09-13 22:57:04 +02:00
|
|
|
# dummy RPM_OPT_FLAGS to disable stripping
|
|
|
|
define AICCU_BUILD_CMDS
|
2013-10-01 21:18:52 +02:00
|
|
|
$(TARGET_CONFIGURE_OPTS) LDFLAGS="$(AICCU_LDFLAGS)" $(MAKE) \
|
|
|
|
CC="$(TARGET_CC)" RPM_OPT_FLAGS=1 -C $(@D)/unix-console all
|
2013-09-13 22:57:04 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define AICCU_INSTALL_TARGET_CMDS
|
|
|
|
$(INSTALL) -D -m 0755 $(@D)/unix-console/aiccu \
|
|
|
|
$(TARGET_DIR)/usr/sbin/aiccu
|
2014-11-30 15:18:40 +01:00
|
|
|
$(INSTALL) -D -m 0644 $(@D)/doc/aiccu.conf \
|
2013-09-13 22:57:04 +02:00
|
|
|
$(TARGET_DIR)/etc/aiccu.conf
|
|
|
|
endef
|
|
|
|
|
|
|
|
define AICCU_INSTALL_INIT_SYSV
|
2014-11-30 15:18:40 +01:00
|
|
|
$(INSTALL) -D -m 0755 $(@D)/doc/aiccu.init \
|
2013-09-13 22:57:04 +02:00
|
|
|
$(TARGET_DIR)/etc/init.d/S50aiccu
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|