Root/unrealircd/Makefile

Source at commit 9b6e25c984c6e63deee620893faf08905630541e created 6 years 11 months ago.
By kyak, unrealircd: initial commit
1#
2# This is free software, licensed under the GNU General Public License v2.
3# See /LICENSE for more information.
4#
5
6include $(TOPDIR)/rules.mk
7
8PKG_NAME:=unrealircd
9PKG_VERSION:=3.2.10.1
10PKG_RELEASE:=1
11
12PKG_SOURCE:=Unreal$(PKG_VERSION).tar.gz
13PKG_SOURCE_URL:=http://www.unrealircd.com/downloads/
14PKG_MD5SUM:=97b4bd68a804e517355efa756f401a90
15
16PKG_BUILD_DIR:=$(BUILD_DIR)/Unreal$(PKG_VERSION)
17
18include $(INCLUDE_DIR)/package.mk
19
20define 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
27endef
28
29define Package/unrealircd/conffiles
30/etc/unrealircd.conf
31endef
32
33CONFIGURE_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
48CONFIGURE_VARS+=ac_cv_nonblocking=O_NONBLOCK ac_cv_force_core=yes ac_cv_sigtype=POSIX
49
50define 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
59endef
60
61$(eval $(call BuildPackage,unrealircd))
62

Archive Download this file



interactive