summaryrefslogtreecommitdiff
path: root/package/conntrack-tools/Makefile
blob: f6c81d0a67b2520fee9347171989922c238e2091 (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
33
34
35
36
37
38
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include $(TOPDIR)/rules.mk

PKG_NAME:=		conntrack-tools
PKG_VERSION:=		1.4.2
PKG_RELEASE:=		1
PKG_MD5SUM:=		b1f9d006e7bf000a77395ff7cd3fac16
PKG_DESCR:=		connection tracking userspace tools
PKG_SECTION:=		net/firewall
PKG_DEPENDS:=		libtirpc libnetfilter_queue libnetfilter-conntrack libnetfilter-cttimeout libnetfilter-cthelper libmnl
PKG_BUILDDEP:=		libtirpc libnetfilter_queue libnetfilter_conntrack libnetfilter_cttimeout libnetfilter_cthelper libmnl
PKG_URL:=		http://conntrack-tools.netfilter.org/
PKG_SITES:=		http://www.netfilter.org/projects/conntrack-tools/files/

PKG_SUBPKGS:=		CONNTRACK CONNTRACKD
PKGSD_CONNTRACK:=	connection tracking client utility
PKGSD_CONNTRACKD:=	connection tracking daemon

DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.bz2

include $(TOPDIR)/mk/package.mk

TARGET_CPPFLAGS+=	-I$(STAGING_TARGET_DIR)/usr/include/tirpc -D_GNU_SOURCE

$(eval $(call PKG_template,CONNTRACK,conntrack,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_CONNTRACK},${PKG_SECTION}))
$(eval $(call PKG_template,CONNTRACKD,conntrackd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKGSD_CONNTRACKD},${PKG_SECTION}))

conntrack-install:
	$(INSTALL_DIR) $(IDIR_CONNTRACK)/usr/sbin
	$(INSTALL_BIN) $(WRKINST)/usr/sbin/conntrack $(IDIR_CONNTRACK)/usr/sbin

conntrackd-install:
	$(INSTALL_DIR) $(IDIR_CONNTRACKD)/usr/sbin
	$(INSTALL_BIN) $(WRKINST)/usr/sbin/conntrackd $(IDIR_CONNTRACKD)/usr/sbin

include ${TOPDIR}/mk/pkg-bottom.mk