[packages] add package 'seeks' - thanks to Obinou
[openwrt/svn-archive/archive.git] / net / seeks / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=seeks
11 PKG_VERSION:=0.3.4
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=git://seeks.git.sourceforge.net/gitroot/seeks/seeks
17 PKG_SOURCE_PROTO=git
18 PKG_SOURCE_VERSION:=e8565b98cfe40fba644f587536f15f1a8665d230
19
20 include $(INCLUDE_DIR)/package.mk
21 include $(INCLUDE_DIR)/nls.mk
22
23 define Package/seeks
24 SUBMENU:=Web Servers/Proxies
25 SECTION:=net
26 CATEGORY:=Network
27 TITLE:=An open P2P design for websearch
28 URL:=http://www.seeks-project.info/site/
29 DEPENDS:=+libpthread +libevent +libcurl +libpcre +libxml2 $(ICONV_DEPENDS) +zlib +protobuf +tokyocabinet
30 MAINTAINER:=Obinou <obconseil@gmail.com>
31 endef
32
33 define Package/seeks/description
34 Seeks is a free and open P2P design and application for enabling social
35 websearch. Its specific purpose is to regroup users whose queries
36 are similar so they can share both the query results and their
37 experience on these results. On this basis, Seeks allows for true
38 real-time, decentralized, websearch to emerge.
39
40 In the long term, there is no need for web crawlers and third-party
41 web indexes as users can push content directly to search groups.
42 By hashing queries, Seeks offers a unique solution that allows to
43 issue queries and get answers while not revealing the true query itself.
44
45 Seeks is currently under development. Code is available from our git
46 repository. Help on any of the social, technical and software matters
47 is greatly encouraged and appreciated, see the dedicated page.
48 endef
49
50
51 CONFIGURE_VARS:= \
52 CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS)" \
53 LDFLAGS="-L$(STAGING_DIR)/usr/lib $(ICONV_LDFLAGS)" \
54
55 CONFIGURE_ARGS += \
56 --prefix=/usr \
57 --enable-httpserv-plugin \
58 --enable-keepalive \
59 --disable-image-websearch-plugin \
60 --disable-icu
61
62 define Build/Configure
63 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
64 ./autogen.sh \
65 );
66 $(call Build/Configure/Default)
67 endef
68
69 define Build/Compile
70 $(MAKE) -C $(PKG_BUILD_DIR) \
71 CXXFLAGS="-I$(STAGING_DIR)/usr/include $(ICONV_CFLAGS)"
72 $(MAKE) -C $(PKG_BUILD_DIR) \
73 DESTDIR="$(PKG_INSTALL_DIR)" \
74 install
75 endef
76
77 define Package/seeks/conffiles
78 /etc/config/seeks
79 /etc/seeks/config
80 endef
81
82 define Package/seeks/install
83 # Binary program
84 $(INSTALL_DIR) $(1)/usr/bin
85 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/seeks $(1)/usr/bin/
86 # Config files
87 $(INSTALL_DIR) $(1)/etc/seeks
88 $(INSTALL_CONF) $(PKG_INSTALL_DIR)/etc/seeks/* $(1)/etc/seeks/
89 # Libs
90 $(INSTALL_DIR) $(1)/usr/lib
91 $(CP) $(PKG_INSTALL_DIR)/usr/lib/lib*.so* $(1)/usr/lib
92 $(INSTALL_DIR) $(1)/usr/lib/seeks/plugins/blocker
93 $(INSTALL_DIR) $(1)/usr/lib/seeks/plugins/httpserv
94 $(INSTALL_DIR) $(1)/usr/lib/seeks/plugins/websearch
95 $(INSTALL_DIR) $(1)/usr/lib/seeks/plugins/query_capture
96 $(INSTALL_DIR) $(1)/usr/lib/seeks/plugins/uri_capture
97 $(INSTALL_DIR) $(1)/usr/lib/seeks/plugins/cf
98 $(INSTALL_DIR) $(1)/usr/lib/seeks/plugins/udb_service
99 $(CP) $(PKG_INSTALL_DIR)/usr/lib/seeks/plugins/blocker/lib*.so* $(1)/usr/lib/seeks/plugins/blocker
100 $(CP) $(PKG_INSTALL_DIR)/usr/lib/seeks/plugins/httpserv/lib*.so* $(1)/usr/lib/seeks/plugins/httpserv
101 $(CP) $(PKG_INSTALL_DIR)/usr/lib/seeks/plugins/websearch/lib*.so* $(1)/usr/lib/seeks/plugins/websearch
102 $(CP) $(PKG_INSTALL_DIR)/usr/lib/seeks/plugins/query_capture/lib*.so* $(1)/usr/lib/seeks/plugins/query_capture
103 $(CP) $(PKG_INSTALL_DIR)/usr/lib/seeks/plugins/uri_capture/lib*.so* $(1)/usr/lib/seeks/plugins/uri_capture
104 $(CP) $(PKG_INSTALL_DIR)/usr/lib/seeks/plugins/cf/lib*.so* $(1)/usr/lib/seeks/plugins/cf
105 $(CP) $(PKG_INSTALL_DIR)/usr/lib/seeks/plugins/udb_service/lib*.so* $(1)/usr/lib/seeks/plugins/udb_service
106 #Share
107 $(INSTALL_DIR) $(1)/usr/share/seeks
108 $(CP) -r $(PKG_INSTALL_DIR)/usr/share/seeks/* $(1)/usr/share/seeks/
109 # This is OpenWRT specific config & scripts
110 $(INSTALL_DIR) $(1)/etc/init.d
111 $(INSTALL_BIN) ./files/seeks.init $(1)/etc/init.d/seeks
112 endef
113
114 $(eval $(call BuildPackage,seeks))