3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=fa3dfcaacf31855626d5b731b04a077f
10 PKG_SOURCE_URL
:=ftp
://ftp.netfilter.org
/pub
/ulogd
/ \
11 ftp
://ftp.be.netfilter.org
/pub
/netfilter
/ulogd
/ \
12 ftp
://ftp.de.netfilter.org
/pub
/netfilter
/ulogd
/ \
13 ftp
://ftp.no.netfilter.org
/pub
/netfilter
/ulogd
/
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_INSTALL_DIR
:=$(PKG_BUILD_DIR
)/ipkg-install
20 ifneq ($(BR2_PACKAGE_ULOGD_MOD_MYSQL
),)
21 ULOGD_MYSQL_OPTION
:=--with-mysql
=$(STAGING_DIR
)/usr
24 ifneq ($(BR2_PACKAGE_ULOGD_MOD_PGSQL
),)
25 ULOGD_PGSQL_OPTION
:=--with-pgsql
=$(STAGING_DIR
)/usr
28 define IPKG_plugin_template
31 install -m0755
-d
$$(IDIR_
$(1))/usr
/lib
/ulogd
32 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/lib
/ulogd
/ulogd_
$(2).so
$$(IDIR_
$(1))/usr
/lib
/ulogd
/
33 $(RSTRIP
) $$(IDIR_
$(1))
34 $(IPKG_BUILD
) $$(IDIR_
$(1)) $(PACKAGE_DIR
)
38 include $(TOPDIR
)/package
/rules.mk
40 $(eval
$(call PKG_template
,ULOGD
,ulogd
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
41 $(eval
$(call PKG_template
,ULOGD_MOD_MYSQL
,ulogd-mod-mysql
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
42 $(eval
$(call PKG_template
,ULOGD_MOD_PGSQL
,ulogd-mod-pgsql
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
44 $(eval
$(call IPKG_plugin_template
,ULOGD_MOD_MYSQL
,MYSQL
))
45 $(eval
$(call IPKG_plugin_template
,ULOGD_MOD_PGSQL
,PGSQL
))
47 $(PKG_BUILD_DIR
)/.configured
:
48 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
49 $(TARGET_CONFIGURE_OPTS
) \
50 CFLAGS
="$(TARGET_CFLAGS)" \
51 CPPFLAGS
="-I$(STAGING_DIR)/usr/include" \
52 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
53 ac_cv_header_pcap_h
=no \
55 --target
=$(GNU_TARGET_NAME
) \
56 --host
=$(GNU_TARGET_NAME
) \
57 --build
=$(GNU_HOST_NAME
) \
63 --datadir=/usr
/share \
64 --includedir=/usr
/include \
65 --infodir=/usr
/share
/info \
67 --libexecdir
=/usr
/lib \
68 --localstatedir
=/var \
69 --mandir=/usr
/share
/man \
72 $(DISABLE_LARGEFILE
) \
76 $(ULOGD_MYSQL_OPTION
) \
77 $(ULOGD_PGSQL_OPTION
) \
81 $(PKG_BUILD_DIR
)/.built
:
82 rm -rf
$(PKG_INSTALL_DIR
)
83 mkdir
-p
$(PKG_INSTALL_DIR
)
84 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
85 DESTDIR
="$(PKG_INSTALL_DIR)" \
90 install -d
-m0755
$(IDIR_ULOGD
)/etc
91 cp
-fpR
$(PKG_INSTALL_DIR
)/etc
/ulogd.conf
$(IDIR_ULOGD
)/etc
/
92 install -d
-m0755
$(IDIR_ULOGD
)/etc
/default
93 install -m0644 .
/files
/ulogd.default
$(IDIR_ULOGD
)/etc
/default
/ulogd
94 install -d
-m0755
$(IDIR_ULOGD
)/etc
/init.d
95 install -m0755 .
/files
/ulogd.init
$(IDIR_ULOGD
)/etc
/init.d
/ulogd
96 install -d
-m0755
$(IDIR_ULOGD
)/usr
/sbin
97 cp
-fpR
$(PKG_INSTALL_DIR
)/usr
/sbin
/ulogd
$(IDIR_ULOGD
)/usr
/sbin
/
98 $(RSTRIP
) $(IDIR_ULOGD
)
99 $(IPKG_BUILD
) $(IDIR_ULOGD
) $(PACKAGE_DIR
)