libunwind: update to 1.8.1
[openadk.git] / package / ulogd / Makefile
blobd9fa07f5fadf3d838f51604c8ea6f5f2c594b42d
1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
6 PKG_NAME:= ulogd
7 PKG_VERSION:= 2.0.5
8 PKG_RELEASE:= 1
9 PKG_HASH:= a221cb9f77347c0ca00d0937e27c1b90e3291a553cc62a4139b788e2e420e8c0
10 PKG_DESCR:= netfilter userspace logging daemon
11 PKG_SECTION:= net/firewall
12 PKG_DEPENDS:= iptables libnetfilter-conntrack libnetfilter-log libnetfilter-acct libmnl
13 PKG_BUILDDEP:= iptables libnetfilter_conntrack libnetfilter_log libnetfilter_acct libmnl
14 PKG_URL:= http://www.netfilter.org/projects/ulogd/
15 PKG_SITES:= http://www.netfilter.org/projects/ulogd/files/
16 PKG_NOPARALLEL:= 1
18 PKG_SUBPKGS:= ULOGD ULOGD_MOD_MARIADB ULOGD_MOD_PCAP ULOGD_MOD_PGSQL ULOGD_MOD_SQLITE
19 PKGSD_ULOGD_MOD_MARIADB:= mariadb plugin for ulogd
20 PKGSB_ULOGD_MOD_MARIADB:= mariadb
21 PKGSS_ULOGD_MOD_MARIADB:= zlib libmariadbclient
22 PKGSN_ULOGD_MOD_MARIADB:= ulogd
23 PKGSD_ULOGD_MOD_PGSQL:= postgresql plugin for ulogd
24 PKGSB_ULOGD_MOD_PGSQL:= postgresql
25 PKGSS_ULOGD_MOD_PGSQL:= libpq
26 PKGSN_ULOGD_MOD_PGSQL:= ulogd
27 PKGSD_ULOGD_MOD_SQLITE:= sqlite plugin for ulogd
28 PKGSB_ULOGD_MOD_SQLITE:= sqlite
29 PKGSS_ULOGD_MOD_SQLITE:= libsqlite
30 PKGSN_ULOGD_MOD_SQLITE:= ulogd
31 PKGSD_ULOGD_MOD_PCAP:= libpcap plugin for ulogd
32 PKGSB_ULOGD_MOD_PCAP:= libpcap
33 PKGSS_ULOGD_MOD_PCAP:= libpcap
34 PKGSN_ULOGD_MOD_PCAP:= ulogd
36 PKG_HOST_DEPENDS:= !cygwin
38 DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2
40 include ${ADK_TOPDIR}/mk/package.mk
42 $(eval $(call PKG_template,ULOGD,ulogd,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
43 $(eval $(call PKG_template,ULOGD_MOD_MYSQL,ulogd-mod-mysql,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_ULOGD_MOD_MYSQL},${PKGSD_ULOGD_MOD_MYSQL},${PKG_SECTION}))
44 $(eval $(call PKG_template,ULOGD_MOD_PCAP,ulogd-mod-pcap,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_ULOGD_MOD_PCAP},${PKGSD_ULOGD_MOD_PCAP},${PKG_SECTION}))
45 $(eval $(call PKG_template,ULOGD_MOD_PGSQL,ulogd-mod-pgsql,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_ULOGD_MOD_PGSQL},${PKGSD_ULOGD_MOD_PGSQL},${PKG_SECTION}))
46 $(eval $(call PKG_template,ULOGD_MOD_SQLITE,ulogd-mod-sqlite,${PKG_VERSION}-${PKG_RELEASE},${PKGSS_ULOGD_MOD_SQLITE},${PKGSD_ULOGD_MOD_SQLITE},${PKG_SECTION}))
48 AUTOTOOL_STYLE:= autoreconf
49 TARGET_CPPFLAGS+= -D_GNU_SOURCE
50 TARGET_CFLAGS+= -fPIC
52 ifneq (${ADK_PACKAGE_ULOGD_MOD_MYSQL},)
53 CONFIGURE_ARGS+= --with-mysql=${STAGING_TARGET_DIR}/usr
54 else
55 CONFIGURE_ARGS+= --without-mysql
56 endif
58 ifneq (${ADK_PACKAGE_ULOGD_MOD_PGSQL},)
59 CONFIGURE_ARGS+= --with-pgsql=${STAGING_TARGET_DIR}/usr
60 else
61 CONFIGURE_ARGS+= --without-pgsql
62 endif
64 ulogd-install:
65 ${INSTALL_DIR} ${IDIR_ULOGD}/etc
66 ${INSTALL_DATA} ${WRKBUILD}/ulogd.conf ${IDIR_ULOGD}/etc
67 ${INSTALL_DIR} ${IDIR_ULOGD}/usr/sbin ${IDIR_ULOGD}/usr/lib/ulogd/
68 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_raw2packet_BASE.so \
69 ${IDIR_ULOGD}/usr/lib/ulogd/
70 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_HWHDR.so \
71 ${IDIR_ULOGD}/usr/lib/ulogd/
72 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_IFINDEX.so \
73 ${IDIR_ULOGD}/usr/lib/ulogd/
74 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_IP2BIN.so \
75 ${IDIR_ULOGD}/usr/lib/ulogd/
76 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_IP2HBIN.so \
77 ${IDIR_ULOGD}/usr/lib/ulogd/
78 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_IP2STR.so \
79 ${IDIR_ULOGD}/usr/lib/ulogd/
80 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_MARK.so \
81 ${IDIR_ULOGD}/usr/lib/ulogd/
82 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_PRINTFLOW.so \
83 ${IDIR_ULOGD}/usr/lib/ulogd/
84 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_PRINTPKT.so \
85 ${IDIR_ULOGD}/usr/lib/ulogd/
86 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_filter_PWSNIFF.so \
87 ${IDIR_ULOGD}/usr/lib/ulogd/
88 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_inpflow_NFACCT.so \
89 ${IDIR_ULOGD}/usr/lib/ulogd/
90 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_inpflow_NFCT.so \
91 ${IDIR_ULOGD}/usr/lib/ulogd/
92 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_inppkt_NFLOG.so \
93 ${IDIR_ULOGD}/usr/lib/ulogd/
94 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_inppkt_ULOG.so \
95 ${IDIR_ULOGD}/usr/lib/ulogd/
96 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_inppkt_UNIXSOCK.so \
97 ${IDIR_ULOGD}/usr/lib/ulogd/
98 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_output_GPRINT.so \
99 ${IDIR_ULOGD}/usr/lib/ulogd/
100 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_output_GRAPHITE.so \
101 ${IDIR_ULOGD}/usr/lib/ulogd/
102 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_output_LOGEMU.so \
103 ${IDIR_ULOGD}/usr/lib/ulogd/
104 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_output_NACCT.so \
105 ${IDIR_ULOGD}/usr/lib/ulogd/
106 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_output_OPRINT.so \
107 ${IDIR_ULOGD}/usr/lib/ulogd/
108 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_output_SYSLOG.so \
109 ${IDIR_ULOGD}/usr/lib/ulogd/
110 ${INSTALL_BIN} ${WRKINST}/usr/lib/ulogd/ulogd_output_XML.so \
111 ${IDIR_ULOGD}/usr/lib/ulogd/
112 ${INSTALL_BIN} ${WRKINST}/usr/sbin/ulogd ${IDIR_ULOGD}/usr/sbin
114 ulogd-mod-pcap-install:
115 ${INSTALL_DIR} ${IDIR_ULOGD_MOD_PCAP}/usr/lib/ulogd
116 ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_PCAP.so \
117 ${IDIR_ULOGD_MOD_PCAP}/usr/lib/ulogd
119 ulogd-mod-sqlite-install:
120 ${INSTALL_DIR} ${IDIR_ULOGD_MOD_SQLITE}/usr/lib/ulogd
121 ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_SQLITE3.so \
122 ${IDIR_ULOGD_MOD_SQLITE}/usr/lib/ulogd
124 ulogd-mod-pgsql-install:
125 ${INSTALL_DIR} ${IDIR_ULOGD_MOD_PGSQL}/usr/lib/ulogd
126 ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_PGSQL.so \
127 ${IDIR_ULOGD_MOD_PGSQL}/usr/lib/ulogd
129 ulogd-mod-mysql-install:
130 ${INSTALL_DIR} ${IDIR_ULOGD_MOD_MYSQL}/usr/lib/ulogd
131 ${CP} ${WRKINST}/usr/lib/ulogd/ulogd_output_MYSQL.so \
132 ${IDIR_ULOGD_MOD_MYSQL}/usr/lib/ulogd
134 include ${ADK_TOPDIR}/mk/pkg-bottom.mk