remove intrusive STAGING_DIR references in the patches, cleanup
git-svn-id: svn://svn.openwrt.org/openwrt/packages@5341 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
05da179b3e
commit
2aac60eb84
@ -11,113 +11,115 @@ include $(TOPDIR)/rules.mk
|
|||||||
PKG_NAME:=ulogd
|
PKG_NAME:=ulogd
|
||||||
PKG_VERSION:=1.24
|
PKG_VERSION:=1.24
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
PKG_MD5SUM:=05b4ed2926b9a22aaeaf642917bbf8ff
|
|
||||||
|
|
||||||
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
||||||
PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/ulogd/ \
|
PKG_SOURCE_URL:=ftp://ftp.netfilter.org/pub/ulogd/ \
|
||||||
ftp://ftp.be.netfilter.org/pub/netfilter/ulogd/ \
|
ftp://ftp.be.netfilter.org/pub/netfilter/ulogd/ \
|
||||||
ftp://ftp.de.netfilter.org/pub/netfilter/ulogd/ \
|
ftp://ftp.de.netfilter.org/pub/netfilter/ulogd/ \
|
||||||
ftp://ftp.no.netfilter.org/pub/netfilter/ulogd/
|
ftp://ftp.no.netfilter.org/pub/netfilter/ulogd/
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
|
PKG_MD5SUM:=05b4ed2926b9a22aaeaf642917bbf8ff
|
||||||
PKG_CAT:=bzcat
|
PKG_CAT:=bzcat
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
|
||||||
|
|
||||||
define Package/ulogd
|
define Package/ulogd/Default
|
||||||
SECTION:=net
|
SECTION:=net
|
||||||
CATEGORY:=Network
|
CATEGORY:=Network
|
||||||
DEPENDS:=+iptables
|
|
||||||
MENU:=1
|
|
||||||
TITLE:=Netfilter userspace logging daemon
|
|
||||||
DESCRIPTION:=The netfilter userspace logging daemon\\\
|
|
||||||
URL:=http://gnumonks.org/projects/ulogd
|
URL:=http://gnumonks.org/projects/ulogd
|
||||||
endef
|
endef
|
||||||
|
|
||||||
|
define Package/ulogd
|
||||||
|
$(call Package/ulogd/Default)
|
||||||
|
DEPENDS:=+iptables
|
||||||
|
TITLE:=Netfilter userspace logging daemon
|
||||||
|
MENU:=1
|
||||||
|
endef
|
||||||
|
|
||||||
define Package/ulogd/conffiles
|
define Package/ulogd/conffiles
|
||||||
/etc/default/ulogd
|
/etc/default/ulogd
|
||||||
/etc/ulogd.conf
|
/etc/ulogd.conf
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ulogd-mod-mysql
|
define Package/ulogd-mod-mysql
|
||||||
SECTION:=net
|
$(call Package/ulogd/Default)
|
||||||
CATEGORY:=Network
|
|
||||||
DEPENDS:=ulogd +libmysqlclient
|
DEPENDS:=ulogd +libmysqlclient
|
||||||
TITLE:=Output plugin for logging into a MySQL database
|
TITLE:=Output plugin for logging to a MySQL database
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ulogd-mod-pcap
|
define Package/ulogd-mod-pcap
|
||||||
SECTION:=net
|
$(call Package/ulogd/Default)
|
||||||
CATEGORY:=Network
|
|
||||||
DEPENDS:=ulogd +libpcap
|
DEPENDS:=ulogd +libpcap
|
||||||
TITLE:=Output plugin for logging into pcap format
|
TITLE:=Output plugin for logging in pcap format
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ulogd-mod-pgsql
|
define Package/ulogd-mod-pgsql
|
||||||
SECTION:=net
|
$(call Package/ulogd/Default)
|
||||||
CATEGORY:=Network
|
|
||||||
DEPENDS:=ulogd +libpq
|
DEPENDS:=ulogd +libpq
|
||||||
TITLE:=Output plugin for logging into a PostgreSQL database
|
TITLE:=Output plugin for logging to a PostgreSQL database
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ulogd-mod-sqlite
|
define Package/ulogd-mod-sqlite
|
||||||
SECTION:=net
|
$(call Package/ulogd/Default)
|
||||||
CATEGORY:=Network
|
|
||||||
DEPENDS:=ulogd +libsqlite3
|
DEPENDS:=ulogd +libsqlite3
|
||||||
TITLE:=Output plugin for logging into an SQLite database
|
TITLE:=Output plugin for logging to an SQLite database
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ulogd-mod-extra
|
define Package/ulogd-mod-extra
|
||||||
SECTION:=net
|
$(call Package/ulogd/Default)
|
||||||
CATEGORY:=Network
|
|
||||||
DEPENDS:=ulogd
|
DEPENDS:=ulogd
|
||||||
TITLE:=All other plugins
|
TITLE:=Extra plugins
|
||||||
|
DESCRIPTION:=\
|
||||||
|
This package contains the LOCAL, LOGEMU, OPRINT, PWSNIFF and SYSLOG plugins.
|
||||||
endef
|
endef
|
||||||
|
|
||||||
include $(INCLUDE_DIR)/package.mk
|
include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
ifneq ($(Package/ulogd-mod-mysql),)
|
ifneq ($(Package/ulogd-mod-mysql),)
|
||||||
ULOGD_MYSQL_OPTION:=--with-mysql=$(STAGING_DIR)/usr
|
ULOGD_MYSQL_OPTION:= --with-mysql="$(STAGING_DIR)/usr"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(Package/ulogd-mod-pcap),)
|
ifneq ($(Package/ulogd-mod-pcap),)
|
||||||
ULOGD_PCAP_HEADER:=yes
|
ULOGD_PCAP_HEADER:=yes
|
||||||
else
|
else
|
||||||
ULOGD_PCAP_HEADER:=no
|
ULOGD_PCAP_HEADER:=no
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(Package/ulogd-mod-pgsql),)
|
ifneq ($(Package/ulogd-mod-pgsql),)
|
||||||
ULOGD_PGSQL_OPTION:=--with-pgsql=$(STAGING_DIR)/usr
|
ULOGD_PGSQL_OPTION:= --with-pgsql="$(STAGING_DIR)/usr"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifneq ($(Package/ulogd-mod-sqlite),)
|
ifneq ($(Package/ulogd-mod-sqlite),)
|
||||||
ULOGD_SQLITE_OPTION:=--with-sqlite3=$(STAGING_DIR)/usr
|
ULOGD_SQLITE_OPTION:= --with-sqlite3="$(STAGING_DIR)/usr"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
define Build/Configure
|
define Build/Configure
|
||||||
$(call Build/Configure/Default,--enable-shared \
|
$(call Build/Configure/Default, \
|
||||||
--disable-static \
|
$(ULOGD_MYSQL_OPTION) \
|
||||||
$(ULOGD_MYSQL_OPTION) \
|
$(ULOGD_PGSQL_OPTION) \
|
||||||
$(ULOGD_PGSQL_OPTION) \
|
$(ULOGD_SQLITE_OPTION) \
|
||||||
$(ULOGD_SQLITE_OPTION),ac_cv_header_pcap_h=$(ULOGD_PCAP_HEADER))
|
, \
|
||||||
|
ac_cv_header_pcap_h=$(ULOGD_PCAP_HEADER) \
|
||||||
|
)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Build/Compile
|
define Build/Compile
|
||||||
$(call Build/Compile/Default,DESTDIR="$(PKG_INSTALL_DIR)" \
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
||||||
STAGING_DIR=$(STAGING_DIR) \
|
DESTDIR="$(PKG_INSTALL_DIR)" \
|
||||||
all install)
|
all install
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ulogd/install
|
define Package/ulogd/install
|
||||||
install -d -m0755 $(1)/etc
|
install -d -m0755 $(1)/etc
|
||||||
$(CP) $(PKG_INSTALL_DIR)/etc/ulogd.conf $(1)/etc/
|
$(CP) $(PKG_INSTALL_DIR)/etc/ulogd.conf $(1)/etc/
|
||||||
|
install -d -m0755 $(1)/usr/sbin
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ulogd $(1)/usr/sbin/
|
||||||
|
install -d -m0755 $(1)/usr/lib/ulogd
|
||||||
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ulogd/ulogd_BASE.so $(1)/usr/lib/ulogd/
|
||||||
install -d -m0755 $(1)/etc/default
|
install -d -m0755 $(1)/etc/default
|
||||||
install -m0644 ./files/ulogd.default $(1)/etc/default/ulogd
|
install -m0644 ./files/ulogd.default $(1)/etc/default/ulogd
|
||||||
install -d -m0755 $(1)/etc/init.d
|
install -d -m0755 $(1)/etc/init.d
|
||||||
install -m0755 ./files/ulogd.init $(1)/etc/init.d/ulogd
|
install -m0755 ./files/ulogd.init $(1)/etc/init.d/ulogd
|
||||||
install -d -m0755 $(1)/usr/lib/ulogd
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/lib/ulogd/ulogd_BASE.so $(1)/usr/lib/ulogd/
|
|
||||||
install -d -m0755 $(1)/usr/sbin
|
|
||||||
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/ulogd $(1)/usr/sbin/
|
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define BuildPlugin
|
define BuildPlugin
|
||||||
|
@ -6,7 +6,7 @@ diff -urN ulogd-1.23/pcap/Makefile.in ulogd-1.23.new/pcap/Makefile.in
|
|||||||
|
|
||||||
$(SHARED_LIBS): %.so: %_sh.o
|
$(SHARED_LIBS): %.so: %_sh.o
|
||||||
- $(LD) -shared -o $@ $< -lc -lpcap
|
- $(LD) -shared -o $@ $< -lc -lpcap
|
||||||
+ $(LD) -shared -o $@ $< -lc -lpcap -L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
|
+ $(LD) -shared -o $@ $< @LDFLAGS@ -lc -lpcap
|
||||||
|
|
||||||
%_sh.o: %.c
|
%_sh.o: %.c
|
||||||
$(CC) $(SH_CFLAGS) -o $@ -c $<
|
$(CC) $(SH_CFLAGS) -o $@ -c $<
|
||||||
|
Loading…
x
Reference in New Issue
Block a user