summaryrefslogtreecommitdiff
path: root/package/haveged/Makefile
blob: 2779bb55a232b23221f218a5cf9166d3a5a0b5d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(ADK_TOPDIR)/rules.mk

PKG_NAME:=		haveged
PKG_VERSION:=		1.9.18
PKG_RELEASE:=		1
PKG_HASH:=		b835fa02b52ee7d06276e028571cadcb14d08f5e5a4b5767adf81451f70561c7
PKG_DESCR:=		entropy gathering daemon
PKG_SECTION:=		sys/misc
PKG_SITES:=	 	https://github.com/jirka-h/haveged/archive/refs/tags/

PKG_ARCH_DEPENDS:=	!arm !mips

DISTFILES:=             v$(PKG_VERSION).tar.gz

include $(ADK_TOPDIR)/mk/package.mk

$(eval $(call PKG_template,HAVEGED,haveged,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))

CONFIGURE_ARGS+=	--enable-clock_gettime=yes

haveged-install:
	$(INSTALL_DIR) $(IDIR_HAVEGED)/usr/lib
	-$(CP) $(WRKINST)/usr/lib/libhaveg*.so* \
		$(IDIR_HAVEGED)/usr/lib
	$(INSTALL_DIR) $(IDIR_HAVEGED)/usr/sbin
	$(INSTALL_BIN) $(WRKINST)/usr/sbin/haveged \
		$(IDIR_HAVEGED)/usr/sbin

include $(ADK_TOPDIR)/mk/pkg-bottom.mk