On Wed, Feb 8, 2012 at 6:21 AM, Jiri Slachta <[email protected]> wrote:
While this looks like a reasonable package to include, before I commit it, it requires testing, also Id like to note this is a user space daemon, there is no start/stop script included in your patch nor any other "utilities" to tie this into a usable system by the average user. I would recommend at least adding a start/stop script and some example utlities scripts to make this useful to others > Signed-off-by: Jiri Slachta <jiri at slachta.eu> > Index: feeds/packages/net/ipqbdb/patches/exp10-uclibc.diff > =================================================================== > --- feeds/packages/net/ipqbdb/patches/exp10-uclibc.diff (revision 0) > +++ feeds/packages/net/ipqbdb/patches/exp10-uclibc.diff (revision 0) > @@ -0,0 +1,11 @@ > +--- ./config_names.h 2011-02-09 18:21:39.000000000 +0100 > ++++ > /usr/src/openwrt-trunk/build_dir/target-i386_uClibc-0.9.32/ipqbdb-1.03/config_names.h > 2011-07-30 18:36:06.616286836 +0200 > +@@ -145,3 +145,8 @@ > + #endif > + > + #endif // CONFIG_NAMES_H_INCLUDED > ++ > ++#ifdef __UCLIBC__ > ++#define exp10(x) (pow(10, (x))) > ++#endif /* __UCLIBC__ */ > ++ > Index: feeds/packages/net/ipqbdb/Makefile > =================================================================== > --- feeds/packages/net/ipqbdb/Makefile (revision 0) > +++ feeds/packages/net/ipqbdb/Makefile (revision 0) > @@ -0,0 +1,50 @@ > +# > +# Copyright (C) 2012 OpenWrt.org > +# > +# This is free software, licensed under the GNU General Public License v2. > +# See /LICENSE for more information. > +# > + > +include $(TOPDIR)/rules.mk > + > +PKG_NAME:=ipqbdb > +PKG_VERSION:=1.03 > +PKG_RELEASE:=1 > +PKG_VARIANT:= > + > +PKG_SOURCE_URL:=http://download.savannah.gnu.org/releases/ipqbdb/ > +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT).tar.gz > +PKG_MD5SUM:=7b52e59d96e46adef5eba6ac375c2a46 > +PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)$(PKG_VARIANT) > +PKG_BUILD_DEPENDS:=libnetfilter-queue libdb47 > +PKG_INSTALL:=1 > +PKG_BUILD_PARALLEL:=4 > +TARGET_LDFLAGS += -lnfnetlink > + > +include $(INCLUDE_DIR)/package.mk > + > +define Package/ipqbdb > + SECTION:=net > + CATEGORY:=Network > + TITLE:=IPQDB - IPQ BDB filter > + URL:=http://savannah.nongnu.org/projects/ipqbdb/ > + DEPENDS:=+libnetfilter-queue +libdb47 +libpopt +libpcre > +endef > + > +define Package/ipqbdb/description > + IPQ BDB is a user space daemon that issues verdicts after looking up > the IP address in a Berkeley DB. > +endef > + > +define Package/ipqbdb/install > + $(INSTALL_DIR) $(1)/usr/bin > + $(CP) \ > + $(PKG_INSTALL_DIR)/usr/bin/ibd* \ > + $(1)/usr/bin/ > + $(INSTALL_DIR) $(1)/usr/sbin > + $(CP) \ > + $(PKG_INSTALL_DIR)/usr/bin/ibd* \ > + $(1)/usr/sbin/ > +endef > + > +$(eval $(call BuildPackage,ipqbdb)) > + > _______________________________________________ > openwrt-devel mailing list > [email protected] > https://lists.openwrt.org/mailman/listinfo/openwrt-devel _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/mailman/listinfo/openwrt-devel
