The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / rng-tools / rng-tools.mk
1 ################################################################################
2 #
3 # rng-tools
4 #
5 ################################################################################
6
7 RNG_TOOLS_VERSION = 5
8 RNG_TOOLS_SITE = http://downloads.sourceforge.net/project/gkernel/rng-tools/$(RNG_TOOLS_VERSION)
9 RNG_TOOLS_LICENSE = GPLv2
10 RNG_TOOLS_LICENSE_FILES = COPYING
11
12 # Work around for uClibc's lack of argp_*() functions
13 ifeq ($(BR2_TOOLCHAIN_USES_UCLIBC),y)
14 RNG_TOOLS_CONF_ENV += LIBS="-largp"
15 RNG_TOOLS_DEPENDENCIES += argp-standalone
16 endif
17
18 ifeq ($(BR2_PACKAGE_LIBGCRYPT),y)
19 RNG_TOOLS_DEPENDENCIES += libgcrypt
20 else
21 RNG_TOOLS_CONF_OPTS += --without-libgcrypt
22 endif
23
24 define RNG_TOOLS_INSTALL_INIT_SYSTEMD
25         $(INSTALL) -D -m 644 package/rng-tools/rngd.service \
26                 $(TARGET_DIR)/usr/lib/systemd/system/rngd.service
27         mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
28         ln -fs ../../../../usr/lib/systemd/system/rngd.service \
29                 $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/rngd.service
30 endef
31
32 $(eval $(autotools-package))