OpenWrt packages
Sign in or create your account | Project List | Help
OpenWrt packages Git Source Tree
Root/
Source at commit d84538b created 10 years 7 months ago. By kyak, unrealircd: small fixes | |
---|---|
1 | # |
2 | # This is free software, licensed under the GNU General Public License v2. |
3 | # See /LICENSE for more information. |
4 | # |
5 | |
6 | include $(TOPDIR)/rules.mk |
7 | |
8 | PKG_NAME:=unrealircd |
9 | PKG_VERSION:=3.2.10.1 |
10 | PKG_RELEASE:=1 |
11 | |
12 | PKG_SOURCE:=Unreal$(PKG_VERSION).tar.gz |
13 | PKG_SOURCE_URL:=http://www.unrealircd.com/downloads/ |
14 | PKG_MD5SUM:=97b4bd68a804e517355efa756f401a90 |
15 | |
16 | PKG_BUILD_DIR:=$(BUILD_DIR)/Unreal$(PKG_VERSION) |
17 | |
18 | include $(INCLUDE_DIR)/package.mk |
19 | |
20 | define Package/unrealircd |
21 | SECTION:=net |
22 | CATEGORY:=Network |
23 | SUBMENU:=Instant Messaging |
24 | DEPENDS:=+zlib +libopenssl +libcurl +libcares +tre |
25 | TITLE:=Open Source IRC Server |
26 | URL:=http://unrealircd.com |
27 | endef |
28 | |
29 | define Package/unrealircd/conffiles |
30 | /etc/unrealircd/unrealircd.conf |
31 | endef |
32 | |
33 | CONFIGURE_ARGS+= --with-showlistmodes \ |
34 | --enable-prefixaq --with-listen=5 \ |
35 | --with-dpath=/etc/unrealircd \ |
36 | --with-spath=/usr/bin \ |
37 | --with-nick-history=2000 --with-sendq=3000000 \ |
38 | --with-bufferpool=18 \ |
39 | --with-permissions=0600 --with-fd-setsize=1024 \ |
40 | --enable-dynamic-linking \ |
41 | --enable-ziplinks=$(STAGING_DIR)/usr \ |
42 | --enable-ssl=$(STAGING_DIR)/usr \ |
43 | --disable-inet6 \ |
44 | --enable-libcurl=$(STAGING_DIR)/usr \ |
45 | --with-system-cares \ |
46 | --with-system-tre |
47 | |
48 | CONFIGURE_VARS+=ac_cv_nonblocking=O_NONBLOCK ac_cv_force_core=yes ac_cv_sigtype=POSIX |
49 | |
50 | define Package/unrealircd/install |
51 | $(INSTALL_DIR) $(1)/usr/bin $(1)/etc/unrealircd $(1)/usr/lib/unrealircd/modules |
52 | $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/ircd $(1)/usr/bin/unrealircd |
53 | $(INSTALL_CONF) $(PKG_BUILD_DIR)/doc/example.conf $(1)/etc/unrealircd/unrealircd.conf |
54 | $(CP) $(PKG_BUILD_DIR)/*.conf $(1)/etc/unrealircd |
55 | $(CP) $(PKG_BUILD_DIR)/src/modules/*.so $(1)/usr/lib/unrealircd/modules |
56 | ln -s /usr/lib/unrealircd/modules $(1)/etc/unrealircd/modules |
57 | $(INSTALL_DIR) $(1)/etc/init.d |
58 | $(CP) $(FILES_DIR)/unrealircd.init $(1)/etc/init.d/unrealircd |
59 | endef |
60 | |
61 | $(eval $(call BuildPackage,unrealircd)) |
62 |