1da9c0e1be
- Replace non upstreamable patch
- Use LICENSE file added with
721b7f0d9b
https://github.com/yarrick/iodine/blob/v0.8.0/CHANGELOG
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
39 lines
1.1 KiB
Makefile
39 lines
1.1 KiB
Makefile
################################################################################
|
|
#
|
|
# iodine
|
|
#
|
|
################################################################################
|
|
|
|
IODINE_VERSION = 0.8.0
|
|
IODINE_SITE = http://code.kryo.se/iodine
|
|
IODINE_LICENSE = MIT
|
|
IODINE_LICENSE_FILES = LICENSE
|
|
IODINE_CPE_ID_VENDOR = kryo
|
|
IODINE_SELINUX_MODULES = iodine
|
|
IODINE_DEPENDENCIES = \
|
|
host-pkgconf \
|
|
$(if $(BR2_PACKAGE_LIBSELINUX),libselinux) \
|
|
$(if $(BR2_PACKAGE_SYSTEMD),systemd) \
|
|
zlib
|
|
|
|
IODINE_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
# iodine contains a local implementation of daemon(3) for older
|
|
# systems, unless __GLIBC__ is defined. Musl does provide it, but
|
|
# unlike uClibc it doesn't define __GLIBC__. Work around it by
|
|
# pretending to be glibc as we otherwise end up with symbol conflicts.
|
|
ifeq ($(BR2_TOOLCHAIN_USES_MUSL),y)
|
|
IODINE_CFLAGS += -D__GLIBC__
|
|
endif
|
|
|
|
define IODINE_BUILD_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) CFLAGS="$(IODINE_CFLAGS)" \
|
|
$(MAKE) ARCH=$(BR2_ARCH) -C $(@D)
|
|
endef
|
|
|
|
define IODINE_INSTALL_TARGET_CMDS
|
|
$(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) install DESTDIR="$(TARGET_DIR)" prefix=/usr
|
|
endef
|
|
|
|
$(eval $(generic-package))
|